## Writing a widget
+### App directory organization
+
+There are few directories that are by default used in the binder. At the root
+directory of the widget folder, here are the directories that could be used:
+
+- *lib* : default directory where lies external libraries needed for
+ the binding. Binding could be stored here too or in another directory of your
+ choice.
+- *htdocs* : root HTTP directory if binding has web UI.
+
### The steps for writing a widget
1. make your application
This translates to:
-- /usr/applications: system wide applications
-- /opt/applications: removable applications
+- /var/local/lib/afm/applications
-From here those paths are referenced as: "APPDIR".
+From here this path is referenced as: "APPDIR".
The main path for applications is: APPDIR/PKGID/VER.