{"id":28098630,"url":"https://github.com/netlify-templates/astro-sanity-starter","last_synced_at":"2025-05-13T17:58:30.220Z","repository":{"id":247367469,"uuid":"800912264","full_name":"netlify-templates/astro-sanity-starter","owner":"netlify-templates","description":"Netlify Astro and Sanity starter with visual editing.","archived":false,"fork":false,"pushed_at":"2025-05-12T05:41:14.000Z","size":3355,"stargazers_count":57,"open_issues_count":2,"forks_count":51,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-12T06:34:52.926Z","etag":null,"topics":["astro","astrojs","daisyui","sanity","tailwindcss","tailwindcss-v4","visual-editor"],"latest_commit_sha":null,"homepage":"https://astro-sanity-starter-demo.netlify.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/netlify-templates.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}},"created_at":"2024-05-15T08:34:43.000Z","updated_at":"2025-05-12T05:41:17.000Z","dependencies_parsed_at":"2024-09-16T05:05:41.185Z","dependency_job_id":"061a01cc-7cd3-497b-bebd-6cd88c1e6464","html_url":"https://github.com/netlify-templates/astro-sanity-starter","commit_stats":null,"previous_names":["netlify-templates/astro-sanity-starter"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify-templates%2Fastro-sanity-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify-templates%2Fastro-sanity-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify-templates%2Fastro-sanity-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify-templates%2Fastro-sanity-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netlify-templates","download_url":"https://codeload.github.com/netlify-templates/astro-sanity-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253999785,"owners_count":21997332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","astrojs","daisyui","sanity","tailwindcss","tailwindcss-v4","visual-editor"],"created_at":"2025-05-13T17:58:28.543Z","updated_at":"2025-05-13T17:58:30.209Z","avatar_url":"https://github.com/netlify-templates.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Astro Netlify Sanity Starter\n\n![Astro Netlify Sanity Starter](https://assets.stackbit.com/docs/astro-sanity-starter-thumb.jpg)\n\n[Live Demo](https://astro-sanity-starter-demo.netlify.app/)\n\nNetlify Astro and Sanity minimal starter with [visual editing](https://docs.netlify.com/visual-editor/overview/).\n\n| Prerequisites                                                                |\n| :--------------------------------------------------------------------------- |\n| [Node.js](https://nodejs.org/) v20.+                                         |\n| (optional) [nvm](https://github.com/nvm-sh/nvm) for Node version management. |\n\n## Getting Started\n\nCreate local project from this repo and run:\n\n```txt\nnpm install\n```\n\n### Sign Into Sanity\n\nIf you are not already signed into Sanity via the CLI, install the CLI package and then run the login command.\n\n```txt\nnpm install -g @sanity/cli\nsanity login\n```\n\nThis will open a browser and walk you through the authentication process.\n\n### Import Content\n\nOnce authenticated, you'll be able to create a Sanity project and import content.\n\n```txt\nnpm run create-project\n```\n\n_Note: You may want to sign into Sanity in the browser and rename your project._\n\nOnce the project exists and you've set the environment variables, you can import the content.\n\n```txt\nnpm run import {projectId}\n```\n\nReplace `{projectId}` with the project ID output from the previous command.\n\n### Store Sanity Values\n\nSign into Sanity to create an editor token, navigate to the following address (replace the `SANITY_PROJECT_ID` with your project ID) `https://www.sanity.io/manage/personal/project/SANITY_PROJECT_ID/api#tokens`. Then create `.env` file in you repo, copy \u0026 paste the following environment variables into the file and set their values.\n\n```txt\nSANITY_PROJECT_ID=\"...\"\nSANITY_DATASET=\"...\"\nSANITY_TOKEN=\"...\"\n```\n\n### Run Sanity Studio\n\nSanity Studio code exists for this project in the `studio` directory. First, install the dependencies in this directory.\n\n```txt\ncd studio\nnpm install\n```\n\nThen create a `.env` file in the `studio` directory with the following environment variables and set their values:\n\n```txt\nSANITY_STUDIO_PROJECT_ID=\"...\"\nSANITY_STUDIO_DATASET=\"...\"\n```\n\nThen run the studio locally.\n\n```txt\nsanity dev\n```\n\nIf you want to see the content, you can open your browser and navigate to localhost:3333.\n\n### Start Development Server\n\nThen you can run the Astro.js development server in root directory:\n\n```txt\nnpm run dev\n```\n\nInstall Netlify Visual Editor CLI:\n\n```txt\nnpm install -g @stackbit/cli\n```\n\nAnd the Stackbit development server.\n\n```txt\nstackbit dev\n```\n\nThis outputs your own Netlify Visual Editor URL. Open this, register or sign in, and you will be directed to Netlify Visual Editor for your new project.\n\n## Next Steps\n\nHere are a few suggestions on what to do next if you're new to Netlify Visual Editor:\n\n- Learn [how Netlify Visual Editor works](https://docs.netlify.com/visual-editor/concepts/how-visual-editor-works/)\n- Check [Netlify Visual Editor reference documentation](https://visual-editor-reference.netlify.com/)\n\n## Support\n\nIf you get stuck along the way, get help in our [support forums](https://answers.netlify.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlify-templates%2Fastro-sanity-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetlify-templates%2Fastro-sanity-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlify-templates%2Fastro-sanity-starter/lists"}