{"id":21169031,"url":"https://github.com/cosmicjs/simple-nextjs-blog","last_synced_at":"2025-10-31T17:30:27.109Z","repository":{"id":171039280,"uuid":"647307310","full_name":"cosmicjs/simple-nextjs-blog","owner":"cosmicjs","description":"A simple blog powered by Next.js and the Cosmic headless CMS","archived":false,"fork":false,"pushed_at":"2024-08-14T02:23:30.000Z","size":208,"stargazers_count":57,"open_issues_count":0,"forks_count":21,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-07T15:08:41.201Z","etag":null,"topics":["api","cms","cosmicjs","headless-cms","nextjs"],"latest_commit_sha":null,"homepage":"https://cosmic-nextjs-blog.vercel.app","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/cosmicjs.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":"2023-05-30T13:53:41.000Z","updated_at":"2025-02-06T16:25:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"e66584dd-a998-4a7c-83ec-a25d23eca8d8","html_url":"https://github.com/cosmicjs/simple-nextjs-blog","commit_stats":null,"previous_names":["cosmicjs/simple-nextjs-blog"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fsimple-nextjs-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fsimple-nextjs-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fsimple-nextjs-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fsimple-nextjs-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmicjs","download_url":"https://codeload.github.com/cosmicjs/simple-nextjs-blog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239217104,"owners_count":19601594,"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":["api","cms","cosmicjs","headless-cms","nextjs"],"created_at":"2024-11-20T15:21:56.995Z","updated_at":"2025-10-31T17:30:27.015Z","avatar_url":"https://github.com/cosmicjs.png","language":"TypeScript","funding_links":[],"categories":["Blog"],"sub_categories":[],"readme":"# Simple Next.js Blog\n\n![simple-nextjs-blog](https://github.com/cosmicjs/simple-nextjs-blog/assets/1950722/64b6673a-e25b-4124-93ed-bb57a6a35211)\n\n### [View Demo](https://cosmic-nextjs-blog.vercel.app/)\n\n### React + Next.js + Cosmic\n\nThis blog uses Next.js to create a React blog. It uses Next.js 15 and the new [Partial Prerendering](https://vercel.com/blog/partial-prerendering-with-next-js-creating-a-new-default-rendering-model) to optimize performance and user experience. It connects to the Cosmic API via the [Cosmic JavaScript SDK](https://www.npmjs.com/package/@cosmicjs/sdk).\n\n### Opimized for speed and performance\n\u003cimg width=\"901\" alt=\"simple-next-blog\" src=\"https://github.com/user-attachments/assets/e53ef1be-f5a3-4d5a-9eac-4ddd6b32cec4\"\u003e\n\n## Getting Started\n\n1. Log in to Cosmic and install the [Simple Next.js Blog template](https://www.cosmicjs.com/marketplace/templates/simple-nextjs-blog).\n2. Run the following commands to install the code locally.\n\n```\ngit clone https://github.com/cosmicjs/simple-nextjs-blog\ncd simple-nextjs-blog\n```\n\n#### Environment Variables\n\n1. Create an `.env.local` file to gain API access to your Cosmic Bucket. To do this, run:\n\n```\ncp .env.example .env.local\n```\n\n2. Find your API access keys at \u003cem\u003eBucket Settings \u0026gt; API Access\u003c/em\u003e after logging into [your Cosmic dashboard](https://app.cosmicjs.com/login) and add them to the `.env.local` file. It should look something like this:\n\n```\nCOSMIC_BUCKET_SLUG=your-bucket-slug\nCOSMIC_READ_KEY=your-bucket-read-key\n```\n\n#### Run in development\n\nInstall all dependencies and run in development mode.\n\n```\nyarn\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000).\n\n## Deploy to Vercel\n\n\u003cp\u003eUse the following button to deploy to \u003ca href=\"https://vercel.com/\" rel=\"noopener noreferrer\" target=\"_blank\"\u003eVercel\u003c/a\u003e. You will need to add API accesss keys as environment variables. Find these in \u003cem\u003eBucket Settings \u0026gt; API Access\u003c/em\u003e.\u003c/p\u003e\n\u003cp\u003e\n\u003ca href=\"https://vercel.com/import/git?c=1\u0026s=https://github.com/cosmicjs/simple-nextjs-blog\u0026env=COSMIC_BUCKET_SLUG,COSMIC_READ_KEY\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.cosmicjs.com/d3f0d5e0-c064-11ea-9a05-6f8a16b0b14c-deploy-to-vercel.svg\" style=\"width: 100px;\" class=\"fr-fic fr-dib fr-fil\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fsimple-nextjs-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmicjs%2Fsimple-nextjs-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fsimple-nextjs-blog/lists"}