{"id":46067055,"url":"https://github.com/fluo10/caretta-id","last_synced_at":"2026-03-14T01:57:54.697Z","repository":{"id":317930288,"uuid":"1069384018","full_name":"fluo10/caretta-id","owner":"fluo10","description":"Human-friendly id for personal use distributed system","archived":false,"fork":false,"pushed_at":"2026-03-10T22:58:59.000Z","size":293,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-11T04:14:59.136Z","etag":null,"topics":["human-friendly","id","unique-id","uuid"],"latest_commit_sha":null,"homepage":"https://docs.rs/caretta-id/latest/caretta_id/","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/fluo10.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-03T21:06:41.000Z","updated_at":"2026-03-10T22:59:03.000Z","dependencies_parsed_at":"2025-10-08T05:43:29.630Z","dependency_job_id":null,"html_url":"https://github.com/fluo10/caretta-id","commit_stats":null,"previous_names":["fluo10/tripod-id","fluo10/mtid","fluo10/caretta-id"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/fluo10/caretta-id","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluo10%2Fcaretta-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluo10%2Fcaretta-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluo10%2Fcaretta-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluo10%2Fcaretta-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluo10","download_url":"https://codeload.github.com/fluo10/caretta-id/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluo10%2Fcaretta-id/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30480097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T23:57:05.347Z","status":"ssl_error","status_checked_at":"2026-03-13T23:56:58.046Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["human-friendly","id","unique-id","uuid"],"created_at":"2026-03-01T12:35:11.581Z","updated_at":"2026-03-14T01:57:54.687Z","avatar_url":"https://github.com/fluo10.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# caretta-id\n\n\u003c!-- cargo-rdme start --\u003e\n\nA human-friendly 7 characters identifier format (e.g. `123abcd`).\n\nFor a language agnostic specification of the caretta-id format, see [SPECS.md](https://github.com/fluo10/caretta-id/blob/main/SPECS.md)\n\n## Quick Start\n```rust\nuse caretta_id::CarettaId;\n\nlet id = CarettaId::random();\nprintln!(\"{}\", id); // e.g. \"123abcd\"\n```\n\n## Why caretta-id?\n\nTraditional identifier systems face challenges in distributed environments:\n\n- **Sequential numbers** (like GitHub issue numbers) cause collisions in distributed systems\n- **UUIDs** are too long and not human-friendly\n- **Short hashes** (like Git commit hashes) lack standardization\n\ncaretta-id bridges the gap between human readability and technical requirements.\n\n## Installation\n\nAdd this to your `Cargo.toml`:\n```toml\n[dependencies]\ncaretta-id = \"0.12.0\"\n\n# With optional features\ncaretta-id = { version = \"0.11.0\", features = [\"arbitrary\", \"serde\", \"rusqlite\", \"sea-orm\", \"prost\", \"redb\", \"schemars\"] }\n```\n\n### For no_std Environments\n\nThis crate support `no_std`.\nFor `no_std` environment, you'll need to disable default features.\n```toml\n[dependencies]\ncaretta-id = { version = \"0.12.0\", default-features = false }\n```\n\n## Features\n\n- **Human-friendly**: Easy to read, type, and communicate\n- **Collision-resistant**: Sufficient entropy for personal distributed systems\n- **Compact**: Shorter than UUIDs while maintaining uniqueness\n- **Type-safe**: Rust implementation with strong typing\n- **Multiple integrations**: Support for serde, rusqlite, sea-orm, and protobuf\n\n### Optional Feature Flags\n\n- `arbitrary`: `arbitrary::Arbitrary` support for fuzzing tests.\n- `serde`: Serialization/deserialization support\n- `rusqlite`: SQLite database integration\n- `sea-orm`: SeaORM ORM integration  \n- `prost`: Protocol Buffers support\n- `redb`: `redb` integration\n- `schemars`: JSON Schema support\n\n## Examples\n```rust\nuse caretta_id::CarettaId;\n// Generate random caretta-id\nlet caretta_id = CarettaId::random();\n\n// e.g. `123abcd`\nprintln!(\"'{}'\", caretta_id);\n\n// Parse from string\nlet valid_id: CarettaId = \"012atvw\".parse()?;\n\n// When decoding from BASE32, ambiguous characters (1/l/I, 0/o, v/u) are treated as 1, 0 and v respectively, so they do not cause errors.\nlet also_valid_id: CarettaId = \"ol2atuw\".parse()?;\nassert_eq!(valid_id, also_valid_id);\n\n// Convert to/from integer\nlet num: u64 = valid_id.into();\nlet id_from_int: CarettaId = num.try_into()?;\nassert_eq!(valid_id, id_from_int);\n\n// Lossy conversion from oversized int is allowed.\nlet id_from_overflowed_int = CarettaId::from_u64_lossy(CarettaId::CAPACITY + num);\nassert_eq!(valid_id, id_from_overflowed_int);\n\n```\n\n\u003c!-- cargo-rdme end --\u003e\n\n## License\n\nLicensed under either of:\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE))\n- MIT License ([LICENSE-MIT](LICENSE-MIT))\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluo10%2Fcaretta-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluo10%2Fcaretta-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluo10%2Fcaretta-id/lists"}