{"id":46431019,"url":"https://github.com/wei/discord-chunker","last_synced_at":"2026-03-05T18:11:44.181Z","repository":{"id":337551698,"uuid":"1154123875","full_name":"wei/discord-chunker","owner":"wei","description":"🗨️ A Discord webhook proxy that intelligently chunks long messages","archived":false,"fork":false,"pushed_at":"2026-02-10T07:39:06.000Z","size":754,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-10T09:43:30.378Z","etag":null,"topics":["discord","discord-webhook","discord-webhooks"],"latest_commit_sha":null,"homepage":"https://discord.git.ci/chunker","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/wei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-02-10T03:17:50.000Z","updated_at":"2026-02-10T06:23:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wei/discord-chunker","commit_stats":null,"previous_names":["wei/discord-chunker"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/wei/discord-chunker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wei%2Fdiscord-chunker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wei%2Fdiscord-chunker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wei%2Fdiscord-chunker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wei%2Fdiscord-chunker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wei","download_url":"https://codeload.github.com/wei/discord-chunker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wei%2Fdiscord-chunker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30141714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T16:58:46.102Z","status":"ssl_error","status_checked_at":"2026-03-05T16:58:45.706Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["discord","discord-webhook","discord-webhooks"],"created_at":"2026-03-05T18:11:43.429Z","updated_at":"2026-03-05T18:11:44.174Z","avatar_url":"https://github.com/wei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![discord-chunker](https://socialify.git.ci/wei/discord-chunker/image?description=1\u0026font=Bitter\u0026language=1\u0026logo=https%3A%2F%2Fcdn.prod.website-files.com%2F6257adef93867e50d84d30e2%2F66e3d80db9971f10a9757c99_Symbol.svg\u0026name=1\u0026owner=1\u0026pattern=Circuit+Board\u0026theme=Auto)\n\nA Discord webhook proxy that intelligently chunks long messages. Drop-in replacement — just swap the URL.\n\n## Usage\n\nReplace your Discord webhook URL:\n\n```diff\n- https://discord.com/api/webhooks/123/token\n+ https://discord.git.ci/api/webhook/123/token\n```\n\nMessages under 1950 characters pass through unchanged. Longer messages are split intelligently:\n\n- Splits at line boundaries (never mid-line)\n- Respects both character and line count limits\n- Fence delimiter lines excluded from line count\n- Code blocks properly closed/reopened when split across chunks\n- Hard-cuts only when a single line exceeds the character limit\n\nNote: when a split occurs inside an active code fence, temporary close/reopen fence wrapper lines may cause a chunk to exceed the configured `max_chars`. This is intentional for fence integrity. The hard Discord limit of 2000 characters is still enforced.\n\n## Health Endpoint\n\n`GET /health` returns a lightweight service status payload that includes both the service identity/version and the incoming request User-Agent.\n\nExample response:\n\n```json\n{\n  \"status\": \"ok\",\n  \"service\": \"discord-chunker\",\n  \"version\": \"0.1.0\",\n  \"service_user_agent\": \"discord-chunker/0.1.0\",\n  \"request_user_agent\": \"curl/8.7.1\",\n  \"timestamp\": \"2026-02-10T04:45:00.000Z\"\n}\n```\n\nThe response also includes the `X-Service` header set to the service User-Agent string.\n\n## Configuration\n\n| Param | Default | Range | Description |\n|-------|---------|-------|-------------|\n| `max_chars` | 1950 | 100-2000 | Max characters per chunk |\n| `max_lines` | 20 | ≥ 0 (0 = unlimited) | Max lines per chunk (fence lines excluded) |\n| `thread_id` | — | — | Forward to thread |\n| `wait` | omitted | true/false | Return message object of the first chunk (omitted = Discord default) |\n\n```bash\nPOST /api/webhook/123/token?max_chars=1500\u0026max_lines=25\u0026thread_id=999\n```\n\n## Prerequisites\n\n- [Node.js](https://nodejs.org/) \u003e= 22\n\n## Deploy\n\n```bash\npnpm install\npnpm wrangler login\npnpm deploy\n```\n\n## Development\n\n```bash\npnpm install\npnpm dev        # Local dev server\npnpm test       # Run tests\n```\n\n## Design\n\nSee [design document](docs/plans/design.md) for full architecture details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwei%2Fdiscord-chunker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwei%2Fdiscord-chunker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwei%2Fdiscord-chunker/lists"}