@svadmin/app
v0.2.26
Published
Application composition layer for svadmin — defineAdminConfig, plugins, runtime binding, and the AI manifest
Maintainers
Readme
@svadmin/app
Application composition layer for svadmin.
@svadmin/core owns contracts and
runtime hooks; @svadmin/app owns how an application is assembled:
defineAdminConfig/defineSvadminPlugin— typed application config and machine-readable plugin manifests.resolveAdminConfig/assertAdminConfig— fold plugin contributions into a deterministic snapshot plus diagnostics.createAdminApp— one-call convenience returning the provider bundle and normalized resource definitions.provideAdminConfig— install the resolved config into the scopedAdminContext.buildAdminManifest— serialize the resolved config into the stablesvadmin.ai.jsonentrypoint that AI tooling andsvadmin doctorread.createProviderBundle— first-class provider configuration object.
Install
bun add @svadmin/app @svadmin/coreUsage
import { createAdminApp, defineAdminConfig } from '@svadmin/app';
export const app = defineAdminConfig({
name: 'my-admin',
providers: createProviderBundle({ dataProvider }),
resources: [ordersDefinition],
});
export default createAdminApp(app);See docs/architecture/admin-platform.md for the full platform model.
