{"id":25523488,"url":"https://github.com/yestool/mail-collect","last_synced_at":"2025-12-29T11:30:13.470Z","repository":{"id":217633536,"uuid":"744414757","full_name":"yestool/mail-collect","owner":"yestool","description":"📮MailBox - collect mail with Cloudflare + Huno + D1 database","archived":false,"fork":false,"pushed_at":"2024-01-17T08:56:58.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-30T12:47:29.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/yestool.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}},"created_at":"2024-01-17T08:54:38.000Z","updated_at":"2024-04-09T03:56:05.000Z","dependencies_parsed_at":"2024-01-17T16:26:09.196Z","dependency_job_id":"4cc58962-f247-4dc4-91ae-ce7c9189ab20","html_url":"https://github.com/yestool/mail-collect","commit_stats":null,"previous_names":["yestool/mail-collect"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yestool%2Fmail-collect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yestool%2Fmail-collect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yestool%2Fmail-collect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yestool%2Fmail-collect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yestool","download_url":"https://codeload.github.com/yestool/mail-collect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718414,"owners_count":19685725,"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":[],"created_at":"2025-02-19T19:19:22.345Z","updated_at":"2025-12-29T11:30:13.419Z","avatar_url":"https://github.com/yestool.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📮MailBox - collect mail with Cloudflare + Huno + D1 database\n\n[Cloudflare D1 Doc](https://developers.cloudflare.com/d1/get-started/)\n\n## Setup\n\n### Log in\n\n```bash\nnpx wrangler login\n```\n\n```\nnpx wrangler d1 create \u003cDATABASE_NAME\u003e\n\n---------\n✅ Successfully created DB '\u003cDATABASE_NAME\u003e'\n\n[[d1_databases]]\nbinding = \"DB\" # available in your Worker on env.DB\ndatabase_name = \"\u003cDATABASE_NAME\u003e\"\ndatabase_id = \"\u003cunique-ID-for-your-database\u003e\"\n\n```\n\n### Bind Worker to D1 database\n\nin **wrangler.toml**\n\n```\n[[d1_databases]]\nbinding = \"DB\" # available in your Worker on env.DB\ndatabase_name = \"\u003cDATABASE_NAME\u003e\"\ndatabase_id = \"\u003cunique-ID-for-your-database\u003e\"\n```\n\n### init database\n\n```\nnpm run initSql\n```\n\n\n### Deploy\n\n```\n$ npm run deploy\n\n\u003e analytics_with_cloudflare@0.0.0 deploy\n\u003e wrangler deploy\n\nProxy environment variables detected. We'll use your proxy for fetch requests.\n ⛅️ wrangler 3.22.5\n-------------------\nYour worker has access to the following bindings:\n- D1 Databases:\n  - DB: mail_collect_db (\u003cunique-ID-for-your-database\u003e)\nTotal Upload: 25.64 KiB / gzip: 9.46 KiB\nUploaded mail-collect (1.04 sec)\nPublished mail-collect (0.45 sec)\n  https://mail-collect.xxxxx.workers.dev\nCurrent Deployment ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n## Use\n\ncheck `use-demo.html`\n\n\n## query data:\n\n\n```\nnpx wrangler d1 execute mail_collect_db  --command=\"SELECT * FROM t_address\" --local\n\nnpx wrangler d1 execute mail_collect_db  --command=\"SELECT * FROM t_mail\" --local\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyestool%2Fmail-collect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyestool%2Fmail-collect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyestool%2Fmail-collect/lists"}