{"id":47592194,"url":"https://github.com/forge-cms/forge","last_synced_at":"2026-04-18T13:02:23.439Z","repository":{"id":341352538,"uuid":"1169191142","full_name":"forge-cms/forge","owner":"forge-cms","description":"The Go web framework designed for how you actually think.","archived":false,"fork":false,"pushed_at":"2026-04-14T05:16:24.000Z","size":973,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T06:21:32.332Z","etag":null,"topics":["ai-friendly","cms","content-management","content-management-system","go","golang","open-source","seo","web-framework","zero-dependency"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forge-cms.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":"CLA.md"},"funding":{"github":"forge-cms"}},"created_at":"2026-02-28T10:05:50.000Z","updated_at":"2026-04-14T05:16:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/forge-cms/forge","commit_stats":null,"previous_names":["forge-cms/forge"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/forge-cms/forge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge-cms%2Fforge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge-cms%2Fforge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge-cms%2Fforge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge-cms%2Fforge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forge-cms","download_url":"https://codeload.github.com/forge-cms/forge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge-cms%2Fforge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31969772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-friendly","cms","content-management","content-management-system","go","golang","open-source","seo","web-framework","zero-dependency"],"created_at":"2026-04-01T17:39:02.302Z","updated_at":"2026-04-18T13:02:23.433Z","avatar_url":"https://github.com/forge-cms.png","language":"Go","funding_links":["https://github.com/sponsors/forge-cms"],"categories":[],"sub_categories":[],"readme":"# Forge\n\nA Go framework for content-driven applications. Zero dependencies. AI-native by default.\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/forge-cms/forge.svg)](https://pkg.go.dev/github.com/forge-cms/forge)\n**v1.12.0 — stable.** All exported symbols are stable. No breaking changes without a major version bump. See [CHANGELOG.md](CHANGELOG.md).\n\n## 30-second start\n\n```bash\ngit clone https://github.com/forge-cms/forge\ncd example/blog\ngo run .\n# open http://localhost:8080\n```\n\n## What Forge gives you\n\n**Content**\n- **Full CRUD** — create, update, publish, archive, and delete through a single `Module[T]`\n- **Draft-safe lifecycle** — drafts return 404 to guests; only Published content is visible\n- **Scheduled publishing** — set a future `ScheduledAt`; Forge transitions to Published automatically\n- **Content negotiation** — one endpoint serves JSON, HTML, or Markdown based on `Accept`\n\n**Auth \u0026 security**\n- **Role-based auth** — Guest → Author → Editor → Admin enforced per-module, per-operation\n- **Cookie compliance** — `/.well-known/cookies.json` declares cookie categories for GDPR tooling\n- **Security headers** — CSP, HSTS, X-Frame-Options wired in one middleware call\n\n**Discovery**\n- **Structured data (JSON-LD)** — Article, Product, FAQ, and more emitted in every page `\u003chead\u003e`\n- **Event-driven sitemap** — regenerated on publish, update, and delete; no cron job required\n- **Open Graph** — og:title, og:description, og:image meta tags for social link previews\n- **Twitter Cards** — twitter: meta tags with summary and summary_large_image support\n- **RSS feed** — per-module feed at `/{prefix}/feed.xml` plus a global aggregate at `/feed.xml`\n\n**AI-native**\n- **AI indexing** — `/llms.txt` compact index, `/llms-full.txt` Markdown corpus, and per-item `/aidoc` endpoints\n- **MCP integration** — connect AI agents to read and write content via the Model Context Protocol\n\n**Infrastructure**\n- **Graceful shutdown** — drains in-flight requests before exiting on SIGINT/SIGTERM\n\n---\n\n| | Forge | Echo | Gin | Chi |\n|---|---|---|---|---|\n| Zero dependencies | ✓ | ✗ | ✗ | ~ |\n| Content lifecycle built-in | ✓ | ✗ | ✗ | ✗ |\n| Draft-safe by default | ✓ | ✗ | ✗ | ✗ |\n| SEO + structured data | ✓ | ✗ | ✗ | ✗ |\n| AI indexing (llms.txt + AIDoc) | ✓ | ✗ | ✗ | ✗ |\n| Cookie compliance built-in | ✓ | ✗ | ✗ | ✗ |\n| Social sharing built-in | ✓ | ✗ | ✗ | ✗ |\n| Role hierarchy built-in | ✓ | ✗ | ✗ | ✗ |\n\n---\n\n## Installation\n\n```bash\ngo get github.com/forge-cms/forge\n```\n\nRequires Go 1.22+. No other dependencies.\n\n---\n\n## Minimal example\n\nDefine a content type, wire it, run it.\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/forge-cms/forge\"\n)\n\ntype Post struct {\n\tforge.Node\n\tTitle string `forge:\"required,min=3\" json:\"title\"`\n\tBody  string `forge:\"required\"       json:\"body\"`\n}\n\nfunc (p *Post) Head() forge.Head {\n\treturn forge.Head{\n\t\tTitle:       p.Title,\n\t\tDescription: forge.Excerpt(p.Body, 160),\n\t}\n}\n\nfunc (p *Post) Markdown() string { return p.Body }\n\nfunc main() {\n\trepo := forge.NewMemoryRepo[*Post]()\n\tm := forge.NewModule((*Post)(nil), // nil pointer — type parameter inferred, no allocation\n\t\tforge.At(\"/posts\"),\n\t\tforge.Repo(repo),\n\t\tforge.Auth(forge.Read(forge.Guest), forge.Write(forge.Author)),\n\t)\n\tapp := forge.New(forge.MustConfig(forge.Config{\n\t\tBaseURL: \"http://localhost:8080\",\n\t\tSecret:  []byte(\"change-this-secret-in-production\"),\n\t}))\n\tapp.Content(m)\n\tif err := app.Run(\":8080\"); err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```\n\nRoutes: `GET /posts`, `GET /posts/{slug}`, `POST /posts`, `PUT /posts/{slug}`,\n`DELETE /posts/{slug}`, `GET /sitemap.xml`. Draft posts return 404 for guests.\n\n---\n\n## Full feature showcase\n\nSame content type. Add options — each line unlocks a production feature.\n\n```go\nm := forge.NewModule((*Post)(nil),\n\tforge.At(\"/posts\"),\n\tforge.Repo(forge.NewMemoryRepo[*Post]()),\n\tforge.Auth(forge.Read(forge.Guest), forge.Write(forge.Author)),\n\tforge.SitemapConfig{ChangeFreq: forge.Weekly, Priority: 0.8}, // /posts/sitemap.xml\n\tforge.Social(forge.OpenGraph, forge.TwitterCard),              // og: and twitter: meta tags\n\tforge.AIIndex(forge.LLMsTxt, forge.LLMsTxtFull, forge.AIDoc), // /llms.txt + /posts/{slug}/aidoc\n\tforge.Feed(forge.FeedConfig{Title: \"My Blog\"}),               // /posts/feed.xml + /feed.xml\n\tforge.Templates(\"templates/posts\"),                           // HTML at Accept: text/html\n\tforge.On(forge.AfterPublish, func(_ forge.Context, p *Post) error {\n\t\tlog.Printf(\"published: %s\", p.Slug) // fires on publish and scheduled→Published\n\t\treturn nil\n\t}),\n)\n```\n\nThree runnable examples are in [example/](example/):\n- **example/blog** — devlog with seeded posts, RSS, AI indexing, and scheduled publishing\n- **example/api**  — headless JSON API with role-based auth and a redirect manifest\n- **example/docs** — documentation site with AI indexing, `/llms.txt`, and AIDoc endpoints\n\nEach runs with: `cd example/blog \u0026\u0026 go run .`\n\n---\n\n## Reference\n\nFull API reference: [REFERENCE.md](REFERENCE.md)  \nWeb docs: [forge-cms.dev/docs](https://forge-cms.dev/docs)\n\n---\n\n## License\n\n[AGPL v3](LICENSE) — free for individuals, open source projects, and companies\nbuilding their own sites. A commercial license will be available for organisations\nrunning Forge as a hosted service. See [COMMERCIAL.md](COMMERCIAL.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforge-cms%2Fforge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforge-cms%2Fforge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforge-cms%2Fforge/lists"}