{"id":28304825,"url":"https://github.com/sarmad426/bun-react-hono","last_synced_at":"2026-05-15T08:11:06.764Z","repository":{"id":290766957,"uuid":"975451728","full_name":"Sarmad426/bun-react-hono","owner":"Sarmad426","description":"Full stack todo app built with Bun and Hono on the backend and React on the frontend ","archived":false,"fork":false,"pushed_at":"2025-05-02T18:24:31.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T00:39:17.989Z","etag":null,"topics":["bun","drizzle-orm","honojs","postgresql","react19","tailwindcss","todoapp","typescript"],"latest_commit_sha":null,"homepage":"","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/Sarmad426.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}},"created_at":"2025-04-30T10:36:19.000Z","updated_at":"2025-05-03T04:27:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce62e63a-ecba-4fb9-9cd6-e1b6ba21cc7c","html_url":"https://github.com/Sarmad426/bun-react-hono","commit_stats":null,"previous_names":["sarmad426/bun-react-hono"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sarmad426/bun-react-hono","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarmad426%2Fbun-react-hono","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarmad426%2Fbun-react-hono/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarmad426%2Fbun-react-hono/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarmad426%2Fbun-react-hono/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sarmad426","download_url":"https://codeload.github.com/Sarmad426/bun-react-hono/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarmad426%2Fbun-react-hono/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278629054,"owners_count":26018483,"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-10-06T02:00:05.630Z","response_time":65,"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":["bun","drizzle-orm","honojs","postgresql","react19","tailwindcss","todoapp","typescript"],"created_at":"2025-05-24T01:11:47.864Z","updated_at":"2025-10-06T15:04:17.085Z","avatar_url":"https://github.com/Sarmad426.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full Stack Todo app\n\nThis is a full stack todo app built with React, Bun.js, Hono, and Postgresql. Purpose of this\nrepository is to build a backend with hono js, use latest react 19 features and hooks, and use bun runtime and as a package manager as well.\n\n\n## Tech Stack:\n\n**Frontend**\n\n- React 19\n- Tailwind CSS\n\n**Backend**\n\n- Bun.js\n- Hono.js\n- Drizzle ORM\n- Postgresql\n\n\n**Why Bun:**\n\n- Fastest Javascript runtime.\n- Outperforms Node.js and Deno in performance benchmarks.\n- Built-in package manager and bundler.\n- Supports TypeScript and JSX out of the box.\n- Built-in SQLite support.\n- Supports Web APIs like fetch, WebSocket, and more.\n- Supports ES modules and CommonJS.\n- Built in testing framework.\n\n**Why Hono:**\n\n- Lightweight and a Fast Backend API framework (Faster and lightweight than express).\n- Beats express in performance benchmarks.\n\n**Why Drizzle ORM:**\n\n- Fast, Lightweight, SQL-like, Type-safe ORM.\n\n## Run the application\n\nYou can either create a docker image and run the application in a container or run it locally.\n\n### Run Locally\n\n**Run the backend:**\n\n```bash\ncd hono-backend\n```\n\nInstall dependencies:\n\n```bash\nbun i\n```\n\nCreate a `.env` file in the root directory and add the following environment variables:\n\n```bash\nDATABASE_URL=postgres://\u003cusername\u003e:\u003cpassword\u003e@localhost:5432/\u003cdatabase_name\u003e    \n```\n\n**Start database**\n\nEnsure to create a database in local postgres. or you can use serverless neon. Check out drizzle docs for neon setup.\n\n```bash\nbun db:generate\nbun db:push\n```\n\nFinally run the backend.\n\n```bash\nbun dev\n```\n\nOpen this url on your browser: \u003chttp://localhost:3000\u003e\n\n## Run the frontend\n\n```bash\ncd react-frontend\n```\n\nInstall dependencies:\n\n```bash\nbun i\n```\n\nRun the application:\n\n```\nbun dev\n```\n\nOpen this url on your browser: \u003chttp://localhost:5173\u003e\n\n## Run with Docker Compose\n\nEnsure you have docker and docker-compose installed.\n\n```bash\ndocker compose up --build\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarmad426%2Fbun-react-hono","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarmad426%2Fbun-react-hono","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarmad426%2Fbun-react-hono/lists"}