{"id":30496087,"url":"https://github.com/sanity-io/sanity-template-nuxt-clean","last_synced_at":"2025-10-25T19:05:55.167Z","repository":{"id":161752818,"uuid":"635556037","full_name":"sanity-io/sanity-template-nuxt-clean","owner":"sanity-io","description":"Clean starter template with Nuxt","archived":false,"fork":false,"pushed_at":"2025-09-25T18:08:48.000Z","size":6993,"stargazers_count":73,"open_issues_count":4,"forks_count":20,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-09-25T20:34:42.656Z","etag":null,"topics":["nuxt","sanity","sanity-studio","team-ecosystem","vue"],"latest_commit_sha":null,"homepage":"https://sanity-template-nuxt-clean.sanity.build/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanity-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":"2023-05-03T00:25:08.000Z","updated_at":"2025-08-06T21:02:48.000Z","dependencies_parsed_at":"2023-10-13T07:55:23.493Z","dependency_job_id":"10920d03-dcb8-4159-a030-7c5e72e4c7bf","html_url":"https://github.com/sanity-io/sanity-template-nuxt-clean","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/sanity-io/sanity-template-nuxt-clean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanity-io%2Fsanity-template-nuxt-clean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanity-io%2Fsanity-template-nuxt-clean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanity-io%2Fsanity-template-nuxt-clean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanity-io%2Fsanity-template-nuxt-clean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanity-io","download_url":"https://codeload.github.com/sanity-io/sanity-template-nuxt-clean/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanity-io%2Fsanity-template-nuxt-clean/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011192,"owners_count":26084900,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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":["nuxt","sanity","sanity-studio","team-ecosystem","vue"],"created_at":"2025-08-25T01:05:03.947Z","updated_at":"2025-10-12T11:55:16.089Z","avatar_url":"https://github.com/sanity-io.png","language":"TypeScript","funding_links":[],"categories":["Starter Kits"],"sub_categories":[],"readme":"# Clean Nuxt + Sanity app\n\nThis template includes a [Nuxt](https://nuxt.com/) app with a [Sanity Studio](https://www.sanity.io/) – an open-source Vue application that connects to your Sanity project's hosted dataset. The Studio is configured locally and can then be deployed for content collaboration.\n\n![Screenshot of Sanity Studio using Presentation Tool to do Visual Editing](./nuxt-sanity-preview.webp)\n\n## Features\n\n- **Nuxt 3 for Performance:** Leverage the power of Nuxt 3's hybrid rendering capabilities for blazing-fast performance and SEO-friendly applications.\n- **Real-time Previews:** Edit content live with Sanity's [Presentation Tool](https://www.sanity.io/docs/presentation) and see updates in real time.\n- **Powerful Content Management:** Collaborate with team members in real-time, with fine-grained revision history.\n- **AI-powered Media Support:** Auto-generate alt text with [Sanity AI Assist](https://www.sanity.io/ai-assist). (Available on Free Trial and Growth Tiers. [See Pricing](https://www.sanity.io/pricing))\n- **Flexible Rendering Strategies:** Choose between Server-Side Rendering (SSR), Static Site Generation (SSG), or hybrid rendering at the route level.\n- **Easy Media Management:** [Integrated Unsplash support](https://www.sanity.io/plugins/sanity-plugin-asset-source-unsplash) for seamless media handling.\n\n## Demo\n\nhttps://template-nuxt-clean.sanity.dev\n\n## Getting Started\n\n### Installing the template\n\n#### 1. Initialize template with Sanity CLI\n\nRun the command in your Terminal to initialize this template on your local computer.\n\nSee the documentation if you are [having issues with the CLI](https://www.sanity.io/help/cli-errors).\n\n```shell\nnpm create sanity@latest -- --template sanity-io/sanity-template-nuxt-clean\n```\n\n(ToDo: update script when merging)\n\n#### 2. Run Studio and Nuxt app locally\n\nNavigate to the template directory using `cd \u003cyour app name\u003e`, and start the development servers by running the following command\n\n```shell\nnpm run dev\n```\n\n#### 3. Open the app and sign in to the Studio\n\nOpen the Nuxt app running locally in your browser on [http://localhost:3000](http://localhost:3000).\n\nOpen the Studio running locally in your browser on [http://localhost:3333](http://localhost:3333). You should now see a screen prompting you to log in to the Studio. Use the same service (Google, GitHub, or email) that you used when you logged in to the CLI.\n\n### Adding content with Sanity\n\n#### 1. Publish your first document\n\nThe template comes pre-defined with a schema containing `Page`, `Post`, `Person`, and `Settings` document types.\n\nFrom the Studio, click \"+ Create\" and select the `Post` document type. Go ahead and create and publish the document.\n\nYour content should now appear in your Nuxt app ([http://localhost:3000](http://localhost:3000)) as well as in the Studio on the \"Presentation\" Tab\n\n#### 2. Import Sample Data (optional)\n\nYou may want to start with some sample content and we've got you covered. Run this command from the root of your project to import the provided dataset (sample-data.tar.gz) into your Sanity project. This step is optional but can be helpful for getting started quickly.\n\n```shell\nnpm run import-sample-data\n```\n\n#### 3. Extending the Sanity schema\n\nThe schema for the `Post` document type is defined in the `studio/src/schemaTypes/post.ts` file. You can [add more document types](https://www.sanity.io/docs/schema-types) to the schema to suit your needs.\n\n### Deploying your application and inviting editors\n\n#### 1. Deploy Sanity Studio\n\nYour Nuxt frontend (`/frontend`) and Sanity Studio (`/studio`) are still only running on your local computer. It's time to deploy and get it into the hands of other content editors.\n\nBack in your Studio directory (`/studio`), run the following command to deploy your Sanity Studio.\n\n```shell\nnpx sanity deploy\n```\n\n#### 2. Deploy Nuxt app\n\nYou have the freedom to deploy your Nuxt app to your hosting provider of choice. Nuxt applications can be deployed to various platforms including Vercel, Netlify, or any platform that supports Node.js or edge runtime.\n\n1. Create a GitHub repository from this project. [Learn more](https://docs.github.com/en/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github).\n2. Choose your preferred hosting platform and follow their deployment guides for Nuxt applications.\n3. Configure your Environment Variables as needed.\n\nFor detailed deployment instructions, visit the [Nuxt deployment documentation](https://nuxt.com/docs/getting-started/deployment).\n\n#### 3. Invite a collaborator\n\nNow that you've deployed your Nuxt application and Sanity Studio, you can optionally invite a collaborator to your Studio. Open up [Manage](https://www.sanity.io/manage), select your project and click \"Invite project members\"\n\nThey will be able to access the deployed Studio, where you can collaborate together on creating content.\n\n## Resources\n\n- [Sanity documentation](https://www.sanity.io/docs)\n- [Nuxt documentation](https://nuxt.com/docs)\n- [Join the Sanity Community](https://slack.sanity.io)\n- [Learn Sanity](https://www.sanity.io/learn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanity-io%2Fsanity-template-nuxt-clean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanity-io%2Fsanity-template-nuxt-clean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanity-io%2Fsanity-template-nuxt-clean/lists"}