{"id":50745893,"url":"https://github.com/johanwk/acmeid","last_synced_at":"2026-06-10T20:32:29.069Z","repository":{"id":362927187,"uuid":"1261282965","full_name":"johanwk/acmeid","owner":"johanwk","description":"Compact, self-verifying Crockford-Base32 IDs for ontologies and RDF — library, CLI, and SQLite loadable extension","archived":false,"fork":false,"pushed_at":"2026-06-06T16:01:28.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-06T16:16:27.984Z","etag":null,"topics":["cli","crockford-base32","curie","identifiers","ontology","rdf","sqlite","sqlite-extension"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johanwk.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-06T13:34:38.000Z","updated_at":"2026-06-06T16:10:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/johanwk/acmeid","commit_stats":null,"previous_names":["johanwk/acmeid"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/johanwk/acmeid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanwk%2Facmeid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanwk%2Facmeid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanwk%2Facmeid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanwk%2Facmeid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johanwk","download_url":"https://codeload.github.com/johanwk/acmeid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johanwk%2Facmeid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34170162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","crockford-base32","curie","identifiers","ontology","rdf","sqlite","sqlite-extension"],"created_at":"2026-06-10T20:32:24.811Z","updated_at":"2026-06-10T20:32:29.048Z","avatar_url":"https://github.com/johanwk.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# acmeid\n\nSmall C library, CLI tool, and SQLite loadable extension for minting\nand verifying **ACME Localname IDs** -- short, sortable, checksummed\nlocal identifiers for the localname part of enterprise IRIs.\n\nThe format is:\n\n```\n[PREFIX:] TYPE _ [SLUG5] TIME4 RAND_N CHK1\n```\n\n- `PREFIX` -- optional CURIE-style prefix, e.g. `ex:`. Not part of\n  the checksum; tolerated by `verify`.\n- `TYPE` -- single uppercase ASCII letter, domain-owned.\n- `SLUG5` -- optional 5 lowercase letters derived from the label.\n- `TIME4` -- 4 Crockford Base32 chars: days since 2020-01-01 UTC.\n- `RAND_N` -- N random Crockford Base32 chars (`N` in `[2,8]`, default 4).\n- `CHK1` -- 1 Crockford Base32 check character; the full ID's\n  character values must sum to 0 mod 32.\n\nSee [`docs/spec.org`](docs/spec.org) for the full specification and\n[`docs/recipes.org`](docs/recipes.org) for the OTTR / spine-table\nworkflow that motivated the SQLite extension.\n\n## Build\n\nRequires a C11 compiler and GNU make. The SQLite loadable extension\nalso needs the SQLite development headers (`sqlite3.h` /\n`sqlite3ext.h`) at build time; symbols are still resolved from the\nhost process at load time via the extension loader contract.\n\nInstall the headers with your platform's package manager:\n\n```sh\n# Debian/Ubuntu\nsudo apt install libsqlite3-dev\n# Fedora/RHEL\nsudo dnf install sqlite-devel\n# macOS (Homebrew)\nbrew install sqlite\n# MSYS2/mingw-w64\npacman -S mingw-w64-x86_64-sqlite3\n```\n\nIf the headers live outside the default include path, pass their\nlocation via `CPPFLAGS`, e.g. `make CPPFLAGS=-I/opt/homebrew/include`.\n\n```sh\nmake            # builds libacmeid.a, acmeid CLI, acmeid.{so|dylib|dll}\nmake test       # runs unit, CLI, SQL, and audit tests\nmake install    # /usr/local on POSIX; c:/opt/acmeid on MSYS2\n```\n\n## CLI\n\n```sh\nacmeid mint   -t C                            # bare type\nacmeid mint   -t C -p ex:                  # type + prefix\nacmeid mint   -t C -p ex: -l \"Pitch 1.5 mm\"\nacmeid mint   -t C -p ex: -l \"Pitch\" -n 6  # 6 random chars\nacmeid verify ex:C_pitchABCD1234X\nacmeid batch  -t C -p ex: \u003c labels.txt\n```\n\n## SQLite\n\n```sql\n.load /usr/local/lib/acmeid        -- or:  c:/opt/acmeid/acmeid\nSELECT acme_mint_id('C');\nSELECT acme_mint_id('C','ex:');\nSELECT acme_mint_id('C','ex:','Pitch 1.5 mm');\nSELECT acme_mint_id('C','ex:','Pitch',6);\nSELECT acme_verify_id('ex:C_pitchABCD1234X');\n```\n\n`acme_mint_id` is registered **non-deterministic** on purpose, so it\nmints once per row in an `INSERT ... SELECT`. `acme_verify_id` is\ndeterministic and innocuous, so it works inside `CHECK` constraints,\ngenerated columns, and indexes.\n\n## Security \u0026 privacy\n\n- No network. The library and CLI never open a socket. The audit\n  test in `make test` greps for `socket|connect|getaddrinfo|...`\n  to enforce this.\n- Cryptographic randomness: `BCryptGenRandom` on Windows,\n  `arc4random_buf` on macOS/BSD, `/dev/urandom` elsewhere. No\n  `rand()` / `srand()`.\n- All functions in `src/acmeid.c` are reentrant.\n\n## Install\n\nPre-built bundles for tagged releases are attached to each\n[GitHub Release](../../releases) (see [`.github/workflows/release.yml`](.github/workflows/release.yml)):\n\n- `acmeid-linux-x64.tar.gz`   -- `acmeid`, `acmeid.so`\n- `acmeid-macos-x64.tar.gz`   -- `acmeid`, `acmeid.dylib`\n- `acmeid-windows-x64.zip`    -- `acmeid.exe`, `acmeid.dll`,\n  `install.cmd` (copies both into `c:\\opt\\acmeid\\`)\n- `SHA256SUMS`                -- checksums for the three bundles above\n\nVerify and unpack, then run `install.cmd` on Windows or copy by hand\non POSIX (`acmeid` to `/usr/local/bin`, the shared lib to\n`/usr/local/lib`).\n\n## License\n\nGPLv3 -- see [`LICENSE`](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohanwk%2Facmeid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohanwk%2Facmeid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohanwk%2Facmeid/lists"}