{"id":29749342,"url":"https://github.com/onkernel/vercel-template","last_synced_at":"2025-07-26T11:44:19.583Z","repository":{"id":305595008,"uuid":"1019903135","full_name":"onkernel/vercel-template","owner":"onkernel","description":"Starter template for Next.js, AI SDK, \u0026 Kernel","archived":false,"fork":false,"pushed_at":"2025-07-21T01:27:43.000Z","size":295,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-21T02:30:30.030Z","etag":null,"topics":["browser-automation","nextjs","template","vercel"],"latest_commit_sha":null,"homepage":"https://www.onkernel.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onkernel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-07-15T03:59:30.000Z","updated_at":"2025-07-21T01:27:47.000Z","dependencies_parsed_at":"2025-07-21T02:30:34.807Z","dependency_job_id":"3b1fa76f-5f40-4eaa-b265-61822da059c5","html_url":"https://github.com/onkernel/vercel-template","commit_stats":null,"previous_names":["onkernel/vercel-template"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/onkernel/vercel-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onkernel%2Fvercel-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onkernel%2Fvercel-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onkernel%2Fvercel-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onkernel%2Fvercel-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onkernel","download_url":"https://codeload.github.com/onkernel/vercel-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onkernel%2Fvercel-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267161582,"owners_count":24045476,"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-07-26T02:00:08.937Z","response_time":62,"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":["browser-automation","nextjs","template","vercel"],"created_at":"2025-07-26T11:44:04.748Z","updated_at":"2025-07-26T11:44:19.572Z","avatar_url":"https://github.com/onkernel.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"static/images/kernel_wordmark.svg\" alt=\"Kernel Logo\" width=\"55%\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"GitHub License\" src=\"https://img.shields.io/github/license/onkernel/vercel-template\"\u003e\n  \u003ca href=\"https://discord.gg/FBrveQRcud\"\u003e\u003cimg src=\"https://img.shields.io/discord/1342243238748225556?logo=discord\u0026logoColor=white\u0026color=7289DA\" alt=\"Discord\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://x.com/onkernel\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/onkernel\" alt=\"Follow @onkernel\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Kernel Vercel Template\n\nA chatbot template with browser automation capabilities. Uses [Next.js](https://nextjs.org/), [Vercel AI SDK](https://ai-sdk.dev), [Assistant-UI](https://github.com/assistant-ui/assistant-ui), and [Kernel](https://www.onkernel.com).\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/c7b212a6-8872-4c82-8f1d-92c9021eb393\" alt=\"kernel-vercel-template\"\u003e\n\u003c/p\u003e\n\n## Getting Started\n\n1. Sign up for a [Kernel account](https://dashboard.onkernel.com/sign-up) and create an API key.\n\n2. Clone the repository:\n```bash\ngit clone https://github.com/onkernel/vercel-template.git\ncd vercel-template\n```\n\n3. Download the Kernel CLI:\n```bash\nbrew install onkernel/tap/kernel\n```\n\n4. Add your Kernel API key and Anthropic API key to the `.env` file in the `packages/agent` and `packages/web` directories.\n\n```bash\ncd packages/agent \u0026\u0026 cp .env.example .env\ncd ../web \u0026\u0026 cp .env.example .env\n\n# In .env\nKERNEL_API_KEY=your-api-key\nANTHROPIC_API_KEY=your-api-key\n```\n\n5. Deploy the agent to Kernel:\n\n```bash\npnpm run deploy:agent\n```\n\n6. Run the development server for the web app:\n\n```bash\npnpm run dev:web\n```\n\nYou can now access the web app at `http://localhost:3000`\n\n## Deploying to Vercel\n\nYou can deploy the web app on Vercel. Make sure you've also deployed the AI web agent on Kernel as described in the Getting Started section.\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fonkernel%2Fvercel-template%2Ftree%2Fmain%2Fpackages%2Fweb\u0026env=KERNEL_API_KEY\u0026env=ANTHROPIC_API_KEY\u0026envDescription=API%20keys%20needed%20for%20the%20application.\u0026envLink=https%3A%2F%2Fdashboard.onkernel.com%2Fsign-up\u0026project-name=web-agent-app)\n\nVercel Functions have [limits](https://vercel.com/docs/functions/configuring-functions/duration) on how long they can run. Configure the app's [here](https://github.com/onkernel/vercel-template/blob/56656ccd6f6d5de084f29974d03ea4f88c35cf84/packages/web/app/api/chat/route.ts#L11). Long-running tasks may time out depending on your Vercel settings.\n\n## Project Layout\n\n```bash\nkernel-vercel-template/\n├── packages/\n│   ├── agent/ # Kernel browser agent\n│   ├── web/ # Next.js web app\n```\n\n### `packages/agent`\n\nThe agent is deployed as an [action](https://docs.onkernel.com/info/concepts#action) in your Kernel app. The action runs our [Claude Computer Use Playwright SDK](https://github.com/onkernel/cu-playwright-ts) to control the browser.\n\nYou can tail the logs of the action by running `pnpm run logs` in the `packages/agent` directory.\n\n### `packages/web`\n\nThe web app is responsible for the UI. It uses [Next.js](https://nextjs.org/), Vercel [AI SDK](https://ai-sdk.dev), and [Assistant-UI](https://github.com/assistant-ui/assistant-ui) to build the chat interface. The chatbot is deployed as a [route](packages/web/app/api/chat/route.ts) in the web app and uses the `browserAgentTool` to control the browser. You can extend this to build a custom chatbot with your own tools.\n\n## What's Kernel?\n\nKernel provides hosted browsers on-demand for browser automations and web agents. You can connect to the browser using Chrome DevTools-based browser frameworks (Playwright, Puppeteer).\n\n### What You Can Do With Kernel\n\n- Run automated browser-based workflows\n- Develop and test AI agents that use browsers\n- Build custom tools that require controlled browser environments\n\n## Support\n\nFor issues, questions, or feedback, please [open an issue](https://github.com/onkernel/vercel-template/issues) on this repository. You can also join our [Discord](https://discord.gg/FBrveQRcud).\n\n## License\n\nSee the [LICENSE](./LICENSE) file for details.\n\n## Colophon\n\nThe background wallpaper was generated by AI.\n\nMade with ❤️ by the [Kernel team](https://www.onkernel.com).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonkernel%2Fvercel-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonkernel%2Fvercel-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonkernel%2Fvercel-template/lists"}