{"id":18976861,"url":"https://github.com/yxonic/quickrabbit","last_synced_at":"2026-04-30T19:32:27.928Z","repository":{"id":78543172,"uuid":"301330191","full_name":"yxonic/quickrabbit","owner":"yxonic","description":"quickrabbit generates strongly-typed functions for implementing RPC, task queue, Pub/Sub, etc., using RabbitMQ","archived":false,"fork":false,"pushed_at":"2020-10-11T08:46:24.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-02T14:53:47.542Z","etag":null,"topics":["rabbitmq","rpc","typescript"],"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/yxonic.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}},"created_at":"2020-10-05T07:43:53.000Z","updated_at":"2021-10-20T15:57:17.000Z","dependencies_parsed_at":"2023-03-11T22:16:12.677Z","dependency_job_id":null,"html_url":"https://github.com/yxonic/quickrabbit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yxonic/quickrabbit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxonic%2Fquickrabbit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxonic%2Fquickrabbit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxonic%2Fquickrabbit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxonic%2Fquickrabbit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yxonic","download_url":"https://codeload.github.com/yxonic/quickrabbit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxonic%2Fquickrabbit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32475192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["rabbitmq","rpc","typescript"],"created_at":"2024-11-08T15:26:37.859Z","updated_at":"2026-04-30T19:32:27.903Z","avatar_url":"https://github.com/yxonic.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quickrabbit\n\n`quickrabbit` generates strongly-typed easy-to-use APIs for implementing cross-language actions such as RPC, task queue and Pub/Sub, using RabbitMQ. It is based on the awesome [`quicktype`](https://github.com/quicktype/quicktype) library.\n\n**STILL WORK IN PROGRESS!**\n\nSupported output languages: TypeScript, Python, Java, Go, Rust.\n\n## TODO\n- [ ] Message type and error handling.\n- [ ] Renderer for all languages.\n- [ ] Parser.\n- [ ] CLI.\n- [ ] Testing.\n\n## Usage\n\n1. Create a shared `rabbit` project across all related projects.\n2. Add type declarations in `rabbit` using [extended annotations](#extended-annotations).\n3. Configure git submodule for each project.\n4. Add `quickrabbit` to build process.\n5. Use generated function declarations!\n\n## Extended Annotations\n\nGrammar:\n\n```ts\n/// name[key]: action[, action, ...]\nclass TypeName\n```\n\nSupported actions: call, return, commit, reply, publish, subscribe.\n\n```ts\n/// check[rpc.check]: call\nclass CheckArg {\n    command: string\n}\n\n/// check[rpc.check]: return\nclass CheckRet {\n    available: boolean\n}\n\n/// run[rpc.run]: commit\nclass RunArg {\n    command: string\n}\n\n/// run[rpc.run]: reply\nclass RunMsg {\n    time: Date\n    message: string\n}\n\n/// logCreate[logging.create]: publish,subscribe\nclass CreateMsg {\n    id: string\n    name: string\n    time: Date\n}\n\n/// logAll[logging.*]: subscribe\nclass LogMsg {\n    time: Date\n}\n```\n\nGenerated (TypeScript):\n\n```ts\n// type declarations by quicktype\n...\n\n// main class with auto-generated functions\nclass QuickRabbit {\n    ...\n\n    check(arg: CheckArg): Promise\u003cCheckRet\u003e {\n        ...\n    }\n    checkImpl(f: (arg: CheckArg) =\u003e CheckRet | Promise\u003cCheckRet\u003e) {\n        ...\n    }\n\n    run(arg: RunArg, handler: (msg: RunMsg) =\u003e void) {\n        ...\n    }\n    runImpl(f: (arg: CheckArg, reply: (msg: RunMsg) =\u003e void)) {\n        ...\n    }\n\n    logCreatePublish(msg: CreateMsg) {\n        ...\n    }\n    logCreateSubscribe(msg: CreateMsg) {\n        ...\n    }\n\n    logAllSubscribe(handler: (msg: LogMsg) =\u003e void) {\n        ...\n    }\n}\n\n// create connection\nexport async function connect() {\n    ...\n    return new QuickRabbit(...)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyxonic%2Fquickrabbit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyxonic%2Fquickrabbit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyxonic%2Fquickrabbit/lists"}