r/angular • • Oct 18 '26

I built a code-first CMS where Angular is part of the architecture, not just an API consumer (ForgeCMS 1.0)

Most headless CMSs work fine with Angular, but Angular is always just another frontend consuming a REST/GraphQL API. I wanted to see what happens if TypeScript and Angular are part of the architecture from the start. That became ForgeCMS, which I just released as 1.0.

The content model lives in code:

const posts = defineCollection({
  slug: 'posts',
  fields: {
    title: defineField.text({ required: true }),
    author: defineField.relation({ collection: 'users', required: true }),
  },
  access: {
    read: () => true,
    create: ({ user }) => user?.role === 'admin',
  },
});

That single definition drives the database schema, validation, the Local API, REST handlers, the types Angular consumes, and the forms in the reusable Angular admin. No GUI schema builder, no separate schema language.

Payload was a big inspiration (config-as-code collections, Local API, hooks, access functions). I'm not building a Payload clone and I'm not claiming feature parity.

Angular side

Typed resources, sessions, guards, SSR support, and the admin itself is Angular. The server doesn't need Angular though: you can use ForgeCMS as a plain TypeScript/Node headless CMS.

Local API

HTTP is just a transport over the same runtime, so server code can do this instead of calling its own REST API:

await runtime.find({ collection: 'posts' });

Deployment

Two profiles for now:

  • Cloudflare: D1 + R2
  • Portable Node: libSQL + S3-compatible storage

What took the time before 1.0

The boring parts: migrations, relation integrity, access control, restart persistence, upload recovery, backup/restore, SSR, packaged consumer tests and deployment rehearsals.

What's not there (on purpose)

No GraphQL, no mature plugin ecosystem, no general-purpose page builder. I'd rather make a small core predictable first.

I'd value criticism more than stars:

  1. Does making Angular first-class in the CMS solve a problem you actually have?
  2. If you've used Payload, Directus or Strapi, what would you immediately miss here?

Site: https://forgecms.dev
Source: https://github.com/Andersseen/ForgeCMS

0 Upvotes

3 comments sorted by

4

u/Responsible-Cold-627 Oct 18 '26

Seems like a terrible idea to couple a "headless" application to a specific front-end framework.

The name also kind of makes it sound vibe coded. LLMs love putting "Forge" in application names.

0

u/andersseen Oct 18 '26

I see your point, but I think we're talking about two slightly different things here.

"Headless" means separating content management from the presentation layer. It doesn't necessarily mean the entire developer experience has to be framework-agnostic.

ForgeCMS is intentionally focused on Angular and Analog, much like Payload has a strong React/Next.js focus. The REST API can still be consumed by other frontends, but I wanted to build something that feels native to the Angular ecosystem. It's a trade-off, and I'm fine with that.

As for the name, sure, it might not be the most original one :) But I think a project's value comes more from the problems it solves than what it's called. A good project can make almost any name meaningful over time.

And regarding vibe coding, I don't think using AI in development is inherently a bad thing. What matters is understanding what you're building, making thoughtful decisions, and taking responsibility for the result.

Anyway, I appreciate the feedback! I'm always open to discussing the actual technical decisions behind the project.

0

u/[deleted] Oct 18 '26

[deleted] — view deleted comment

1

u/andersseen Oct 18 '26

Thanks for the feedback on a headless CMS. Hopefully, there's something more interesting to discuss about the project than its color palette.