Next.js 16 · Prisma 7 · Auth.js v5 · Full source

A branding website with a built-in, role-aware CMS

Every page, section, post and asset on the public site is editable from a secure dashboard — with a drag-and-drop page builder, five permission levels and an audit trail for every change.

NAFATECHS animated mark
Page-builder blocks
22
Zod-validated, drag & drop
RBAC roles
5
Capability-based, server-enforced
Fine-grained permissions
28
One file to change access
Media pipeline
AVIF
sharp → AVIF / WebP variants

Core pillars

Everything needed to run a content-driven brand site

Server Components, server actions and a typed data layer keep the site fast and the CMS safe.

Visual page builder

Compose every public page from typed blocks — heroes, feature grids, testimonials, CTAs — and reorder them with drag and drop.

  • 22 blocks with Zod schemas
  • Draft → publish workflow
  • Per-page SEO & settings

Role-based access control

Call sites ask “can this user do X?”, never “is this user an admin?”. Every write is guarded server-side.

  • authorize() on every action
  • Ownership-scoped content
  • Full activity log

Production media & storage

Uploads are optimised into responsive AVIF and WebP variants and stored on local disk, Postgres or any S3-compatible bucket.

  • S3 / R2 / MinIO adapters
  • Rate-limited public writes
  • Redis-backed caching

Product tour

Six workspaces, one dashboard

What each role sees depends on its permissions — sign in below to compare.

  • Pages

    Build and publish pages section by section.

  • Collections

    Blog posts, projects, services and careers.

  • Media library

    Upload, crop-ready variants and alt text.

  • Enquiries

    Contact, newsletter and job submissions.

  • Users & roles

    Invite teammates and assign capabilities.

  • Activity log

    Every change, who made it and when.

Authorisation by design

Every write is checked on the server

Permissions live in one file. Server actions and route handlers ask for a capability, so moving a permission between roles never means hunting through the codebase.

  • Capability checks: authorize('page:publish'), not role checks.
  • Ownership scoping: authors only edit their own posts.
  • Safe queries: Prisma methods and tagged templates only.
Example server action
'use server';

export async function publishPage(id: string) {
  // Throws unless the session's role grants it.
  const user = await authorize('page:publish');

  await db.page.update({
    where: { id },
    data: { status: 'PUBLISHED', publishedAt: new Date() },
  });
  await logActivity(user, 'page.publish', id);
}

Instant evaluation

Explore the CMS with one-click demo login

No passwords to type. Pick a role and you’ll land in the dashboard with exactly that role’s permissions.

  • CMS admin

    Administrator

    Everything in the CMS including settings, theme and users.

  • Publish

    Editor

    Full content control including publishing and navigation.

  • Own content

    Author

    Can draft content and upload media, but cannot publish.

  • Read only

    Viewer

    Read-only access to content and analytics.

Demo data may be reset at any time. All actions are recorded in the activity log.

Ready to take it for a spin?

Browse the public site, then jump into the dashboard as any role.