STAXIS

staxis js platform -> gitlab project
staxis on gitlab gitlab project 🏷️ V-0.X-Beta
We’re actively updating this manual. Content and layout may change as we refine it.

Extend the Stack

A Staxis application is assembled from packs. Each pack has a directory, a manifest, and an entry point that groups the scripts for its functionality. The Core reads the packs named in the project's stack and builds the runtime. The included helloworld pack is a small library you can inspect before creating your own.

Labels and Typologies

The manifest's label identifies the pack and must match its directory name. Its typology determines how the Core handles it. Use library for shared library APIs, or a dedicated name such as targetApi for a managed runtime layer.

  • Library Packs expose APIs requested by pack label. Several libraries can coexist under different labels.
  • Runtime Layers implement attach and detach, with bundles and lifecycle supervised by the Core. Each runtime typology identifies one layer in the stack.

These are the current counterparts of the old manual's tools and services. Both use defineLayer and receive the same equipments. Choose according to whether you need shared library functions or an instance with a managed lifecycle.

Set the Stack Order

List pack labels in config.js. The Core loads and handles each entry in sequence. Put libraries at the top, followed by their consumers. The current loader does not make a separate pass to preload every library before handling the rest of the stack.

                // config.js -> config.stack (pack labels)
                stack: [
                    'greetings',
                    'sometarget',
                    'whorequest'
                ]
            

The manifest's require array declares prerequisites and checks their availability when the pack is handled. It does not install packs or reorder the stack. Place prerequisites before consumers.

Create and Manage Packs

Run node project manager and choose init to create a skeleton, or write the files manually as shown in the following pages. Review the manifest, implementation, permissions, configuration, and integrity records before running either form.

See Manage the Stack for the Manager commands used to create, install, remove, export, and submit packs to a catalogue.