{"id":18584229,"url":"https://github.com/brob/next-js-blog-with-comments-4","last_synced_at":"2025-10-07T05:10:46.921Z","repository":{"id":40411475,"uuid":"306388585","full_name":"brob/next-js-blog-with-comments-4","owner":"brob","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T11:42:08.000Z","size":394,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T05:37:10.956Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"next-js-blog-with-comments-4.vercel.app","language":"JavaScript","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/brob.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-22T15:56:52.000Z","updated_at":"2021-01-07T19:11:44.000Z","dependencies_parsed_at":"2024-12-26T17:41:48.067Z","dependency_job_id":"831c1457-71e4-4917-94b6-c14c47c8dd8d","html_url":"https://github.com/brob/next-js-blog-with-comments-4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brob/next-js-blog-with-comments-4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnext-js-blog-with-comments-4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnext-js-blog-with-comments-4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnext-js-blog-with-comments-4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnext-js-blog-with-comments-4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brob","download_url":"https://codeload.github.com/brob/next-js-blog-with-comments-4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brob%2Fnext-js-blog-with-comments-4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278722757,"owners_count":26034463,"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-07T02:00:06.786Z","response_time":59,"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":"2024-11-07T00:26:44.539Z","updated_at":"2025-10-07T05:10:46.889Z","avatar_url":"https://github.com/brob.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js blog with comment section\n\nThis is a demo of how to add a simple comment section to blog post using [Next.js](https://nextjs.org), [Sanity.io](https://www.sanity.io), and [Vercel](https://vercel.com).\n\nInterested in how it was made? See [how to build a commenting engine with Sanity and Next.js on CSS Tricks](https://css-tricks.com).\n\n## Getting up and running\n\nThere are two directories for this project: \n\n* `blog-frontend` - Next.js frontend for the blog\n* `studio` - Sanity Studio for content editing\n\n### Running the front-end\n\nInside the `blog-frontend` directory, you'll need to create a `.env.local` file to store a few environment variables that Next will use to pull data from the Sanity API.\n\n```js\nNEXT_PUBLIC_SANITY_PROJECT_ID=\"project-id-from manage.sanity.io\"\nSANITY_API_TOKEN=\"API-TOKEN-FROM MANAGE.SANITY.IO\"\nSANITY_PREVIEW_SECRET=\"Preview-secret-for-live-preview\"\n```\n\nOnce those env variables are ready, you can run the following commands to get Next's development server up and running:\n\n```bash\ncd blog-frontend\n\nnpm install\n\nnpm run dev\n```\n\nThe blog will be running at `http://localhost:3000`\n\n### Running Sanity Studio\n\nTo run the Sanity Studio locally, you'll need to run the following commands:\n\nFirst install the Sanity CLI: `npm install -g @sanity/cli`.\n\n```bash\n# From the project root\ncd studio\n\nnpm install\n\n# Sanity init will let you reconfigure the Studio to use your project ID and dataset\nsanity init\n\nsanity start\n```\n\nThe Studio will be running at `http://localhost:3333`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Fnext-js-blog-with-comments-4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrob%2Fnext-js-blog-with-comments-4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrob%2Fnext-js-blog-with-comments-4/lists"}