{"id":48289308,"url":"https://github.com/empathic/hotline","last_synced_at":"2026-04-04T23:01:19.648Z","repository":{"id":338318285,"uuid":"1157504804","full_name":"empathic/hotline","owner":"empathic","description":"Easy bug reports from distributed applications","archived":false,"fork":false,"pushed_at":"2026-03-29T22:16:08.000Z","size":151,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T00:54:13.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/empathic.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-13T22:33:01.000Z","updated_at":"2026-03-29T22:16:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/empathic/hotline","commit_stats":null,"previous_names":["empathic/hotline"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/empathic/hotline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empathic%2Fhotline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empathic%2Fhotline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empathic%2Fhotline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empathic%2Fhotline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/empathic","download_url":"https://codeload.github.com/empathic/hotline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empathic%2Fhotline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31418286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":[],"created_at":"2026-04-04T23:01:13.104Z","updated_at":"2026-04-04T23:01:19.631Z","avatar_url":"https://github.com/empathic.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hotline\n\n[![crates.io](https://img.shields.io/crates/v/hotln)](https://crates.io/crates/hotln)\n[![npm](https://img.shields.io/npm/v/hotln)](https://www.npmjs.com/package/hotln)\n[![npm](https://img.shields.io/npm/v/hotln-proxy?label=hotln-proxy)](https://www.npmjs.com/package/hotln-proxy)\n\nA library for filing bug reports to [Linear](https://linear.app) and\n[GitHub Issues](https://github.com) from distributed applications. Reports\nare sent through a proxy server that holds API credentials.\n\nAvailable for [Rust](https://crates.io/crates/hotln) and [TypeScript/JavaScript](https://www.npmjs.com/package/hotln).\nThe proxy server is available as [`hotln-proxy`](https://www.npmjs.com/package/hotln-proxy).\n\n## Usage\n\n### Rust\n\n```rust\nhotln::github(\"https://your-proxy.example.com\")\n    .with_token(\"secret\")\n    .title(\"crash on startup\")\n    .text(\"Something went wrong.\")\n    .file(\"config.toml\", \u0026toml_str)\n    .create()?;\n\nhotln::linear(\"https://your-proxy.example.com\")\n    .with_token(\"secret\")\n    .title(\"crash on startup\")\n    .text(\"Details.\")\n    .attachment(\"crash.log\", \u0026log_bytes)\n    .create()?;\n```\n\n### TypeScript\n\n```typescript\nimport hotln from \"hotln\";\n\nawait hotln.github(\"https://your-proxy.example.com\")\n    .withToken(\"secret\")\n    .title(\"crash on startup\")\n    .text(\"Something went wrong.\")\n    .file(\"config.toml\", tomlStr)\n    .create();\n\nawait hotln.linear(\"https://your-proxy.example.com\")\n    .withToken(\"secret\")\n    .title(\"crash on startup\")\n    .text(\"Details.\")\n    .attachment(\"crash.log\", logBytes)\n    .create();\n```\n\n## Builder API\n\nBoth backends use a fluent builder. Call `.create()` to send the request and\nget back the issue URL (`Result\u003cString, Error\u003e` in Rust, `Promise\u003cstring\u003e` in\nTypeScript).\n\n| Method | Description |\n|--------|-------------|\n| `.title(s)` | Set the issue title |\n| `.text(s)` | Append a text block to the body |\n| `.file(name, content)` | Append a fenced code block to the body |\n| `.attachment(name, data)` | **Linear only.** Upload as a real Linear attachment (binary OK) |\n| `.with_token(s)` | Set a bearer token for proxy auth |\n| `.create()` | Send the request and return the issue URL |\n\n`.text()` and `.file()` blocks are joined in order, separated by blank lines.\n\n## Proxy protocol\n\nThe client POSTs JSON to the proxy. Each backend has its own path:\n\n- `POST /linear` — create a Linear issue\n- `POST /github` — create a GitHub issue\n\nIf `with_token` is set, the client sends an `Authorization: Bearer \u003ctoken\u003e` header.\n\n### Linear request\n\n```typescript\ninterface LinearRequest {\n  title: string;\n  description: string;\n  attachments?: {\n    filename: string;\n    contentType: string;\n    data: string;\n    encoding?: \"text\" | \"base64\";\n  }[];\n}\n```\n\n### GitHub request\n\n```typescript\ninterface GitHubRequest {\n  title: string;\n  description: string;\n}\n```\n\n### Response (both backends)\n\n```typescript\ninterface Response {\n  url: string; // URL of the created issue\n}\n```\n\n## Proxy\n\nA reference proxy implementation lives in `hotln-proxy/`. See\n[hotln-proxy/README.md](hotln-proxy/README.md) for setup and configuration.\n\n## CLI\n\n```\nhotln github \"crash on startup\" --proxy-url https://worker.example.com\nhotln linear \"crash on startup\" --proxy-url https://worker.example.com\nhotln linear \"crash on startup\" --proxy-url https://worker.example.com -f config.toml -a crash.log\n```\n\nAll flags can also be set via environment variables (`HOTLINE_PROXY_URL`,\n`HOTLINE_PROXY_TOKEN`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fempathic%2Fhotline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fempathic%2Fhotline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fempathic%2Fhotline/lists"}