{"id":48987192,"url":"https://github.com/nwokike/kiri-code","last_synced_at":"2026-04-18T13:09:48.646Z","repository":{"id":351053731,"uuid":"1209363726","full_name":"Nwokike/kiri-code","owner":"Nwokike","description":"An autonomous, serverless, 100% browser-based AI coding IDE. Built with WebContainers, Pyodide, and isomorphic-git. Bring your own LLM key and let the agent build, run, and push code directly to your GitHub without a backend.","archived":false,"fork":false,"pushed_at":"2026-04-13T13:08:10.000Z","size":394,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-13T13:11:32.855Z","etag":null,"topics":["ai","ai-agents","isomorphic-git","pyodide","vibe-coding","wasm","web-containers","webcontainer"],"latest_commit_sha":null,"homepage":"","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/Nwokike.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-13T10:58:48.000Z","updated_at":"2026-04-13T13:08:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Nwokike/kiri-code","commit_stats":null,"previous_names":["nwokike/kiri-code"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Nwokike/kiri-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nwokike%2Fkiri-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nwokike%2Fkiri-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nwokike%2Fkiri-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nwokike%2Fkiri-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nwokike","download_url":"https://codeload.github.com/Nwokike/kiri-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nwokike%2Fkiri-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31969974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["ai","ai-agents","isomorphic-git","pyodide","vibe-coding","wasm","web-containers","webcontainer"],"created_at":"2026-04-18T13:09:36.384Z","updated_at":"2026-04-18T13:09:48.625Z","avatar_url":"https://github.com/Nwokike.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"public/icons.svg\" alt=\"Kiri Code\" /\u003e\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\r\n\r\nAn autonomous, 100% serverless, polyglot AI coding IDE that runs entirely in your browser.\r\n\r\nKiri Code brings the power of cloud-native development to the Edge. Built on top of WebContainers, it provides a full Node.js operating system inside your browser, augmented by background WebWorkers for Python, PHP, and Ruby execution. No backend. No Docker. No monthly server costs.\r\n\r\n---\r\n\r\n## 🌟 Features\r\n\r\n* **Zero-Backend Architecture:** Everything from file hosting to AI agent orchestration happens locally on the client.\r\n* **The \"Two-Brain\" Polyglot Engine:** Seamlessly write and execute Node.js, Python (Pyodide), PHP, and Ruby natively in the browser without UI-blocking.\r\n* **Bring Your Own Key (BYOK) Vault:** Supports 20+ LLM providers (Anthropic, Gemini, OpenAI, Deepseek, etc.) via encrypted local storage.\r\n* **Serverless GitHub Autonomy:** Uses `isomorphic-git` and LightningFS to clone, commit, and push directly to GitHub, bypassing traditional backends.\r\n* **Progressive Web App (PWA):** Installable on iOS, Android, and Desktop. Caches heavy WASM binaries locally for instant offline boots.\r\n* **Professional UX:** Utilizes `flexlayout-react` for a fully customizable, draggable, VS Code-like pane system.\r\n\r\n---\r\n\r\n## 🏗️ The Architecture Explained\r\n\r\nKiri Code solves several notoriously difficult browser-IDE challenges:\r\n\r\n### 1. The File System Bridge\r\nWebContainers (Node.js) and WASM environments (like Pyodide) operate in isolated memory spaces. Kiri Code utilizes a custom `RuntimeRouter` that recursively syncs LightningFS (IndexedDB) with the active WebWorker memory just-in-time for execution, allowing Python scripts to read files created by the Node.js agent.\r\n\r\n### 2. The Agent-Terminal Emitter\r\nInstead of hiding AI agent thoughts in the developer console, Kiri Code utilizes a `terminalEmitter` bus to pipe the Vercel AI SDK's tool executions (like running `npm install` or writing files) directly into the user's `xterm.js` UI, providing a transparent \"Vibe Coding\" experience.\r\n\r\n### 3. Continuous Auto-Sync\r\nA dedicated background loop watches the WebContainer memory. Upon any file change, it debounces for 1 second, writes the file to the browser's persistent IndexedDB, and queues a background Git commit.\r\n\r\n---\r\n\r\n## 🚀 Getting Started\r\n\r\nBecause Kiri Code requires highly specific Cross-Origin Isolation headers for WebContainers, you must run it using the provided Vite dev server.\r\n\r\n### Prerequisites\r\n* Node.js 18+\r\n* `pnpm` (recommended) or `npm`\r\n\r\n### Installation\r\n\r\n```bash\r\n# 1. Clone the repository\r\ngit clone https://github.com/Nwokike/kiri-code.git\r\ncd kiri-code\r\n\r\n# 2. Install dependencies\r\nnpm install\r\n\r\n# 3. Start the dev server\r\nnpm run dev\r\n```\r\n\r\n### Production Deployment\r\n\r\nKiri Code is built to be deployed on Edge networks like Cloudflare Pages or Vercel. Ensure your hosting provider is configured to send the following HTTP headers:\r\n\r\n```http\r\nCross-Origin-Embedder-Policy: require-corp\r\nCross-Origin-Opener-Policy: same-origin\r\n```\r\n\r\n---\r\n\r\n## 🔑 Security \u0026 BYOK\r\n\r\nKiri Code operates strictly on a **Bring Your Own Key** model.\r\n\r\n1.  Click the **\"ON\"** profile badge in the top right.\r\n2.  Enter your GitHub PAT or LLM Provider API keys.\r\n3.  Keys are saved to `localStorage`. They are never transmitted anywhere except directly to the official LLM/GitHub endpoints.\r\n\r\n---\r\n\r\n## 📜 License\r\n\r\nThis project is licensed under the [MIT License](LICENSE).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwokike%2Fkiri-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwokike%2Fkiri-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwokike%2Fkiri-code/lists"}