{"id":51006775,"url":"https://github.com/jayvidev/astro-sanity-starter","last_synced_at":"2026-06-20T21:01:42.428Z","repository":{"id":364496212,"uuid":"1268075118","full_name":"jayvidev/astro-sanity-starter","owner":"jayvidev","description":"📝 Content-managed website starter template, built with Astro \u0026 Sanity.","archived":false,"fork":false,"pushed_at":"2026-06-13T07:38:24.000Z","size":534,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-13T09:22:55.477Z","etag":null,"topics":["astro","headless-cms","pnpm","sanity","starter-template","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://astro-sanity-starter-site.vercel.app","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/jayvidev.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":null,"dco":null,"cla":null}},"created_at":"2026-06-13T05:44:31.000Z","updated_at":"2026-06-13T07:38:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jayvidev/astro-sanity-starter","commit_stats":null,"previous_names":["jayvidev/astro-sanity-starter"],"tags_count":null,"template":true,"template_full_name":null,"purl":"pkg:github/jayvidev/astro-sanity-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayvidev%2Fastro-sanity-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayvidev%2Fastro-sanity-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayvidev%2Fastro-sanity-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayvidev%2Fastro-sanity-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jayvidev","download_url":"https://codeload.github.com/jayvidev/astro-sanity-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayvidev%2Fastro-sanity-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34585195,"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-20T02:00:06.407Z","response_time":98,"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":["astro","headless-cms","pnpm","sanity","starter-template","tailwindcss","typescript"],"created_at":"2026-06-20T21:01:41.165Z","updated_at":"2026-06-20T21:01:42.418Z","avatar_url":"https://github.com/jayvidev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://astro-sanity-starter-site.vercel.app\"\u003e\n    \u003cimg src=\"./public/images/assets/readme.jpg\" alt=\"Preview\"\u003e\n  \u003c/a\u003e\n  \u003cp\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n# Astro + Sanity Starter\n\n![Astro](https://img.shields.io/badge/Astro-16191f?style=flat\u0026logo=astro\u0026logoColor=white)\n![Sanity](https://img.shields.io/badge/Sanity-0D0E12?style=flat\u0026logo=sanity\u0026logoColor=white)\n![Tailwind CSS](https://img.shields.io/badge/Tailwind%20CSS-06B6D4?logo=tailwindcss\u0026logoColor=white\u0026style=flat)\n![GSAP](https://img.shields.io/badge/GSAP-0AE448?style=flat\u0026logo=gsap\u0026logoColor=white)\n\n\u003c/div\u003e\n\nA statically-rendered, CMS-driven site starter: **Astro 6** frontend + a **Sanity** Studio for content. Ships a clean welcome page and a **Sanity schema skeleton** wired through a typed view-adapter data layer. Build your pages on top.\n\n## What you get\n\n- **Astro 6**, static output, Vercel adapter, TypeScript strict, Tailwind v4 (via `@tailwindcss/vite`), Onest font.\n- **Welcome page** that boots with an empty `.env` — no Sanity required to see it run.\n- **Sanity Studio** in [`/studio`](./studio) — its own pnpm workspace (separate deps + lockfile) so the static site stays lean. Singletons (Home, Site Settings), orderable collections, reusable objects — all a generic skeleton to fill in.\n- **View-adapter data layer**: GROQ + raw types in [`src/lib/sanity.ts`](./src/lib/sanity.ts) → mapped \"View\" shapes in [`src/lib/content.ts`](./src/lib/content.ts) → components. **Components never touch Sanity** — swap the data source without touching the UI.\n- Editor-managed **structured data** (schema.org JSON-LD) built in [`src/lib/structured-data.ts`](./src/lib/structured-data.ts) from `siteSettings`.\n- Layout chrome (Navbar, Footer), smooth scroll (Lenis), view transitions, and scroll-reveal animations as scaffolding.\n\n## Quickstart\n\n```bash\npnpm install                 # frontend deps\npnpm --dir studio install    # studio deps (separate workspace)\n\npnpm dev                     # site → http://localhost:4321  (welcome page, no Sanity needed)\n```\n\nTo wire the CMS, create a Sanity project and connect it:\n\n```bash\ncp .env.example .env.local   # fill PUBLIC_SANITY_STUDIO_PROJECT_ID\npnpm dev:studio              # studio → http://localhost:3333\n```\n\nSee [docs/01-setup.md](./docs/01-setup.md).\n\n## Build your site\n\nThe frontend ships only the welcome page. To build real pages:\n\n1. Fill the schema skeleton in the Studio (each field has a description).\n2. Read content with `get*View()` from [`src/lib/content.ts`](./src/lib/content.ts).\n3. Compose pages in `src/pages/` using the `Layout`, chrome, and UI primitives.\n4. Add a resource by following [docs/03-add-resource.md](./docs/03-add-resource.md).\n\n\u003e Note: pages that query Sanity need `PUBLIC_SANITY_STUDIO_PROJECT_ID` set to build.\n\n## Scripts\n\n| Script | What |\n|--------|------|\n| `pnpm dev` / `build` / `preview` | Astro frontend |\n| `pnpm lint` / `lint:fix` / `format` | ESLint + Prettier |\n| `pnpm dev:studio` / `build:studio` / `deploy:studio` | Sanity Studio |\n\n## Docs\n\n1. [00 — Overview](./docs/00-overview.md)\n2. [01 — Setup](./docs/01-setup.md)\n3. [02 — Architecture](./docs/02-architecture.md)\n4. [03 — Add a resource](./docs/03-add-resource.md)\n5. [04 — Sanity Studio](./docs/04-sanity-studio.md)\n6. [05 — Deploy](./docs/05-deploy.md)\n\nConventions for AI coding agents: [CLAUDE.md](./CLAUDE.md).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayvidev%2Fastro-sanity-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayvidev%2Fastro-sanity-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayvidev%2Fastro-sanity-starter/lists"}