{"id":22281107,"url":"https://github.com/viz-rs/nano-id","last_synced_at":"2025-06-12T03:08:12.379Z","repository":{"id":40655714,"uuid":"355291568","full_name":"viz-rs/nano-id","owner":"viz-rs","description":"Nano ID","archived":false,"fork":false,"pushed_at":"2024-06-02T22:28:26.000Z","size":38,"stargazers_count":12,"open_issues_count":1,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-26T09:48:43.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viz-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","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},"funding":{"github":"fundon"}},"created_at":"2021-04-06T18:28:07.000Z","updated_at":"2024-10-23T19:32:18.000Z","dependencies_parsed_at":"2024-06-02T23:34:48.729Z","dependency_job_id":null,"html_url":"https://github.com/viz-rs/nano-id","commit_stats":{"total_commits":19,"total_committers":4,"mean_commits":4.75,"dds":0.3157894736842105,"last_synced_commit":"2fd2cecc0de147c529c03869c13999b4d151d8e3"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/viz-rs/nano-id","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viz-rs%2Fnano-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viz-rs%2Fnano-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viz-rs%2Fnano-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viz-rs%2Fnano-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viz-rs","download_url":"https://codeload.github.com/viz-rs/nano-id/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viz-rs%2Fnano-id/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259387614,"owners_count":22849747,"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":[],"created_at":"2024-12-03T16:14:25.236Z","updated_at":"2025-06-12T03:08:12.359Z","avatar_url":"https://github.com/viz-rs.png","language":"Rust","funding_links":["https://github.com/sponsors/fundon"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003enano-id\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\n    \u003cstrong\u003eA tiny, secure, URL-friendly, unique string ID generator for Rust\u003c/strong\u003e\n  \u003c/p\u003e\n  \u003cp\u003eInspired by \u003ca href=\"https://github.com/ai/nanoid\"\u003enanoid\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- Docs.rs docs --\u003e\n  \u003ca href=\"https://docs.rs/nano-id\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square\"\n      alt=\"Docs.rs docs\" /\u003e\u003c/a\u003e\n  \u003c!-- Crates version --\u003e\n  \u003ca href=\"https://crates.io/crates/nano-id\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/v/nano-id.svg?style=flat-square\"\n    alt=\"Crates.io version\" /\u003e\u003c/a\u003e\n  \u003c!-- Downloads --\u003e\n  \u003ca href=\"https://crates.io/crates/nano-id\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/d/nano-id.svg?style=flat-square\"\n      alt=\"Download\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## Features\n\n* **Base58**: `ModueSymbhaswnPr123456789ABCDEFGHNRVfgctiUvzKqYTJkLxpZXjQW`, (`123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz`)\n* **Base62**: `ModuleSymbhasOwnPr0123456789ABCDEFGHNRVfgctiUvzKqYTJkLxpZXIjQW`, (`A-Za-z0-9`)\n* **Base64**: `ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`, (`A-Za-z0-9_-`)\n* **Random**: data by [getrandom][]\n* **Alphabet**: custom with `gen!(uid, 64, b\"_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\")`\n\n## Installation\n\n```shell\ncargo add nano-id\n```\n\n## Usage\n\n```rust\nnano_id::base64::\u003c21\u003e();\n\n// Custom ALPHABET\nnano_id::gen!(\n    uid,\n    64,\n    b\"_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n);\n\nuid::\u003c21\u003e();\n```\n\n## License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n\n[getrandom]: https://github.com/rust-random/getrandom\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviz-rs%2Fnano-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviz-rs%2Fnano-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviz-rs%2Fnano-id/lists"}