nucleus-core-ts · Config Reference

One object.
A whole backend.

NucleusConfigOptions is the single configuration object you hand to NucleusElysiaPlugin. It turns declarative JSON into a running, secured, multi-tenant API — auth, RBAC, CRUD, payments, realtime and more. This is the deep-dive reference for all 20 of its keys.

// psst — click any key to expand it, just like your config

config.nucleus.jsonNucleusConfigOptions
{
}

From JSON to a live API

Nucleus is config-driven: you describe what you want, the framework decides how. The same object documented here is the contract between your declaration and the running service.

1 · Declare

Write config.nucleus.json — one NucleusConfigOptions object describing your database, auth, entities and every feature you want switched on.

2 · Plug in

Pass it to NucleusElysiaPlugin inside any Elysia app. The plugin reads the config, resolves env-var references and wires up the runtime.

3 · Boot

On start Nucleus pushes your Drizzle schema, seeds claims + the godmin, then mounts auth routes, generated CRUD, Swagger and a typed client.

src/index.ts
1import { Elysia } from 'elysia'2import { NucleusElysiaPlugin } from 'nucleus-core-ts'3 4new Elysia()5  .use(6    await NucleusElysiaPlugin({7      options: './src/config.json',          // NucleusConfigOptions8      schema: './src/drizzle/schema.ts',      // generated from entities9      relations: './src/drizzle/relations.ts',10      swagger: { enabled: true, path: '/docs' },11    }),12  )13  .listen(3000)

Explore by capability

Eighteen configurable subsystems, grouped by what they do. Open any one for a property-by-property breakdown with examples.

Getting Started

Frontend · Components

nucleus-core-ts · NucleusConfigOptions reference

Built on Bun, Elysia and Drizzle. Authored from the framework source.