NILPRESS-1 Edge CMS · zero-cost class

Open-source CMS for Cloudflare Workers, D1 and R2PRELIMINARY

1Features

  • 0 ms CPU for a cached page
  • Save and it is live: no rebuild, no CI run
  • Publish purges only the pages that changed, by cache tag
  • Editors log in with a password or a passkey. No GitHub account
  • Roles and permissions you edit in the admin
  • Field-level translation and diacritic-insensitive search
  • Designed to stay inside the Cloudflare free plan

Preliminary: v1 is in development. There is nothing to install yet.

2Functional block diagram

Bench: one route, /projectssimulated from measured values
Functional block diagram: visitor, edge cache, Worker, D1 and admin VISITOR EDGE CACHE /projects · VALID WORKER render · purge D1 ADMIN save & publish purge by tag · ~130 ms HIT → 0 ms CPU MISS → render 2 ms read Functional block diagram: visitor, edge cache, Worker, D1 and admin VISITOR EDGE CACHE /projects · VALID WORKER render · purge D1 ADMIN publish purge bytag~130 ms HIT → 0 ms CPU MISS → render 2 ms
  1. Press a control, or wait for the demo pass.
Fig. 1. A page is rendered once by the Worker, then served from the edge cache. Publishing purges the tags the page depends on; the next request renders again and refills the cache.
ParameterTypUnit
CPU time, cached page0ms
CPU time, uncached page (D1 → render → cache)2ms
Purge by tag, API call~130ms

Measured on 2026-11-27 with a throwaway Worker on a Workers Paid account, from one point of presence. Free-plan figures will be published here.

3Description

Nilpress is a code-first CMS framework that runs entirely on Cloudflare: Workers, D1, R2, the CDN cache and static assets. You declare content types in TypeScript; Nilpress generates the D1 tables, migrations, REST API, admin forms and validation.

Public pages are rendered by the Worker with Hono JSX, stored in the edge cache and tagged with the content they read. When an editor publishes, Nilpress purges exactly those tags, so the next visitor sees the change. The admin is a static Preact app that costs no Worker requests to load.

The name is nil (zero) and press (publishing): zero hosting cost for ordinary sites, and the paid plan for heavier ones without a rewrite.

4Applications

  • Small-business showcase sites: portfolio, services, contact block, quote form
  • Blogs, portfolios and documentation that editors update daily
  • Multilingual sites with per-locale publishing
  • Headless content for Astro, Next.js or mobile apps through the public API

5Timing diagrampublish → purge → miss → hit

Timing diagram: publish → purge → miss → hit PUBLISHPURGE APICACHE /projectsGET /projectsWORKER CPU ~130 ms VALID PURGED VALID 2 ms 0 ms t0 publisht1 purgedt2 GET → MISSt3 cache.putt4 GET → HIT
Fig. 2. Draft saves never purge. Only publish, unpublish and delete change the live version and trigger a purge, sent in the background so the editor is not kept waiting.

6Getting startedplanned for v1

  1. npm create nilpress@latest my-siteScaffolds a project: nilpress.config.ts, the starter theme, wrangler.jsonc and the first migration.
  2. nilpress.config.tsDeclare collections, forms, theme and plugins. Tables, API and admin forms follow from it.
  3. nilpress devRuns the site and the admin at /admin/ locally, with local D1 and R2.
  4. nilpress deployBuilds, applies the D1 migrations and deploys to your Cloudflare account. The edge cache needs a custom domain.
export default defineConfig({
  site:       { url: 'https://example.com', name: 'Example Co.' },
  locales:    { default: 'en', available: ['en', 'vi'] },
  collections: [projects, categories],
  singletons: [contactInfo],
  forms:      [quoteRequest],
  theme:      starterTheme,
  plugins:    [telegram({ chatId: env('TELEGRAM_CHAT_ID') })],
})

Illustrative; the API may change before v1.

Pin configuration of nilpress.config.ts DECLARED IN CODE → → GENERATED SITE 1 LOCALES 2 COLLECTIONS 3 SINGLETONS 4 FORMS 5 THEME 6 PLUGINS 7 D1 TABLES 14 MIGRATIONS 13 REST API 12 ADMIN FORMS 11 VALIDATION 10 SEARCH INDEX 9 SITEMAP 8 NILPRESS-1 nilpress build Pin configuration of nilpress.config.ts DECLARED IN CODE → → GENERATED SITE 1 LOCALES 2 COLLECTIONS 3 SINGLETONS 4 FORMS 5 THEME 6 PLUGINS 7 D1 TABLES 14 MIGRATIONS 13 REST API 12 ADMIN FORMS 11 VALIDATION 10 SEARCH INDEX 9 SITEMAP 8 NILPRESS-1nilpress build
Fig. 3. Everything a site uses is declared in one config file. nilpress build imports only what is declared, so a blog ships no form or plugin code.

Get v1 when it ships

Nilpress is MIT-licensed. Star or watch the repository to hear when v1 is installable.

Star on GitHub