@drawnagency/core
v0.1.135
Published
Astro integration for the Brand Portal framework: injected routes, middleware, layouts, server adapters, defineConfig, and the content write path.
Readme
@drawnagency/core
Astro integration for the Drawn brand portal framework. Provides route injection, middleware, editor shell, and the defineConfig API.
Installation
npm install @drawnagency/coreQuick Start
// astro.config.mjs
import { portalIntegration } from "@drawnagency/core";
export default defineConfig({
integrations: [portalIntegration()],
});// portal.config.mjs — import from "@drawnagency/core/config", never the package
// root: this file is bundled into the browser editor and the root pulls in Node code.
import { defineConfig } from "@drawnagency/core/config";
import { supabaseAuth } from "@drawnagency/auth-supabase";
import { githubStorage } from "@drawnagency/github";
export default defineConfig({
auth: supabaseAuth(),
storage: githubStorage(), // required — defineConfig throws without it
site: { name: "My Brand Portal" },
});The full option list (assets, documents, deployStatus, collab, …) and the canonical template config are in the config reference.
What's included
- Astro integration — Injects pages, API routes, and middleware
- Editor — WYSIWYG editing with zero-layout-shift mode toggle
- Password auth — Built-in password-only auth adapter
Part of the Drawn Portal Framework
Built by Drawn Agency. Docs: https://docs.drawn.guide
