@kimoxstudio/admin
v0.2.1
Published
Self-contained admin UI for kimox-fw — visual editor, variations, publishing.
Readme
@kimoxstudio/admin
Self-contained admin UI.
The content editor: draft "variations", a node tree, an auto-generated props form per template, an isolated live preview of the real route, inline text editing, and publish.
// app/admin/[[...rest]]/page.tsx ("use client")
import { AdminApp } from "@kimoxstudio/admin";
<AdminApp registry={registry} api={{ base: "/api/kx/admin" }} />// app/admin/layout.tsx — pre-built CSS, scoped under .kx-admin-root
import "@kimoxstudio/admin/styles.css";// app/api/kx/admin/**/route.ts
import { createAdminRouteHandlers } from "@kimoxstudio/admin/server";
const handlers = createAdminRouteHandlers(kx);
export async function GET(req: Request) { return handlers.listPages(req); }Also exports LoginForm and createApiClient so the host owns the auth gate.
Opening a page on production shows it read-only.
Part of kimox-fw
kimox-fw is a JSON-document + template site framework for Next.js (App Router): pages are declarative JSON documents rendered by Zod-typed templates, with content stored in git and edited through a visual admin using draft branches ("variations").
Scaffold a whole site with npx create-kx-app.
MIT © Kimox Studio
