Skip to content

Development package API

Import: @mauriciodmo/framekit/dev
Environment: tooling; these utilities operate on the project filesystem and development server.

This is an advanced tooling surface, not a requirement for most consumers. It exports createDevServer, template and brand discovery helpers, code-generation helpers, watchTemplates, and getServerOptions, together with their public tooling types.

import { createDevServer } from '@mauriciodmo/framekit/dev'
const server = await createDevServer({
projectRoot: process.cwd(),
hostname: 'localhost',
port: 3000
})
await server.close()

createDevServer generates the project registry before starting the Next.js development server and watches template and brand paths for changes. The public CLI is the supported normal interface for this workflow.

This entrypoint performs Node.js filesystem, process, and server work. Keep it out of browser bundles and use it only in development or build tooling. Prefer framekit dev unless you need to integrate the lower-level utilities.

See create a template, project structure, and the server package API.