aweft

recipes/modules

An application assembled from three places, then extended while it runs by an operator who writes modules into a document that a second node receives over a link.

The job: a greeting service. Its own modules are files under ./app. A library it uses arrives as a bundle map. Its operator adds plugins by writing source into a document; a second node mirrors that document and runs the same plugins, and when the operator edits one, the second node reloads it together with everything that depends on it. Nothing in the module system knows there is a link, a document store, or an operator.

node recipes/modules/main.ts

Files