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.

Manage the Stack

The Manager groups the operations used to create, provision, remove, and distribute packs. Open it from the project directory with node project manager. Enter a command and follow its prompts. Enter help within a command for its own options. You can also open a command directly.

                node project manager init
                node project manager install
                node project manager unroll
            

For Core updates, version reports, launch, and backup, see The Manager Script. The following entries describe pack operations in the current implementation.

In the examples, manager means the menu opened with node project manager. Each arrow separates successive answers to its prompts; these sequences are not shell commands. Examples show the main choices. Complete any remaining fields and review confirmations as requested.

  • init

    Creates a library or runtime-layer skeleton in the configured pack directory. The wizard collects its label, typology, requirements, permissions, and description. It writes a manifest, entry point, configs.js, readme.md, and .fomap. For a runtime layer, it also appends a key for the selected typology to .keys.

    Examples:

                                // Create a library named mylibrary
                                manager -> init -> mylibrary -> LIBRARY
    
                                // Create mylayer with the runtime typology myservice
                                manager -> init -> mylayer -> LAYER -> myservice
                            

    Continue with the requirements, layer permissions when applicable, and description. At the final preview, answer N to "Do you want to change something?" to generate the files. Choose a label that is not already in use.

    Review and implement the generated files, add the pack label to the stack, and review integrity records before running it. The current templates need corrections: the library references an undefined text variable, and the layer template has an undefined stopReport and incomplete bundleAssign calls. Use the verified examples in Library Packs and Runtime Layers as the starting contracts.

  • install

    Installs an individual pack from its repository through the guided installer. It handles the pack's installation files and project integration. Repository access and any npm dependencies must be available to the host. Inspect the source and requested changes before installing a pack.

    Example:

                                // way one (only official stack)
                                manager -> install -> httpping
    
                                // via url
                                manager -> install -> https://gitlab.com/staxis-platform/developments/layers-packs/httpping.git
                            
  • unroll

    Runs a local .roll installation profile to provision a set of packs. Profiles can include required entries, selectable alternatives, and dependency information. Use profiles from the installation profiles repository or prepare one for your project.

    Example:

                                manager -> unroll -> monolitic
                            

    First save .monolitic.roll in the project root. Enter monolitic as the profile name, without the leading dot or .roll extension. The wizard then asks about optional packs and alternatives: answer Y or N for optional entries, or enter a displayed alternative. Use INFO where offered to inspect an entry before deciding.

    Create Your Own Profile

    If you want to build your own .roll file, start with this example. It installs two base packs and offers a choice of renderer; extend it with the other packs your application needs:

                                // File: .myproject.roll (Staxis project root)
                                export default {
                                    "name": "MY-PROJECT-PROFILE",
                                    "allyes": false,
                                    "loads": {
                                        "install:PathMatcher": {
                                            "required": true,
                                            "dependencies": false,
                                            "url": "https://gitlab.com/staxis-platform/developments/layers-packs/ppm.git",
                                            "info": "Install the path-matching library used by the HTTP packs."
                                        },
                                        "install:HttpApplication": {
                                            "required": true,
                                            "dependencies": false,
                                            "url": "https://gitlab.com/staxis-platform/developments/layers-packs/serverapp.git",
                                            "info": "Prepare the native HTTP application."
                                        },
                                        "select:ViewEngine": {
                                            "required": false,
                                            "info": "Choose an optional server-side renderer, or use BYPASS.",
                                            "list": {
                                                "EJS": {
                                                    "dependencies": [
                                                        "ejs"
                                                    ],
                                                    "url": "https://gitlab.com/staxis-platform/developments/layers-packs/ejs.git"
                                                },
                                                "HTMLExpress": {
                                                    "dependencies": [
                                                        "html-express-js"
                                                    ],
                                                    "url": "https://gitlab.com/staxis-platform/developments/layers-packs/htmlexpress.git"
                                                }
                                            }
                                        }
                                    }
                                }
                            

    Save the file as .myproject.roll in the project root, then run:

                                manager -> unroll -> myproject
                            

    A .roll file is a JavaScript module exporting an object, not a JSON file. name identifies the profile; loads contains the entries to process in order. Use install:Name for an individual pack and select:Name with a list of alternatives for a choice. These entry names are prompt labels, not runtime layer slots. Keep provider packs before their consumers and review the final stack.

    required: true makes an entry mandatory. With required: false, an individual pack prompts for Y or N, while a selectable group offers BYPASS. allyes: true accepts optional individual installations automatically; it does not choose an alternative for a selectable group. Keep it false while reviewing a profile.

    Each installable pack or selected alternative needs a repository url and dependencies: false or an array of npm package names. Those dependencies are installed through npm. info supplies the wizard's explanatory text. Adapt the URLs and pack choices to your project, ensure GitLab access is available, and use trusted profiles: the Manager evaluates their JavaScript before installation.

  • uninstall

    Removes a pack and the files covered by its .fomap, including mapped files outside the pack directory. It also attempts to clean related project configuration, keys, and integrity records. Review the file map and keep a recoverable copy before proceeding. Check remaining consumers and shared npm dependencies afterwards.

    Example:

                                manager -> uninstall -> mypack -> Y
                            

    mypack is the installed pack label. Y confirms its removal after the Manager finds the pack and checks its manifest. Further configuration-cleanup prompts may follow.

  • list

    Reads the official or community pack catalogue and presents available records. This command browses the online catalogue. Use the Manager's version report to read the versions of local packs.

    Examples:

                                // Show names from the official catalogue
                                manager -> list -> OFFICIAL -> NAMES
    
                                // Show repository links from the community catalogue
                                manager -> list -> COMMUNITY -> LINKS
    
                                // Show complete official catalogue records
                                manager -> list -> OFFICIAL -> FULL
                            
  • export

    Exports a pack's mapped files into a repository layout using .fomap and the destination settings in .export. LOCAL prepares the local destination. GIT also attempts the configured Git operations and push. The export flow can update the pack version. Review the resulting files and version before publishing.

    Examples:

                                // Export mapped files to the local destination
                                manager -> export -> LOCAL -> mypack
    
                                // Confirm remote publication, then select the pack
                                manager -> export -> GIT -> Y -> mypack
                            

    Prepare .fomap and the destination settings in the pack's .export before exporting. LOCAL copies the files without pushing. GIT requires a valid Git profile and configured remote settings; Y answers the online-repository update confirmation before the pack label is requested. Review the destination because export refreshes its contents.

  • import

    Reserved for importing from a local model folder. The command currently reports that this operation is unavailable. Use install for supported repository installation.

    Example:

                                manager -> import
                            

    This currently prints the unavailable-operation message and returns to the main menu. It does not ask for a source folder or import any files.

  • record

    Submits a proposal to add or update a pack's metadata in the official or community catalogue. It requires suitable GitLab access and creates a proposal issue for review. Acceptance and catalogue publication follow the repository's review process. Exporting the pack and publishing its source are separate steps.

    Community publications: choose Y. This is the normal channel for developers outside the Staxis team. Publish your pack in your own repository, then use record to share it through the community catalogue. Official packs: choose N. This channel is reserved for authorised Staxis staff managing official releases. The submission workflow is similar, but selecting N does not grant official status to a community pack.

    For community publication, first request admission to the Staxis Community GitLab group. Your GitLab account also needs suitable permissions on records-community to submit through record. The community maintains its own online pack catalogue, separate from the official catalogue.

    Examples:

                                // Start a community catalogue proposal
                                manager -> record -> Y -> mypack -> https://gitlab.com/your-group/mypack.git
    
                                // Start an official catalogue proposal, with the required team permissions
                                manager -> record -> N -> mypack -> https://gitlab.com/your-group/mypack.git
                            

    The first Y or N answers "Is an open record for the community?". After any authentication prompts, enter the pack label and repository URL. Continue with the website, maintainer, reference links, and description. Review the preview and answer Y to the final recording confirmation to submit the proposal. These examples assume the required access is already available.