{"id":51039275,"url":"https://github.com/brandonkramer/svcroot","last_synced_at":"2026-06-22T09:30:27.946Z","repository":{"id":361647603,"uuid":"1255255142","full_name":"brandonkramer/svcroot","owner":"brandonkramer","description":"Service instance roots, runtime file layout, project-root discovery, and known-instance registries.","archived":false,"fork":false,"pushed_at":"2026-05-31T17:06:20.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-31T17:24:40.353Z","etag":null,"topics":["filesystem","go","golang","library","paths","service"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/brandonkramer.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-05-31T15:50:22.000Z","updated_at":"2026-05-31T17:06:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/brandonkramer/svcroot","commit_stats":null,"previous_names":["brandonkramer/svcroot"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/brandonkramer/svcroot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonkramer%2Fsvcroot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonkramer%2Fsvcroot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonkramer%2Fsvcroot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonkramer%2Fsvcroot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonkramer","download_url":"https://codeload.github.com/brandonkramer/svcroot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonkramer%2Fsvcroot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34643409,"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":["filesystem","go","golang","library","paths","service"],"created_at":"2026-06-22T09:30:25.798Z","updated_at":"2026-06-22T09:30:27.938Z","avatar_url":"https://github.com/brandonkramer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svcroot\n\nService instance roots, runtime file layout, project-root discovery, and known-instance registries for long-running local services.\n\n## Install\n\nFrom [pkg.go.dev](https://pkg.go.dev/github.com/brandonkramer/svcroot):\n\n```bash\ngo get github.com/brandonkramer/svcroot\n```\n\n## Configure once with Service\n\n```go\nsvc := \u0026svcroot.Service{\n    EnvVar:       \"MYAPP_HOME\",\n    DefaultDir:   \".myapp\",\n    RegistryFile: \"sessions/known-instances.json\", // optional\n    Layout: svcroot.Layout{\n        SessionsDir: \"sessions\",\n        SocketName:  \"rpc.sock\",\n        LockName:    \"service.lock\",\n    },\n}\n\nroot, err := svc.Resolve()\nh := svc.Open(root)\n\nsocket := h.Socket()\nlock := h.Lock()\ntasksDir := h.Join(\"tasks\")\nregistry := h.RuntimeJoin(\"state.json\")\n```\n\n## Legacy helpers\n\n```go\nlayout := \u0026svcroot.DefaultLayout\nsocket := svcroot.Socket(root, layout)\nlock := svcroot.Lock(root, layout)\n```\n\n## Development\n\n```bash\nmake check          # race tests + linux compile + golangci-lint\nmake install-hooks  # lefthook pre-commit/pre-push\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonkramer%2Fsvcroot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonkramer%2Fsvcroot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonkramer%2Fsvcroot/lists"}