Core Packages
What each @crudy/* package is responsible for.
The framework ships as a small set of focused packages. Apps depend on a subset of them; modules depend on the contract packages only.
Core packages
| Package | Role | License |
|---|---|---|
@crudy/backend | Fastify server factory and core API. | Crudy EULA |
@crudy/frontend | Next.js component library, providers, and middleware. | Crudy EULA |
@crudy/cli | The crudy command for scaffolding apps and modules. | Crudy EULA |
@crudy/licensing | License verification and the License class consumed by @crudy/backend. | Crudy EULA |
@crudy/pgmorbac-fastify | Permission helpers and Fastify plugin around the pgmorbac PostgreSQL extension. | MIT |
@crudy/ui | Shared React components used by @crudy/frontend and modules. | Apache-2.0 |
All of them are on npm. The MIT and Apache-2.0 packages are open source. The Crudy EULA packages are source-available: you can install them, read them, and build modules with them for free, and running an app built on them needs a license, including in development.
@crudy/backend
Exports createCrudyServer({ modules, appConfig }). Owns authentication, the management API (/orgs, /users, /roles, ...), the data API (restloom, answering the data routes modules declare), the audit log, the SSE event bridge, background task scheduling, and license enforcement. Re-exports the BackendModule contract type so modules can be authored against a single import.
@crudy/frontend
Exports CrudyProviders, createMiddleware, and the pre-built pages a scaffolded app re-exports from its app/ directory (HomePage, LoginPage, ModulePage). Also exports the contract type FrontendModule, route resolution, and the hooks modules use to read auth, license, and module state. createNextConfig is its own entry, @crudy/frontend/next-config, since it runs in Node.
@crudy/cli
Implements the crudy create <name> and crudy module create <name> commands. Templates live inside the package and are copied verbatim with a small token substitution pass. Has no runtime dependency on the rest of the framework.
@crudy/licensing
Exports the License class used by @crudy/backend to verify the license file at boot and to resolve module enablement and per-org quotas. Deployments only need the license.lic and license-public.pem files issued by Crudy; nothing in this package is meant to be invoked directly from app code.
@crudy/pgmorbac-fastify
A Fastify layer around the pgmorbac PostgreSQL extension, usable by any Fastify application. Provides hasPermission checks, the RLS session context, management routes, and a migration loader for the extension SQL, which it takes from the @crudy/pgmorbac npm package. The backend applies that SQL as its first migration at boot, so there is no separate extension install step.
@crudy/ui
Source-only React components shared between the framework UI and modules. Modules consume it for buttons, cards, tables, and the markdown renderer, so the host can theme everything centrally.
Module packages
Modules live under @crudy-modules/<id>. Each exports ./backend and ./frontend, so an app picks the half it needs from the same package.
@crudy-modules/service-connectors, the credential vault and extension point that connectors build on, is on npm with the core packages under the Crudy EULA, so you can write a connector against it.
Crudy's other modules are proprietary. They are not on npm: a deployment receives them through the Crudy update service, and only the modules its license enables.