Thicket thicket
cambridge
REPOS 4

W46.2025 · 10–16 NovAll

ocaml-crockford is now available as a public library for encoding and decoding Crockford Base32 identifiers, with optional checksums and random ID generation. A bundled command-line tool and full interface documentation ship alongside the library.

Features

  • Custom random source: The ID generation function accepts an optional random source, so developers can produce deterministic identifiers in tests or use a specific entropy source. When omitted, it falls back to the standard random number generator.

  • Bare identifier output: The bundled roguedoi command now prints the identifier without a hard-coded URL prefix, producing a bare string usable in any context. The command also reports version 1.0.0, matching the package release.

  • Interface documentation: The library now carries full Odoc documentation covering the alphabet, encoding and decoding, checksums, and usage examples. This makes it easier to discover available functions and their parameters without reading source.

Compatibility

  • MIT license: The package is now distributed under the MIT license rather than ISC. No code change is required, but downstream packaging metadata should reflect the new license.