For Next.js developers

A simple headless CMS for Next.js — fetch, revalidate, edit on the page

Load content in a Server Component with a regular fetch and revalidate, keep your App Router and your components. Editors change texts and images on the live site, not in a separate admin panel.

Start free
For developers

Headless CMS with a content API — your site stays yours

We give you a REST content API, not a site builder. Your developer builds the site on any stack, and text, images and lists come from the CRM with a plain GET request. A page, a section or a single block arrives as JSON keyed by your own markers; blog posts come as a list.

  • Fetch from the browser on any domain, from your server or at build time
  • Every language in one response, or only the ones you need: ?lang=en,es
  • The public key is read-only, opens only your own site’s content, and can be revoked in CRM settings

Next.js and a CMS without the ceremony

Next.js already caches and revalidates fetch requests, so a CMS does not need its own client library, a GraphQL layer or generated types to fit in. It needs a fast API and a predictable JSON shape.

Sitecog is exactly that: a REST endpoint per page, cached responses with an ETag, and on-page editing that works on your rendered Server Components.

Why it fits Next.js

  • Server Components, no SDK

    A regular fetch with next: { revalidate: 60 } in a Server Component. The key lives in process.env and never reaches the browser.

  • Fresh content while editing

    When the site is open in the CRM, the URL carries crm_live=1 — skip the cache for that request and editors see their change at once.

  • Editing on the real site

    data-crm-text and data-crm-image on the elements that render blocks. One frame-ancestors header lets the CRM open the site.

  • Works with i18n routing

    Pass the locale from your route: ?lang=de,en returns the language and the fallback in one response.

  • Pages, sections, blocks — and a blog

    Structured content for landing pages plus a blog API for articles with their own covers and texts.

  • Read-only public key

    Even if it leaks to the client, the key only reads one site’s published content.

How to connect a Next.js app

  1. Put the key in the environment

    CRM_KEY in .env.local for Server Components; NEXT_PUBLIC_CRM_KEY only if client code also fetches.

  2. Fetch in a Server Component

    One request per page with revalidate. Render the blocks with your own components.

  3. Enable Live mode

    The widget script in the root layout, data-crm-* attributes on the elements and the frame-ancestors header in next.config.js.

// app/page.tsx — a Server Component: the key stays on the server
const API = 'https://back.sitecog.com/content';

export default async function Home() {
  const res = await fetch(API + '/v1/pages/home?lang=en', {
    headers: { 'x-crm-key': process.env.CRM_KEY! },
    next: { revalidate: 60 }, // ask the API at most once a minute
  });
  if (!res.ok) throw new Error('Content API: ' + res.status);

  const page = await res.json();
  const hero = page.content.hero.content;

  return <h1 data-crm-text="hero_title">{hero.hero_title.content.en}</h1>;
}

// app/layout.tsx — once: <script src="https://widget.sitecog.com/widget.js" defer /> before </body>

// next.config.js — let the CRM open your site in Live mode
module.exports = {
  async headers() {
    return [{
      source: '/:path*',
      headers: [
        { key: 'Content-Security-Policy', value: "frame-ancestors 'self' https://sitecog.com" },
      ],
    }];
  },
};
Live editing

Change your website exactly where customers see it

Visual editing the way it should work: open your website in the CRM, click a heading, price or image and change it right on the page. No clunky admin forms: a developer connects the site once, and after that every edit is yours.

  • Text, images, video, lists and product cards
  • Pick an image from your storage — or just drag a new one onto the page
  • Works with any stack: React, Next.js, Vue, PHP or static HTML
All features →
Multilingual

Add a language — your site translates itself

Pick a language from the list and the CRM translates the texts on your pages in the background with Google Translate. Your site stays live the whole time: until the translation is ready, the new language shows a copy of the original.

  • 20 languages to choose from, including Chinese, Arabic, Hindi, Thai and Swahili
  • Translation never overwrites your edits: it only replaces text that still matches the original word for word
  • Switch a language off and visitors won’t see it — not in the switcher, not by direct request

Questions from Next.js developers

App Router or Pages Router?

Both. The examples use the App Router and Server Components; in the Pages Router make the same request in getStaticProps or getServerSideProps.

How does revalidation work with edits?

With revalidate: 60, visitors see an edit within about a minute. While an editor is working, the page is opened with crm_live=1 — fetch with cache: no-store for that request and the change shows immediately.

Is there an SDK or an npm package?

No, and you do not need one. It is a plain REST API that returns JSON: one fetch per page, the same in any framework.

What can editors change on the page?

Every element that shows content from the API and carries a data-crm-text, data-crm-image or data-crm-array attribute. Hard-coded text stays code: the editor will not save it. The editor itself loads only when the site is opened inside the CRM — visitors never download it.

How fast is it, and what are the limits?

Responses are cached for 60 seconds and carry an ETag, so unchanged content costs almost nothing. The limits are 300 requests a minute from one IP and 600 a minute per site key — with caching on your side, a normal site never gets close.

Can I use it with static export?

The content is fetched at build time then, so an edit appears after the next build — there are no webhooks yet to trigger it automatically. For instant edits, keep the pages rendered on the server with revalidate.

Pricing

Start free for 7 days

Every account starts on the Trial: your website, on-page editing and auto-translation. Basic adds leads from forms, live chat, the blog and site traffic; Pro adds the rest of marketing.

Trial

Free7 days
Available right after sign-up
Websites
1
Pages
3
Blocks
100
Languages
2
File storage
50 MB
Auto-translation characters
10,000
  • Content and live editing
  • Auto-translation into other languages
  • Dashboard, files, team members, activity log
Start free

Basic

$29per 30 days
Activated in the CRM
Websites
3
Pages
20
Blocks
1,000
Languages
5
File storage
2 GB
Auto-translation characters
220,000
Everything in Trial, plus:
  • Live chat with site visitors
  • Leads from website forms
  • Blog
  • Website traffic
Start with the Trial

Pro

All features
$79per 30 days
Activated in the CRM
Websites
10
Pages
200
Blocks
20,000
Languages
20
File storage
20 GB
Auto-translation characters
590,000
Everything in Basic, plus:
  • Ad channels
  • Site events
  • Conversion funnels
  • Click and scroll heatmaps
Start with the Trial
Compare plans in detail
Limits and features of the Trial, Basic and Pro plans
PlanTrialBasicPro
Limits
Websites1310
Pages320200
Page sections303003,000
Blocks1001,00020,000
Languages2520
File storage50 MB2 GB20 GB
Auto-translation characters10,000220,000590,000
Team members per website2520
Blog postsNot included1001,000
Ad linksNot includedNot included500
Forms and eventsNot includedNot included100
Features
Content editingIncludedIncludedIncluded
Live editing on the pageIncludedIncludedIncluded
Auto-translationIncludedIncludedIncluded
Leads from website formsNot includedIncludedIncluded
Live chat with visitorsNot includedIncludedIncluded
BlogNot includedIncludedIncluded
Marketing analyticsNot includedIncludedIncluded
Visitor accounts on your websiteNot includedNot includedSoon
  • Limits apply per account, across all your websites combined; team members are counted per website
  • The Trial is available once per account; auto-translation characters cover the full 7 days
  • Paid plans run in 30-day periods, and auto-translation characters reset at the start of each one
  • After the Trial, pick Basic or Pro. Without payment the CRM locks, but your website keeps running
Get started

Try Sitecog on your own website

Sign up and the Trial is yours: 7 days free. Connect your website — once it’s set up, edit it right on the page. Leads, live chat and analytics come with paid plans.

  • 7 days free
  • Email or Google
  • No credit card required

Have a question first? Talk to us