{"id":51039272,"url":"https://github.com/brandonkramer/locdaemon","last_synced_at":"2026-06-22T09:30:26.168Z","repository":{"id":362796813,"uuid":"1256387610","full_name":"brandonkramer/locdaemon","owner":"brandonkramer","description":"Generic local JSON-RPC daemon kit for Go: home layout, single-instance lock, accept loop, observe HTTP, and client helpers.","archived":false,"fork":false,"pushed_at":"2026-06-05T23:22:34.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-06T01:13:53.556Z","etag":null,"topics":["daemon","go","golang","ipc","jrpc2","json-rpc","library","named-pipe","unix-socket"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brandonkramer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-01T18:22:01.000Z","updated_at":"2026-06-05T23:22:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/brandonkramer/locdaemon","commit_stats":null,"previous_names":["brandonkramer/locdaemon"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/brandonkramer/locdaemon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonkramer%2Flocdaemon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonkramer%2Flocdaemon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonkramer%2Flocdaemon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonkramer%2Flocdaemon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonkramer","download_url":"https://codeload.github.com/brandonkramer/locdaemon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonkramer%2Flocdaemon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34643407,"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-22T02:00:06.391Z","response_time":106,"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":["daemon","go","golang","ipc","jrpc2","json-rpc","library","named-pipe","unix-socket"],"created_at":"2026-06-22T09:30:25.563Z","updated_at":"2026-06-22T09:30:26.162Z","avatar_url":"https://github.com/brandonkramer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# locdaemon\n\nGeneric local JSON-RPC daemon kit: home layout paths, single-instance lock, accept loop, observe HTTP, and client dial/spawn helpers.\n\n## Install\n\nFrom [pkg.go.dev](https://pkg.go.dev/github.com/brandonkramer/locdaemon):\n\n```bash\ngo get github.com/brandonkramer/locdaemon\n```\n\n## Quick start\n\n```go\nctx := context.Background()\n\nerr := runtime.Run(ctx, runtime.Config{\n    Home:     home,\n    Layout:   layout,\n    Assigner: myRPCAssigner,\n    Prepare:  prepareHome,\n    OnReady:  startBackgroundWork,\n})\nif err != nil {\n    return err\n}\n```\n\nClient side:\n\n```go\ngot, err := client.CallHome[string](ctx, home, layout, \"status\", nil, 5*time.Second)\nif err != nil {\n    return err\n}\n```\n\n## Development\n\nLefthook and golangci-lint are pinned in `go.mod` as **tools** (dev-only). Install git hooks once per clone:\n\n```bash\nmake install-hooks\n```\n\n```bash\nmake check\nmake test\nmake lint\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonkramer%2Flocdaemon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonkramer%2Flocdaemon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonkramer%2Flocdaemon/lists"}