{"id":48273986,"url":"https://github.com/thesysdev/template-c1-component-next","last_synced_at":"2026-04-04T22:21:34.973Z","repository":{"id":298116187,"uuid":"998883436","full_name":"thesysdev/template-c1-component-next","owner":"thesysdev","description":"Template app for C1 by thesys","archived":false,"fork":false,"pushed_at":"2025-10-08T08:57:57.000Z","size":213,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T10:29:48.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://template-c1-component-next.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/thesysdev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-09T12:04:11.000Z","updated_at":"2025-10-08T08:57:59.000Z","dependencies_parsed_at":"2025-10-08T10:20:31.019Z","dependency_job_id":"5a798c18-3c3e-42e9-b054-977d782b9e59","html_url":"https://github.com/thesysdev/template-c1-component-next","commit_stats":null,"previous_names":["thesysdev/template-c1-component-next"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/thesysdev/template-c1-component-next","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesysdev%2Ftemplate-c1-component-next","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesysdev%2Ftemplate-c1-component-next/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesysdev%2Ftemplate-c1-component-next/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesysdev%2Ftemplate-c1-component-next/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesysdev","download_url":"https://codeload.github.com/thesysdev/template-c1-component-next/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesysdev%2Ftemplate-c1-component-next/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":[],"created_at":"2026-04-04T22:21:33.811Z","updated_at":"2026-04-04T22:21:34.913Z","avatar_url":"https://github.com/thesysdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C1 App Template\n\nTemplate repository for a generative UI app, powered by [C1 by Thesys](https://thesys.dev), and bootstrapped with `create-next-app`\n\n[![Built with Thesys](https://thesys.dev/built-with-thesys-badge.svg)](https://thesys.dev)\n\n## Getting Started\n\nFirst, generate a new API key from [Thesys Console](https://chat.thesys.dev/console/keys) and then set it your environment variable.\n\n```bash\nexport THESYS_API_KEY=\u003cyour-api-key\u003e\n```\n\nInstall dependencies:\n\n```bash\nnpm i\n```\n\nThen, run the development server:\n\n```bash\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing your responses by modifying the system prompt in `src/app/api/chat/route.ts`.\n\n## Model Verification\n\nThis template includes a GitHub Action that automatically verifies the C1 model used in `src/app/api/ask/route.ts` is valid according to the Thesys API. This workflow runs on every pull request to ensure you're using a supported model.\n\n### Setting up the GitHub Action\n\nTo enable this workflow in your repository:\n\n1. Go to your repository's **Settings** → **Secrets and variables** → **Actions**\n2. Add a new repository secret named `THESYS_API_KEY` with your Thesys API key value\n3. The workflow will now run automatically on all pull requests\n\nThe workflow will:\n- Extract the model name from `src/app/api/ask/route.ts`\n- Fetch the list of valid models from the Thesys API\n- Verify that your model is in the list of supported models\n- Block the PR from merging if an invalid model is detected\n\nYou can view available models by running the verification script locally:\n\n```bash\nTHESYS_API_KEY=\u003cyour-api-key\u003e .github/scripts/verify-model.sh\n```\n\n### Making Model Verification Required (Recommended)\n\nTo require this check to pass before merging PRs:\n\n1. Go to your repository's **Settings** → **Branches**\n2. Add or edit a branch protection rule for your main branch (e.g., `main` or `master`)\n3. Enable **Require status checks to pass before merging**\n4. Search for and select **Verify C1 Model** in the status checks list\n5. Save the protection rule\n\nThis ensures that only valid C1 models can be merged into your main branch.\n\n## Learn More\n\nTo learn more about Thesys C1, take a look at the [C1 Documentation](https://docs.thesys.dev) - learn about Thesys C1.\n\n## One-Click Deploy with Vercel\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fthesysdev%2Ftemplate-c1-component-next\u0026env=THESYS_API_KEY\u0026envDescription=Thesys%20Generative%20UI%20API%20key%20can%20be%20found%20in%20the%20Thesys%20console\u0026envLink=https%3A%2F%2Fchat.thesys.dev%2Fconsole%2Fkeys\u0026demo-title=C1%20Generative%20UI%20API\u0026demo-description=C1%20Generative%20UI%20API%20by%20Thesys%20is%20designed%20to%20create%20dynamic%20and%20intelligent%20user%20interfaces.%20It%20leverages%20large%20language%20models%20(LLMs)%20to%20generate%20UI%20components%20in%20real-time%2C%20adapting%20to%20user%20input%20and%20context.%20Developers%20can%20integrate%20C1%20into%20their%20applications%20to%20enhance%20user%20engagement%20with%20visually%20rich%20and%20responsive%20interfaces.\u0026demo-url=https%3A%2F%2Fchat.thesys.dev\u0026demo-image=https%3A%2F%2Fgithub.com%2FCharlesCreativeContent%2FmyImages%2Fblob%2Fmain%2Fimages%2FC1Hero.png%3Fraw%3Dtrue)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesysdev%2Ftemplate-c1-component-next","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesysdev%2Ftemplate-c1-component-next","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesysdev%2Ftemplate-c1-component-next/lists"}