Zero-Import Architecture — Build applications from manifest-driven extensions.
This is the extension framework that NumFast is itself built from: NumFast's 30 Extensions and its entire Python API are Extensions loaded through it.
Not yet published to PyPI or npm. There is no pip install app-builder
and no npm install @numfast/app-builder — both names are currently free
and unregistered. Use it from a checkout:
git clone https://github.com/numfast/app-builder
cd app-builder
python -c "import sys; sys.path.insert(0, '.'); from builder import build; print(build('full.toml'))"
cd builder-js && npm install && npm run build # the TypeScript buildPublishing is planned. Until then the package + import CI job in
numfast/numfast cannot resolve app-builder from
an index, which is why that workflow is disabled at present.
App Builder is a meta-framework for assembling applications from Extension components.
- Zero imports — Extensions never
importorrequireanything (checked at load time). - Manifest-driven — Every extension has a
.tomlor.jsonmanifest declaring name, version, aliases, dependencies. - Flat namespace — All functions are registered in a
Kernelobject by alias name. - Topological sort — Extensions are loaded in dependency order via Kahn's algorithm.
full.toml Kernel (flat namespace)
├── Extension A ┌─────────────────────┐
├── Extension B ──► │ get("Map") -> fn │
├── Extension C │ get("Reduce") -> fn │
└── ... └─────────────────────┘
Each extension is a directory with:
my-extension/
├── MyExtension.toml # Manifest: name, version, alias, mods, depends
├── MyExtension.js # Entry: module.exports.PUBLIC = { ... }
└── _lib/ # Implementation (optional, loaded by entry)
name = "Compute"
alias = ["Map", "Reduce", "ScanLocal", "ScanTotals", "ScanFinal"]
mods = ["Map", "Reduce", "ScanLocal", "ScanTotals", "ScanFinal"]
depends = ["Runtime"]
[metadata]
description = "Compute kernels: Map, Reduce, Scan, Sort, FFT..."alias— Names to register in the Kernelmods— Corresponding function names from the extension'sPUBLICexportdepends— Dependencies (used for topological sort)
// MyExtension.js
function Map(params) { /* ... */ }
function Reduce(params) { /* ... */ }
module.exports.PUBLIC = { Map, Reduce };The entry file must not have bare require( or import statements at the start of a line (checked by Loader).
[kernel]
name = "my-app"
singleton = true
[[extensions]]
name = "Runtime"
path = "lib/Runtime"
[[extensions]]
name = "Compute"
path = "lib/Compute"
[[extensions]]
name = "App"
path = "."const { boot } = require('@numfast/app-builder');
// Boot builder components into global registry
const MAIN = boot('./node_modules/@numfast/app-builder/dist');
// Build application from full.toml
const kernel = MAIN.build('./my-app');
// Use registered functions
const result = kernel.call('Map', { func: 7, data: [1, 2, 3] });python -m builder build .node dist/070_CLI.js build <app-dir>
node dist/070_CLI.js list
node dist/070_CLI.js test <app-dir>
- AI-friendly — LLMs can generate extensions without knowing internal module paths.
- Hot-reload ready — No import chains to invalidate.
- Cross-language — Same manifest works for Python, JS, and future languages.
- Auditable — All dependencies are explicit in
.toml.
AGPL-3.0-only. The full licence text is in LICENSE at the root of
this repository — a verbatim copy of the GNU AGPL-3.0 text, also published at
https://www.gnu.org/licenses/agpl-3.0.txt.
Third-party licences in use are listed in NOTICE. This package has no
third-party runtime dependencies.
A separate proprietary commercial licence covering the same source is planned and is not yet finalised; no commercial terms are published here. The only grant currently available is the AGPL-3.0-only grant above.