{"id":21169050,"url":"https://github.com/cosmicjs/simple-react-blog-graphql","last_synced_at":"2026-05-03T18:34:44.806Z","repository":{"id":77502887,"uuid":"499613108","full_name":"cosmicjs/simple-react-blog-graphql","owner":"cosmicjs","description":"A simple blog website powered by Next.js and the Cosmic GraphQL API","archived":false,"fork":false,"pushed_at":"2022-06-03T18:39:03.000Z","size":2616,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T06:58:02.168Z","etag":null,"topics":["api","blog","cms","graphql","react"],"latest_commit_sha":null,"homepage":"https://www.cosmicjs.com/apps/simple-react-blog","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/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":"2022-06-03T18:29:58.000Z","updated_at":"2022-06-03T18:47:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf8ec0f5-bcdf-4477-afb9-18fea2bb736d","html_url":"https://github.com/cosmicjs/simple-react-blog-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cosmicjs/simple-react-blog-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fsimple-react-blog-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fsimple-react-blog-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fsimple-react-blog-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fsimple-react-blog-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmicjs","download_url":"https://codeload.github.com/cosmicjs/simple-react-blog-graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fsimple-react-blog-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32579984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","blog","cms","graphql","react"],"created_at":"2024-11-20T15:22:23.590Z","updated_at":"2026-05-03T18:34:44.788Z","avatar_url":"https://github.com/cosmicjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple React Blog (GraphQL)\n![Simple React Blog](https://cosmicjs.com/uploads/76875fe0-af74-11e7-b864-313f959a776e-react-blog-screenshot.png)\n\n### [View Demo](https://cosmicjs.com/apps/simple-react-blog/demo)\n\n### React + Next.js + Cosmic GraphQL\nThis blog uses Next.js to create a React blog.  It connects to the Cosmic API via GraphQL.  Manage your content from your Cosmic Bucket Dashboard.  Simple.\n\n## Getting Started\n1. Log in to Cosmic and install the [Simple React Blog template](https://www.cosmicjs.com/apps/simple-react-blog).\n2. Run the following commands to install the code locally.\n```\ngit clone https://github.com/cosmicjs/simple-react-blog\ncd simple-react-blog\n```\n#### Environment Variables\n\n1. Create an `.env.local` file to gain API access to your Cosmic Bucket. To do this, run:\n```\ncp .env.example .env.local\n```\n2. Find your API access keys at \u003cem\u003eBucket Settings \u0026gt; API Access\u003c/em\u003e and add them to the `.env.local` file. It should look something like this:\n```\nNEXT_PUBLIC_COSMIC_BUCKET_SLUG=your-bucket-slug\nNEXT_PUBLIC_COSMIC_READ_KEY=your-bucket-read-key\n```\n\n#### Run in development\nInstall all dependencies and run in development mode.\n```\nyarn\nyarn dev\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-react-blog\u0026env=NEXT_PUBLIC_COSMIC_BUCKET_SLUG,NEXT_PUBLIC_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\n\n## Revision Preview\nFollow these steps to add revision preview to your Bucket:\n1. [Log in to Cosmic](https://www.cosmicjs.com).\n2. Go to \u003cem\u003eYour Bucket \u003e Posts \u003e Object Type Settings\u003c/em\u003e.\n3. Scroll down to the Preview Link section and add the following link:\n```\nhttp://localhost:3000/posts/[object_slug]?revision=[revision_id]\n```\n4. For production, replace `http://localhost:3000` with your URL.\nNow when you \"Save as Draft\" on any Post, you can preview your changes by clicking the \"Preview\" link.\n\u003cimg src=\"https://cosmic-s3.imgix.net/525f5290-96d5-11e9-86cd-6934fa7afa0f-Screen-Shot-2019-06-24-at-6.10.36-PM.png?w=800\" width=\"300\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fsimple-react-blog-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmicjs%2Fsimple-react-blog-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fsimple-react-blog-graphql/lists"}