{"id":48121620,"url":"https://github.com/srmdn/foliocms","last_synced_at":"2026-04-06T17:01:18.122Z","repository":{"id":347203883,"uuid":"1193183766","full_name":"srmdn/foliocms","owner":"srmdn","description":"Lightweight, self-hosted CMS for Astro: markdown files, SQLite, REST API","archived":false,"fork":false,"pushed_at":"2026-04-04T08:49:41.000Z","size":255,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T17:11:34.381Z","etag":null,"topics":["astro","cms","golang","markdown","self-hosted","sqlite"],"latest_commit_sha":null,"homepage":"https://foliocms.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srmdn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":"GOVERNANCE.md","roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-27T00:44:21.000Z","updated_at":"2026-04-04T08:59:37.000Z","dependencies_parsed_at":"2026-03-27T14:02:27.161Z","dependency_job_id":"4e18a3c0-ba28-4564-bc01-fe156939bd49","html_url":"https://github.com/srmdn/foliocms","commit_stats":null,"previous_names":["srmdn/inkwell"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/srmdn/foliocms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srmdn%2Ffoliocms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srmdn%2Ffoliocms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srmdn%2Ffoliocms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srmdn%2Ffoliocms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srmdn","download_url":"https://codeload.github.com/srmdn/foliocms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srmdn%2Ffoliocms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31481238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T14:34:32.243Z","status":"ssl_error","status_checked_at":"2026-04-06T14:34:31.723Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["astro","cms","golang","markdown","self-hosted","sqlite"],"created_at":"2026-04-04T16:20:06.898Z","updated_at":"2026-04-06T17:01:18.106Z","avatar_url":"https://github.com/srmdn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Folio\n\nA lightweight, self-hostable CMS. Single Go binary. SQLite. Ships with a default Astro theme. No Docker required.\n\n## Why\n\nMost open source CMS options are either too heavy (WordPress, Ghost) or too opinionated about the frontend (Payload, Strapi). Folio is built for developers who self-host on a cheap VPS and want:\n\n- A real Markdown editor out of the box\n- A default frontend theme they can swap\n- Zero external dependencies: no PostgreSQL, no Redis, no Docker\n- One systemd service and done\n\n## Requirements\n\n- Go 1.21+\n- Node.js 18+ and npm\n- Git\n- Linux or macOS\n\n\u003e **Note:** Node.js 22 or later is required for the default theme (Astro 6).\n\n## Install\n\nDownload and review the installer, then run it:\n\n```bash\ncurl -O https://raw.githubusercontent.com/srmdn/foliocms/main/install.sh\nbash install.sh\n```\n\nThis will:\n\n1. Clone Folio and build the binary from source\n2. Clone and build the default Astro theme\n3. Create a `.env` file with a generated `JWT_SECRET`\n4. Run the first-time setup wizard to create your admin account\n\nBy default, everything is installed into `./folio/`. To use a different directory:\n\n```bash\nbash install.sh --dir /opt/folio\n```\n\n## Running\n\nAfter install:\n\n```bash\ncd folio\n\n# Start the backend API (default port 8090)\n./folio\n\n# In a separate terminal: start the theme (default port 4321)\ncd theme \u0026\u0026 node dist/server/entry.mjs\n```\n\nFor production, run both as systemd services. See [docs/configuration.md](docs/configuration.md) for all environment variables.\n\n## First-time setup\n\nThe installer runs `--setup` for you. If you need to re-run it later:\n\n```bash\n./folio --setup\n```\n\nThis creates the admin account interactively. You can also set `ADMIN_EMAIL` and `ADMIN_PASSWORD` in `.env` instead.\n\n## Configuration\n\nAll configuration is via `.env`. See [docs/configuration.md](docs/configuration.md) for the full reference.\n\nKey variables:\n\n| Variable | Default | Description |\n|---|---|---|\n| `PORT` | `8090` | Backend API port |\n| `JWT_SECRET` | (none) | Required. Generate with `openssl rand -hex 32` |\n| `CONTENT_DIR` | `content/blog` | Path to Markdown content |\n| `THEME_DIR` | `theme` | Path to the theme directory |\n| `THEME_BUILD_CMD` | `npm run build` | Command to rebuild the theme |\n| `THEME_SERVICE` | (none) | systemd service name to restart after rebuild |\n\n## Admin Dashboard\n\nFolio includes a built-in admin dashboard at `/admin`. No separate service or install step required — it is embedded in the Go binary.\n\n| Path | Description |\n|------|-------------|\n| `/admin/login` | Sign in |\n| `/admin/posts` | Create, edit, publish, and delete posts |\n| `/admin/subscribers` | View and remove newsletter subscribers |\n| `/admin/settings` | Trigger a site rebuild and view build status |\n\nThe post editor uses [Milkdown](https://milkdown.dev), a WYSIWYG Markdown editor with support for headings, lists, code blocks, tables, and more. Press **Cmd+S** (or **Ctrl+S** on Windows/Linux) to save at any time.\n\n## API\n\nFull API reference: [docs/api.md](docs/api.md)\n\n## Theme\n\nFolio ships with [foliocms-theme-default](https://github.com/srmdn/foliocms-theme-default), an Astro SSR theme. The installer sets it up automatically.\n\nTo build a custom theme, see [docs/theme-contract.md](docs/theme-contract.md).\n\n## Architecture\n\n- **Backend**: Go, Chi router, SQLite (`modernc.org/sqlite`, pure Go, no CGo)\n- **Auth**: JWT (cookie + Bearer header) + stateless CSRF (HMAC-SHA256)\n- **Default theme**: Astro SSR (separate repo)\n- **Content**: Markdown files with YAML frontmatter in `content/blog/\u003cslug\u003e/index.md`\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrmdn%2Ffoliocms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrmdn%2Ffoliocms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrmdn%2Ffoliocms/lists"}