Give your coding agent the rules of your website
Nexity: an open source system for starting and growing AI-native websites on Next.js + Sanity
For teams where every website change lands on a developer. Marketing builds new sections with AI, and a developer reviews them before they go live. MIT licensed, no CLA, no paid tier.
)
Start a new project in a minute
Next.js 16 | Sanity Studio 6 | Extracted from 20+ client projects.
npm create sanity@latest -- --template Pagepro/nexity/basecd <your project folder>pnpm devNeeds Node.js 22.12 or newer, pnpm 12.15 and a free Sanity account. The site runs on localhost:3000 and the Studio on localhost:3000/admin.
Your agent can write a section.
It does not know your design system.
A prompt is enough to generate a section, but the agent won’t use your blocks, your tokens or your schema, so the result looks off-brand and the cleanup lands on the developer.
Nexity puts the rules where the agent reads them, in the repo.
)
What the agent gets
DESIGN.md
How the site looks. Tokens, section anatomy, do’s and don’ts.
BRAND.md
What the site says. Audience, voice, messaging.
AGENTS.md
How to build. Architecture, commands, conventions and step-by-step checklists.
Reviewers and auditors read your work and never edit your code. They run when create-section finishes, and you can run them on any diff. One checks a section against
DESIGN.md. Others check the Sanity schema, the GROQ queries, links, images and delivery.Skills set up a project, create sections, fix links, write alt texts and audit how you use Sanity.
)
Your team can build a section.
A developer reviews it before it goes live.
Describe the section you need. Your agent builds it in your design and your voice, and reviewers check the result.
Your design and your voice live in the repo, so every new section starts from them.
Update pages yourself
Build pages from about two dozen ready blocks. Click to edit, see a live draft preview, publish when you are ready.
New sections, on brand
Ask your agent for a section. It follows your design and your voice, and a developer reviews it before it goes live.
Ready for search and AI
Titles, descriptions, sitemap and structured data are built in. Every page also comes as plain text for AI.
Start with the marketing skills.
Marketing skills work on any site and any CMS. Write what you need in plain words and get a report back: contradictions, post reviews, internal links, post updates, a brand kit. By default they only read and propose changes. Nothing is published until a person makes the change.
/plugin marketplace add Pagepro/nexity/plugin install nexity-marketing-skills@nexityThen ask your agent: “Help me setup these skills for marketers.”
Not on Claude Code?
npx skills add Pagepro/nexityA new section touches seven places.
Sanity schema
GROQ query
React component
Gallery fixture
Markdown serializer
Insert menu
Tile
create-section first decides whether to reuse a block, extend one or build a new one. Then it does all seven places and runs the reviewers before you see a diff.
)
From a finished site instead of an empty folder.
Start From Meridian
Clone Meridian, a complete demo site, and seed it with
pnpm seed.Put your own voice and audience in
BRAND.md.Put your own tokens in
DESIGN.mdand ask your agent to apply them.Add and change sections with
create-section. The reviewers check each one.
npm create sanity@latest -- --template Pagepro/nexity/theme-meridianStart from base
Prefer a neutral look? Start from base/, the unbranded foundation. It opens on an empty dataset with a Next steps screen.
npm create sanity@latest -- --template Pagepro/nexity/base
What is in the repo
Three top-level folders.
base/
An unbranded foundation. A pnpm monorepo with a Next.js app (web/), with the Studio embedded at /admin and a standalone Studio (studio/).
THEME-MERIDIAN/
The demo site, with full design, product mocks and seed content.
.agents/
Holds the skills and agents. Plain files that work with any coding agent.
)
Stack. Next.js 16 (App Router, Turbopack), React 19, Sanity Studio 6, Tailwind CSS 4 with shadcn/ui, TypeScript, Zod, Oxlint and Oxfmt, Resend, c15t cookie consent.
~24
blocks out of the box, plus pages, blog, case studies, podcast episodes and reusable libraries for authors, testimonials and integrations
20+
client projects Nexity was extracted from
MIT
licensed, no CLA, no paid tier
Next.js 16
App Router, Turbopack, with React 19 and Sanity Studio 6
Works with the agent you already use
)
Codex | Reads AGENTS.md natively |
Cursor | Reads AGENTS.md natively |
Claude Code | Reads it through a one-line import: put @AGENTS.md in CLAUDE.md. |
Skills | Use the open Agent Skills format. |
Check your setup | pnpm agent:doctor |
Update skills | pnpm agent:update --source ../nexity brings in newer skills from a clone of the repo. |
ALSO IN THE BOX
llms.txt, and every page as Markdown (add.mdto any URL)Redirects and rewrites managed in the CMS, live in about two minutes
Tag-based revalidation on publish, with no rebuilds
Pre-launch GROQ checks for missing or out-of-range titles and descriptions
JSON-LD, sitemap and one
IS_INDEXABLEswitch for launchCORS and the revalidation webhook set up from env vars
CI that runs lint, format check, typecheck and build
KNOWN LIMITS
Single-language sites only.
The newsletter form is UI only until you connect an email provider.
A project made from Nexity does not update itself, but the agent layer does, with
pnpm agent:update.The Meridian seed replaces documents with the same IDs, so use a fresh dataset.
Full list in the README
Nexity comes from the Next.js + Sanity projects Pagepro has built for clients. The patterns that kept coming back went into the repo. It is MIT licensed, with no CLA and no paid tier.
)
)