{"id":50728429,"url":"https://github.com/bouk/tslocal","last_synced_at":"2026-06-10T06:03:26.282Z","repository":{"id":356652629,"uuid":"832584633","full_name":"bouk/tslocal","owner":"bouk","description":"Client libraries for the Tailscale Local API in Rust, Python, and TypeScript.","archived":false,"fork":false,"pushed_at":"2026-06-03T12:50:57.000Z","size":15177,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-03T14:22:10.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bouk.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":"2024-07-23T10:13:14.000Z","updated_at":"2026-06-03T12:50:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bouk/tslocal","commit_stats":null,"previous_names":["bouk/tslocal"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/bouk/tslocal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Ftslocal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Ftslocal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Ftslocal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Ftslocal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bouk","download_url":"https://codeload.github.com/bouk/tslocal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Ftslocal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34139191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-06-10T06:03:25.735Z","updated_at":"2026-06-10T06:03:26.276Z","avatar_url":"https://github.com/bouk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tslocal\n\nClient libraries for the [Tailscale Local API](https://tailscale.com/kb/1242/tailscale-api-local) in Rust, Python, and TypeScript.\n\nThese are direct ports of the official Go client (`tailscale/client/local`), targeting Tailscale **v1.94.1**.\n\n## Libraries\n\n| Language | Path | Runtime |\n|----------|------|---------|\n| Rust | [`rust/`](rust/) | async/tokio |\n| Python | [`python/`](python/) | sync |\n| TypeScript | [`ts/`](ts/) | Node.js |\n\n## Installation\n\n**Rust** — add to `Cargo.toml`:\n```toml\n[dependencies]\ntslocal = \"1.1.0\"\n```\n\n**Python**:\n```sh\npip install tslocal\n```\n\n**TypeScript**:\n```sh\nnpm install tslocal\n```\n\n## Usage\n\nAll three libraries communicate with the local Tailscale daemon over a Unix domain socket. The daemon must be running on the same machine.\n\n### Rust\n\n```rust\nuse tslocal::Client;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let client = Client::new();\n    let status = client.status().await?;\n    println!(\"Tailscale version: {}\", status.version);\n    Ok(())\n}\n```\n\n### Python\n\n```python\nfrom tslocal import Client\n\nwith Client() as client:\n    status = client.status()\n    print(f\"Tailscale version: {status.version}\")\n```\n\n### TypeScript\n\n```typescript\nimport { Client } from \"tslocal\";\n\nconst client = new Client();\nconst status = await client.status();\nconsole.log(`Tailscale version: ${status.Version}`);\nclient.destroy();\n```\n\n## Supported Methods\n\n| Description | Go | Rust | Python | TypeScript |\n|---|---|---|---|---|\n| Get full node status including peers | `Status` | `status` | `status` | `status` |\n| Get node status without peer information | `StatusWithoutPeers` | `status_without_peers` | `status_without_peers` | `statusWithoutPeers` |\n| Look up identity by IP address | `WhoIs` | `who_is` | `who_is` | `whoIs` |\n| Look up identity by node key | `WhoIsNodeKey` | `who_is_node_key` | `who_is_node_key` | `whoIsNodeKey` |\n| Look up identity with proto and address | `WhoIsProto` | `who_is_proto` | `who_is_proto` | `whoIsProto` |\n| Get TLS certificate and private key | `CertPair` | `cert_pair` | `cert_pair` | `certPair` |\n| Get TLS certificate with minimum validity | `CertPairWithValidity` | `cert_pair_with_validity` | `cert_pair_with_validity` | `certPairWithValidity` |\n| Get current serve configuration | `GetServeConfig` | `get_serve_config` | `get_serve_config` | `getServeConfig` |\n| Set serve configuration | `SetServeConfig` | `set_serve_config` | `set_serve_config` | `setServeConfig` |\n\n## Build \u0026 Test\n\n```sh\n# Rust\ncargo test\ncargo check\ncargo clippy\n\n# Python\nuv run pytest\n\n# TypeScript\nnpm test\nnpx tsc --noEmit\n```\n\n## License\n\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouk%2Ftslocal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbouk%2Ftslocal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouk%2Ftslocal/lists"}