{"id":15408542,"url":"https://github.com/yusukebe/cloudflare-d1-drizzle-honox-starter","last_synced_at":"2025-04-19T03:11:36.807Z","repository":{"id":234270283,"uuid":"788549019","full_name":"yusukebe/cloudflare-d1-drizzle-honox-starter","owner":"yusukebe","description":"cloudflare-d1-drizzle-honox-starter","archived":false,"fork":false,"pushed_at":"2024-04-18T16:48:24.000Z","size":6,"stargazers_count":54,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T06:43:04.644Z","etag":null,"topics":["cloudflare-d1","cloudflare-pages","cloudflare-workers","drizzle-orm","hono","honox","zod"],"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/yusukebe.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":"2024-04-18T16:23:18.000Z","updated_at":"2025-03-04T07:41:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"11b02693-77f2-402e-9267-ea25d842d78b","html_url":"https://github.com/yusukebe/cloudflare-d1-drizzle-honox-starter","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"d4e63345a7a079cb0d2abe03f51c1f9b4126e123"},"previous_names":["yusukebe/cloudflare-d1-drizzle-honox-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukebe%2Fcloudflare-d1-drizzle-honox-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukebe%2Fcloudflare-d1-drizzle-honox-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukebe%2Fcloudflare-d1-drizzle-honox-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukebe%2Fcloudflare-d1-drizzle-honox-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusukebe","download_url":"https://codeload.github.com/yusukebe/cloudflare-d1-drizzle-honox-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249598073,"owners_count":21297463,"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":["cloudflare-d1","cloudflare-pages","cloudflare-workers","drizzle-orm","hono","honox","zod"],"created_at":"2024-10-01T16:34:24.026Z","updated_at":"2025-04-19T03:11:36.761Z","avatar_url":"https://github.com/yusukebe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudflare-d1-drizzle-honox-starter\n\nA starter project showing how you can integrate [Drizzle ORM](https://orm.drizzle.team) and [Cloudflare D1](https://developers.cloudflare.com/d1) with a [HonoX](https://github.com/honojs/honox) application to build awesome full-stack apps.\n\n\u003e [!TIP]\n\u003e If the above paragraph was a bunch of buzzwords that seem confusing, here's the simple version:\n\u003e\n\u003e - HonoX is a _full-stack framework_ combining _backend API endpoints_ with the ability to render _frontend applications with React_\n\u003e - Cloudflare D1 is a _SQL database_\n\u003e - Drizzle ORM provides an _ORM wrapper_ around D1, to allow data models and querying using a straightforward syntax\n\n## Installation\n\n### 0. Clone the template and install all dependencies\n\n```sh\ngit clone git@github.com:yusukebe/cloudflare-d1-drizzle-honox-starter.git starter\ncd starter\nnpm install\n```\n\n### 1. Create a new D1 database using Wrangler\n\n```sh\nnpx wrangler@latest d1 create d1-todo\n```\n\n_Note that if you haven't yet used Wrangler, you will be prompted to login to Cloudflare._\n\nCopy the output of this command, which is structured TOML configuration, into your `wrangler.toml`.\n\n### 2. Create a new migration file\n\n```sh\nnpm run migration:generate\n```\n\n### 3. Apply the migration to your local database\n\n```sh\nnpm run migration:apply:local\n```\n\n### 4. When you're ready, deploy your application\n\n```sh\nnpm run deploy\n```\n\n### 5. Once you've deployed your application, you can apply the migrations to your remote (production) D1 database\n\n```sh\nnpm run migration:apply:remote\n```\n\n## Prisma Version\n\nYou can see the starter using [Prisma](https://www.prisma.io) instead of Drizzle ORM:\n\n- https://github.com/kristianfreeman/cloudflare-d1-prisma-honox-starter\n\n## Author\n\nYusuke Wada \u003chttps://github.com/yusukebe\u003e\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukebe%2Fcloudflare-d1-drizzle-honox-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusukebe%2Fcloudflare-d1-drizzle-honox-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukebe%2Fcloudflare-d1-drizzle-honox-starter/lists"}