{"id":21169021,"url":"https://github.com/cosmicjs/agency-template","last_synced_at":"2025-07-09T18:31:42.721Z","repository":{"id":218592045,"uuid":"731700055","full_name":"cosmicjs/agency-template","owner":"cosmicjs","description":"A website template built using Cosmic's React components, Blocks.","archived":false,"fork":false,"pushed_at":"2024-11-23T01:07:58.000Z","size":937,"stargazers_count":20,"open_issues_count":0,"forks_count":19,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-05T04:51:14.380Z","etag":null,"topics":["api","cms","headless-cms","template"],"latest_commit_sha":null,"homepage":"https://cosmic-agency-template.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-12-14T17:07:13.000Z","updated_at":"2025-03-13T15:00:29.000Z","dependencies_parsed_at":"2024-01-22T23:28:01.147Z","dependency_job_id":"926f0510-0c9c-4ffc-9337-1643727855d1","html_url":"https://github.com/cosmicjs/agency-template","commit_stats":null,"previous_names":["cosmicjs/agency-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cosmicjs/agency-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fagency-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fagency-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fagency-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fagency-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmicjs","download_url":"https://codeload.github.com/cosmicjs/agency-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmicjs%2Fagency-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502387,"owners_count":23618587,"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","headless-cms","template"],"created_at":"2024-11-20T15:21:31.598Z","updated_at":"2025-07-09T18:31:41.159Z","avatar_url":"https://github.com/cosmicjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Agency Template, powered by Blocks\n\n![desktop.png](https://imgix.cosmicjs.com/69313380-b156-11ee-9844-f9a09795e2a3-desktop.png)\n\nA website template built using Cosmic's React components, [Blocks](https://blocks.cosmicjs.com). Use this template to get familiar with Blocks and how they can be used to build common content-powered features for your websites and apps, or simply use it as a starting point for your next project. Save development time and learn content modeling best practices.\n\n## Links\n\n[Install this template](https://www.cosmicjs.com/marketplace/templates/agency)\n\n[View the live demo](https://cosmic-agency-template.vercel.app/)\n\n## Features\n\n✨ NEW: 👤 User management powered by the User Management Block\n\n✨ NEW: ✉️ Contact form powered by the Contact Form Block\n\n🛒 Product management and checkout using Stripe\n\n⚡️ Performance optimized\n\n👁 Draft preview ready\n\n📱 Mobile responsive\n\n🌎 Localization ready\n\n🌓 Dark mode ready\n\n🔧 Customizable\n\n♿️ Accessible\n\n🦺 Type safe\n\n![blocks.png](https://imgix.cosmicjs.com/271670f0-b156-11ee-9844-f9a09795e2a3-blocks.png)\n![blocks.png](https://imgix.cosmicjs.com/0bf19f40-b16d-11ee-9844-f9a09795e2a3-blocks.png)\n\n## Getting started\n\n1. [Install this template in Cosmic](https://www.cosmicjs.com/marketplace/templates/agency).\n\n2. Download this code repository and install the dependencies.\n\n```bash\ngit clone https://github.com/cosmicjs/agency-template\ncd agency-template\nbun install\n```\n\n3. Create a `.env.local` file with your Cosmic API keys. Find these after logging in to the Cosmic dashboard in [Project \u003e API keys](https://app.cosmicjs.com/?redirect_to=?highlight=api-keys).\n\n```\ncp .env.example .env.local\n```\n\nIt will look like this. To use the User Management and Contact Form features you will need to have a [Resend](https://resend.com/) account and add your API key.\n\n```\n# .env.local\nCOSMIC_BUCKET_SLUG=change_to_your_bucket_slug\nCOSMIC_READ_KEY=change_to_your_bucket_read_key\nCOSMIC_WRITE_KEY=change_to_your_bucket_write_key\n\nNEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=change_to_your_stripe_public_key\nSTRIPE_SECRET_KEY=change_to_your_stripe_secret_key\n\nRESEND_API_KEY=change_to_your_resend_api_key\nNEXT_PUBLIC_APP_URL=change_to_your_app_url\nNEXT_PUBLIC_APP_NAME=\"Change to your app name\"\nSUPPORT_EMAIL=change_to_your_support_email\nCONTACT_EMAIL=change_to_your_contact_email\n```\n\n4. Run the template.\n\n```\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000).\n\n## Deploy to Vercel\n\nUse the following button to deploy to Vercel. You will be asked to add API accesss keys as environment variables.\n\n\u003ca href=\"https://vercel.com/import/git?c=1\u0026s=https://github.com/cosmicjs/agency-template\u0026env=COSMIC_BUCKET_SLUG,COSMIC_READ_KEY,COSMIC_WRITE_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\n## License\n\nLicensed under the [MIT license](https://github.com/cosmicjs/agency-template/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fagency-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmicjs%2Fagency-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmicjs%2Fagency-template/lists"}