{"id":23790016,"url":"https://github.com/blackglory/uid","last_synced_at":"2026-04-13T23:32:44.839Z","repository":{"id":44964475,"uuid":"305031141","full_name":"BlackGlory/uid","owner":"BlackGlory","description":"🌳 Web-friendly microservice for generating unpredictable UIDs.","archived":false,"fork":false,"pushed_at":"2024-09-24T12:27:49.000Z","size":1277,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-01T17:18:04.487Z","etag":null,"topics":["docker-image","esm","microservice","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/blackglory/uid","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/BlackGlory.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-18T05:40:56.000Z","updated_at":"2024-09-24T12:27:53.000Z","dependencies_parsed_at":"2023-02-19T00:30:27.425Z","dependency_job_id":null,"html_url":"https://github.com/BlackGlory/uid","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackGlory","download_url":"https://codeload.github.com/BlackGlory/uid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240018690,"owners_count":19734872,"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":["docker-image","esm","microservice","nodejs","typescript"],"created_at":"2025-01-01T17:18:05.688Z","updated_at":"2026-04-13T23:32:39.805Z","avatar_url":"https://github.com/BlackGlory.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UID\nAn UUID generator with HTTP.\n\n## Install\n### Install from source\n```sh\ngit clone https://github.com/BlackGlory/uid\ncd uid\nyarn install\nyarn build\nyarn bundle\nyarn --silent start\n```\n\n### Build from source\n```sh\ngit clone https://github.com/BlackGlory/uid\ncd uid\nyarn install\nyarn build\nyarn docker:build\n```\n\n### Recipes\n#### docker-compose.yml\n```yaml\nversion: '3.8'\n\nservices:\n  uid:\n    image: 'blackglory/uid'\n    restart: always\n    ports:\n      - '8080:8080'\n```\n\n## API\n### generate Nano ID\n`GET /nanoid`\n\nReturn a Nano ID as a text.\n\n#### Example\n##### curl\n```sh\ncurl http://localhost:8080/nanoid\n```\n\n##### JavaScript\n```js\nawait fetch('http://localhost:8080/nanoid')\n  .then(res =\u003e res.text())\n```\n\n### generate UUID\n`GET /uuid`\n\nReturn a uuid as a text.\n\n#### Example\n##### curl\n```sh\ncurl http://localhost:8080/uuid\n```\n\n##### JavaScript\n```js\nawait fetch('http://localhost:8080/uuid')\n  .then(res =\u003e res.text())\n```\n\n## Environment variables\n### `UID_HOST`, `UID_PORT`\nThe environment variables`UID_HOST`and`UID_PORT`can be used to set the address and port\nthat the server listens to.\nThe default values are `localhost` and `8080`.\n\n## Clients\n- JavaScript/TypeScript(Node.js, Browser): \u003chttps://github.com/BlackGlory/uid-js\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Fuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackglory%2Fuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Fuid/lists"}