{"id":23108918,"url":"https://github.com/archishmansengupta/tinyid","last_synced_at":"2025-04-03T23:14:55.639Z","repository":{"id":225692753,"uuid":"766544155","full_name":"ArchishmanSengupta/tinyid","owner":"ArchishmanSengupta","description":"A super tiny, \u003c80 LoC, high performant fast Go unique string ID generator","archived":false,"fork":false,"pushed_at":"2024-03-03T17:07:13.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T11:11:31.024Z","etag":null,"topics":["golang","id-generator","tinyid","uuid"],"latest_commit_sha":null,"homepage":"","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/ArchishmanSengupta.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}},"created_at":"2024-03-03T15:03:21.000Z","updated_at":"2024-11-23T15:39:02.000Z","dependencies_parsed_at":"2024-03-03T19:26:17.412Z","dependency_job_id":"40846bf0-a68b-4da2-8288-f39bb6f9c35c","html_url":"https://github.com/ArchishmanSengupta/tinyid","commit_stats":null,"previous_names":["archishmansengupta/tinyid"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArchishmanSengupta%2Ftinyid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArchishmanSengupta%2Ftinyid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArchishmanSengupta%2Ftinyid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArchishmanSengupta%2Ftinyid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArchishmanSengupta","download_url":"https://codeload.github.com/ArchishmanSengupta/tinyid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092393,"owners_count":20882218,"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":["golang","id-generator","tinyid","uuid"],"created_at":"2024-12-17T01:31:54.205Z","updated_at":"2025-04-03T23:14:55.617Z","avatar_url":"https://github.com/ArchishmanSengupta.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"##  tinyid\nA super tiny, high performant fast Go unique string ID generator:\n\n- *Safe*: Utilizes cryptographically strong random APIs to ensure security.\n- *Compact*: Employs a larger alphabet than UUID ```(A-Za-z0-9_-)```, potentially reducing ID size from 36 to 31.\n- *Efficient*: Benchmarks at approximately ```489.3 ns/op``` for generating IDs.\n- *100% TC*: Achieves full test coverage.\n- *Small*: \u003c80 LoC.\n## Benchmark:\n```\ngoos: darwin\ngoarch: arm64\npkg: github.com/ArchishmanSengupta/tinyid\nBenchmarkNewTinyID-10         \t 2419586\t       489.3 ns/op\nBenchmarkGenerateTinyID-10    \t 2457799\t       489.7 ns/op\nPASS\nok  \tgithub.com/ArchishmanSengupta/tinyid\t3.535s\n```\n\n## Test Coverage:\n```\ngo test -v\n=== RUN   TestGenerateTinyID\n--- PASS: TestGenerateTinyID (0.00s)\n=== RUN   TestNewTinyID\n--- PASS: TestNewTinyID (0.00s)\nPASS\nok  \tgithub.com/ArchishmanSengupta/tinyid\t0.420s\n```\n\n## Use:\n```go\nid, err := tinyid.NewTinyID()\n\tif err != nil {\n\t\tfmt.Print(\"some problem\")\n}\nfmt.Println(\"Generated ID:\", id)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchishmansengupta%2Ftinyid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchishmansengupta%2Ftinyid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchishmansengupta%2Ftinyid/lists"}