editlayer
v0.1.0
Published
EditLayer CLI — set up safe, in-page visual editing for static marketing copy on a Next.js (App Router) site. Run `npx editlayer init` to scaffold config, content files, and API routes.
Downloads
20
Maintainers
Keywords
Readme
editlayer (CLI)
Command-line setup for EditLayer — a tiny, secure visual editing layer for custom-coded
Next.js (App Router) marketing sites. Mark static copy as editable, then let owners/marketing
edit it in place with ?edit=true and publish to GitHub (Vercel auto-redeploys). No CMS required.
Looking for the library? Install
@editlayer/next.
Usage
# In your Next.js project (after: npm install @editlayer/next)
npx editlayer initThis scaffolds:
editlayer.config.tseditlayer/content.json,history.json,drafts.json,access.jsonapp/api/editlayer/*route handlers (login, verify, session, logout, publish, drafts, history, invite)
Commands
| Command | What it does |
|---|---|
| editlayer init | Scaffold config, content files, and API routes |
| editlayer validate | Validate config and content files |
| editlayer fields | List all Editable* fields found in your source |
| editlayer doctor | Check environment variables and setup |
| editlayer invite <email> --role owner\|editor | Generate a signed invite link |
What is EditLayer?
EditLayer gives non-developers Webflow-style copy editing on a coded Next.js site while
developers keep full control of structure and code. Only fields you explicitly wrap in
EditableText / EditableLink / EditableImage are editable. Auth is magic-link based,
roles are owner/editor, and publishing commits JSON content to your Git repo.
Full docs: https://github.com/zlatkomarjanovic/editlayer
License
MIT
