This repository contains three packages:
packages/library: plugin-only package that generates TypeScript files from CMS*.config.jsonspecspackages/admin: Vue admin UI for GitHub auth, repo browsing, CMS editing, and preview session APIspackages/example: React example app that consumes generated CMS data and demonstrates preview injection
- Install dependencies:
npm install- Run admin UI:
npm run dev:admin- Run example app:
npm run dev:exampleCreate a GitHub OAuth App with callback URL:
http://localhost:5174/auth/github/callbackwhen usingconductor:runhttp://localhost:8787/auth/github/callbackwhen usingnpm run dev:admin
Then copy packages/admin/.env.example to packages/admin/.env and set your credentials.
This repo includes conductor.json plus:
scripts/conductor-setup.zshscripts/conductor-run.zsh
Run locally with:
npm run conductor:setup
npm run conductor:runWith CONDUCTOR_PORT as base:
- admin UI:
${CONDUCTOR_PORT}/admin - admin API:
${CONDUCTOR_PORT + 1} - example app:
${CONDUCTOR_PORT + 2}
Outside Conductor defaults:
- admin UI:
http://localhost:5500/admin - admin API:
http://localhost:5174 - example app:
http://localhost:5173
/admin creates an ephemeral preview session and streams unsaved .config.json drafts to the preview API.
The example app loads drafts through ?previewSession=<sessionId> and overlays draft value fields at runtime.