A template project for building digital.auto plugins. See README.md for full documentation.
βββ src/
β βββ plugin/ # Plugin code (gets bundled to dist/)
β β βββ index.ts # Entry point with mount/unmount
β β βββ Page.tsx # Main React component
β β
β βββ demo/ # Local test harness
β βββ pages/home.tsx # Loads and mounts the plugin
β βββ index.css # CSS variables (fallbacks)
β
βββ dist/
β βββ index.js # Built plugin (deploy this)
β
βββ README.md # Full documentation
βββ package.json
npm run dev- Start dev server with auto-rebuildnpm run build:plugin- Build plugin manually
Built to dist/index.js, accessible at /index.js
- Plugin uses
globalThis.React(host provides React) - Uses CSS variables with fallbacks for theming
- Inline styles for portability (no Tailwind)
- CORS enabled for cross-origin loading
- No Tailwind CSS - use inline styles
- Clean, minimal project structure
- CSS variables from mother page with fallbacks