@suluk/admin - v0.1.3
    Preparing search index...

    Interface AdminOptions

    @suluk/admin — the /superadmin web admin panel. The SAME cockpit as the vscode extension (@suluk/cockpit core), rendered as Hono-served web pages and gated to superadmins. One brain, two faces. Mount it on your app: app.route("/", adminApp({ document, authorize })). CANDIDATE tooling — NOT official OAS.

    interface AdminOptions {
        document:
            | OpenAPIv4Document
            | ((c: Context) => OpenAPIv4Document | Promise<OpenAPIv4Document>);
        basePath?: string;
        authorize?: (c: Context) => boolean | Promise<boolean>;
        title?: string;
        headHtml?: string | ((c: Context) => string);
    }
    Index

    Properties

    document:
        | OpenAPIv4Document
        | ((c: Context) => OpenAPIv4Document | Promise<OpenAPIv4Document>)

    The hub v4 document — a value, or a function (so the panel reflects live state per request).

    basePath?: string

    Mount path (default "/superadmin").

    authorize?: (c: Context) => boolean | Promise<boolean>

    Gate: return true to allow. Wire to your auth (superadmin only). DEFAULT: deny everything.

    title?: string

    Page title.

    headHtml?: string | ((c: Context) => string)

    Extra HTML injected into AFTER the default theme — link a stylesheet (e.g. a color-scheme sheet) and a no-flash theme stamper so the panel obeys the host app's light/dark + color scheme instead of the built-in.