{"id":51198219,"url":"https://github.com/schiste/temis","last_synced_at":"2026-06-27T22:31:28.533Z","repository":{"id":364790995,"uuid":"1268526579","full_name":"schiste/temis","owner":"schiste","description":"TEMIS static Astro site with EmDash-managed content on Cloudflare","archived":false,"fork":false,"pushed_at":"2026-06-23T14:18:50.000Z","size":1529,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T16:20:08.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schiste.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"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-06-13T16:30:36.000Z","updated_at":"2026-06-23T14:21:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/schiste/temis","commit_stats":null,"previous_names":["schiste/temis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/schiste/temis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schiste%2Ftemis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schiste%2Ftemis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schiste%2Ftemis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schiste%2Ftemis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schiste","download_url":"https://codeload.github.com/schiste/temis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schiste%2Ftemis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34870654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"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":[],"created_at":"2026-06-27T22:31:27.696Z","updated_at":"2026-06-27T22:31:28.527Z","avatar_url":"https://github.com/schiste.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TEMIS\n\nTEMIS is a static Astro website whose content is authored in EmDash.\n\nThe stack is split into two deployable surfaces:\n\n- `apps/site`: fully static Astro output for Cloudflare Pages.\n- `apps/cms`: EmDash admin and preview runtime for Cloudflare Workers, backed by D1 and R2.\n\nContent is published in EmDash, exported as a signed snapshot during the Pages build, and rendered into static HTML by Astro.\n\nThe V1 product direction is tracked in [docs/vision.md](./docs/vision.md),\n[docs/prd-v1.md](./docs/prd-v1.md),\n[docs/design-system.md](./docs/design-system.md), and the ADRs in\n[docs/adr](./docs/adr).\n\nContribution guidelines are tracked in\n[CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## Local Setup\n\n```sh\npnpm install\npnpm dev:cms\npnpm seed\npnpm dev:site\n```\n\nFor a purely offline static build using the committed starter snapshot:\n\n```sh\npnpm build:offline\n```\n\nTo mirror the current published production content locally, set the same\n`EMDASH_PREVIEW_SECRET` used by the CMS snapshot endpoint, then pull the\nproduction snapshot before starting the static site:\n\n```sh\nexport EMDASH_PREVIEW_SECRET=replace-with-the-real-secret\npnpm snapshot:pull:production\npnpm dev:site\n```\n\nOr run the combined helper:\n\n```sh\nexport EMDASH_PREVIEW_SECRET=replace-with-the-real-secret\npnpm dev:site:production-content\n```\n\nThis mirrors production content through the published EmDash snapshot. It does\nnot give the local static site direct D1 access, which matches the production\nstatic-site architecture.\n\nTo mirror the CMS database locally without giving local development write access\nto production D1, export production D1 into the local SQLite database:\n\n```sh\npnpm cms:sync:production-replica\npnpm dev:cms\n```\n\nOr bring both local surfaces up from production content:\n\n```sh\nexport EMDASH_PREVIEW_SECRET=replace-with-the-real-secret\npnpm dev:production-replica\n```\n\nThe replica command uses `wrangler d1 export --remote` as a read-only production\noperation, then imports the SQL into `apps/cms/data.db`. Existing local\n`data.db` is backed up before replacement. Normal local CMS development still\nwrites only to SQLite, and local dev does not enable the Pages deploy hook.\n\nFor the production static build, set `EMDASH_BASE_URL` and `EMDASH_PREVIEW_SECRET`, then run:\n\n```sh\npnpm build\n```\n\n## CMS Schema Management\n\nThe V1 EmDash contract is tracked in two places:\n\n- `apps/cms/.emdash/seed.json` for native EmDash collections, fields,\n  taxonomies, starter content, menus, and site options.\n- `apps/cms/schema/site.schema.json` for TEMIS-specific V1 graph terms,\n  bylines, fixture relationships, and media policy.\n\nCheck local CMS schema drift:\n\n```sh\npnpm cms:schema:check\n```\n\nApply safe additive local changes:\n\n```sh\npnpm cms:schema:apply\n```\n\nCheck production D1 schema drift:\n\n```sh\npnpm cms:schema:check:production\n```\n\nApply safe additive production changes:\n\n```sh\npnpm cms:schema:apply:production\n```\n\nThe schema scripts are additive. They may add fields, field metadata, topic/tag\nterms, fixture bylines, menu items, missing site options, and relationship\nlinks. They do not delete, rename, or rewrite unrelated editorial content.\nExtra legacy fields are reported as warnings.\n\n## Cloudflare Names\n\n- Pages project: `temis-site`\n- CMS Worker: `temis-cms`\n- D1 database: `temis-cms-db`\n- R2 bucket: `temis-media`\n\nSee [Cloudflare setup](./docs/cloudflare.md) for the resource creation and deployment sequence.\n\n## Licensing\n\nTEMIS source code is dual-licensed under `MIT OR Apache-2.0`; see\n[LICENSE](./LICENSE), [LICENSE-MIT](./LICENSE-MIT), and\n[LICENSE-APACHE](./LICENSE-APACHE).\n\nPublished website content will use `CC-BY-SA-4.0`. Third-party dependencies\nkeep their own licenses; primary notices are tracked in\n[THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschiste%2Ftemis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschiste%2Ftemis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschiste%2Ftemis/lists"}