{"id":17549363,"url":"https://github.com/nitwhiz/omnilock","last_synced_at":"2025-08-12T13:51:26.008Z","repository":{"id":220584406,"uuid":"748786263","full_name":"nitwhiz/omnilock","owner":"nitwhiz","description":"This is a locker. 🔒","archived":false,"fork":false,"pushed_at":"2024-08-22T19:35:11.000Z","size":27,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T02:03:10.748Z","etag":null,"topics":["lock-manager","locker","mutex","sync"],"latest_commit_sha":null,"homepage":"","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/nitwhiz.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}},"created_at":"2024-01-26T19:02:44.000Z","updated_at":"2024-09-16T13:59:35.000Z","dependencies_parsed_at":"2024-02-02T22:29:17.073Z","dependency_job_id":"5e2c032e-a5c6-4305-a57b-a4dde313b2e7","html_url":"https://github.com/nitwhiz/omnilock","commit_stats":null,"previous_names":["nitwhiz/omnilock"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitwhiz%2Fomnilock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitwhiz%2Fomnilock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitwhiz%2Fomnilock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitwhiz%2Fomnilock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitwhiz","download_url":"https://codeload.github.com/nitwhiz/omnilock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505863,"owners_count":21115354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["lock-manager","locker","mutex","sync"],"created_at":"2024-10-21T02:51:17.833Z","updated_at":"2025-04-12T02:03:29.725Z","avatar_url":"https://github.com/nitwhiz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# omnilock\n\nA zero dependency locker.\n\n## How does it work?\n\nThis locker uses TCP connections to keep track of locks.\nThis way, a lock is freed as soon as the locking process ends (some way or another) or it's unlocked explicitly.\n\n## Protocol\n\n1. Open a TCP connection to the omnilock server\n2. Send a lock command through the established connection (e.g. `lock my_lock`)\n3. Read the response, it may be either `success`, `failed` or `error: something went wrong`\n4. Do your things on the client side\n5. Either unlock the lock explicitly: `unlock my_lock` or just let the process exit so the OS closes the connection\n\nNote: All commands and responses end with `\\n` (newline).\n\n## Usage as docker image\n\nStart the server with:\n\n```shell\ndocker run --rm -it -p 7194:7194 ghcr.io/nitwhiz/omnilock:latest\n```\n\nAnd connect to it via port 7194.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitwhiz%2Fomnilock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitwhiz%2Fomnilock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitwhiz%2Fomnilock/lists"}