npm.io
5.0.0-alpha.0 • Published 3d ago

@scaff/core

Licence
MIT
Version
5.0.0-alpha.0
Deps
0
Size
89 kB
Vulns
0
Weekly
0

@scaff/core

Framework-independent runtime for Scaff's directory-driven resource model. It manages manifests, resource groups, lifecycle hooks, plugins, services and on-demand activation without depending on Vue, React or Vite.

Install

pnpm add @scaff/core@alpha

Basic usage

import { createScaff } from '@scaff/core';

const scaff = createScaff({ manifest });

await scaff.setup();
await scaff.activate('page:home');

const page = scaff.context.resources.get('page:home');

The current 5.0.0-alpha API is experimental and may change before the stable release.

License

MIT

Keywords