{"id":36667786,"url":"https://github.com/jiftechnify/strtr","last_synced_at":"2026-01-12T10:37:00.071Z","repository":{"id":233597183,"uuid":"787401634","full_name":"jiftechnify/strtr","owner":"jiftechnify","description":"Minimal Nostr relay implementation, for daily Nostr development","archived":false,"fork":false,"pushed_at":"2024-04-19T22:24:02.000Z","size":75,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T21:22:10.103Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiftechnify.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}},"created_at":"2024-04-16T13:03:48.000Z","updated_at":"2024-04-19T22:24:06.000Z","dependencies_parsed_at":"2024-04-16T22:30:02.348Z","dependency_job_id":null,"html_url":"https://github.com/jiftechnify/strtr","commit_stats":null,"previous_names":["jiftechnify/strtr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jiftechnify/strtr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiftechnify%2Fstrtr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiftechnify%2Fstrtr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiftechnify%2Fstrtr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiftechnify%2Fstrtr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiftechnify","download_url":"https://codeload.github.com/jiftechnify/strtr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiftechnify%2Fstrtr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-01-12T10:36:58.497Z","updated_at":"2026-01-12T10:37:00.062Z","avatar_url":"https://github.com/jiftechnify.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strtr\nMinimal Nostr relay implementation, for daily Nostr development.\n\n## How to Use\n\nLaunch with `npx`:\n\n```bash\nnpx strtr\n```\n\nLaunch with a script:\n\n```ts\nimport { launchRelay } from \"strtr\";\n\n// launchRelay() returns a function that shutdown the relay server\nconst shutdown = launchRelay();\n\n// work with the relay...\n\n// after use, gracefully shutdown it\nshutdown();\n```\n\nBy default, the relay listen on `127.0.0.1:5454`. You can change it with options.\n\n\n\u003e [!NOTE]\n\u003e For now, **strtr** holds all events in memory and forgets them all on shutdown.\n\n## Options\n\nYou can specify relay options by:\n\n- Command line options\n- Environment variables\n  + Uppercased option names, prefixed with `STRTR_`\n- Passing `RelayOptions` to `launchRelay()`\n\n| Name | Short Name| Default | Description |\n| -- | -- | -- | -- |\n| `host` | `h` | `127.0.0.1`| Host to listen on |\n| `port` | `p` | `5454` | Port to listen on |\n\n### Example: Command Line Options\n\n```bash\n# long name\nnpx strtr --host 0.0.0.0 --port 9999\n\n# short name\nnpx strtr -h 0.0.0.0 -p 9999\n```\n\n### Example: Environment variables\n\n```bash\nexport STRTR_HOST=0.0.0.0\nexport STRTR_PORT=9999\nnpx strtr\n```\n\n### Example: `RelayOptions`\n\n```ts\nimport { launchRelay, type RelayOptions } from \"strtr\";\n\n// launchRelay() returns a function that shutdown the relay server\nconst shutdown = launchRelay({ host: \"0.0.0.0\", port: 9999 });\n```\n\n## Supported NIPs\n\n- [x] NIP-01: Basic Protocol Flow\n- [x] NIP-09: Event Deletion\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiftechnify%2Fstrtr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiftechnify%2Fstrtr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiftechnify%2Fstrtr/lists"}