Liking cljdoc? Tell your friends :D

Changelog

0.1.1 (2026-12-01)

The first release of the official libraries for the Pebble Stream Open Spreadsheet Format (PSOSF). Version 0.1.0 was never completed: its publishing stopped part-way, and registries never accept a version twice, so the first complete release is 0.1.1. Use 0.1.1 or later.

Reading, writing and classifying

  • Read and write PSOSF archives, treating every archive as untrusted input: entries are read in memory only, with limits on entry count, size, total size and compression ratio, and path traversal, reserved names and duplicate entries are refused.
  • Classify an archive at one of three levels: invalid; valid, well-formed and convertible to Excel; or compatible, also passing every Pebble Stream check that needs no compilation (the function allow-list, references outside the spreadsheet, directive names).
  • The function allow-list is Pebble Stream's published list of 135 supported spreadsheet functions, each with the first runtime version that supports it, checked by default.
  • Field escaping (psosf: formulas, apostrophe-escaped text), canonical writing, and reading of version 1.0 archives.
  • Character and length rules: no control characters, no field over Excel's 32,767-character limit, no Unicode direction controls outside data values, strict UTF-8, and warnings for names that mix Latin, Cyrillic or Greek letters.
  • psosf.model: build, traverse and edit archives as plain Clojure data.

Diffs and patches

  • diff compares two archives as spreadsheets: columns matched by header, rows aligned so an insertion is one change, formulas compared relative to their own cell.
  • A diff is complete, versioned data: patch applies it to reproduce the second archive, refusing when the first isn't the archive it was made from, and summary and report turn it into text for people.
  • bb diff, bb summarize and bb patch; diff, summarize and patch in every language.

PebbleScript checks

  • The directive registry, with every directive's signature, exclusions, requirements, execution order and status.
  • A PebbleScript directive parser, with both escape styles and warnings for ambiguous backslashes.
  • bb check: one report of structural, directive and worksheet-rule errors, with a suggested fix for each, as text for people or JSON (--json) for scripts and AI agents (formatReport in JavaScript), including header arguments that don't match a header, formulas in transformed columns, repeated directives, join with outer-join, cycles between worksheets, and replacements for deprecated directives.

Signatures

  • Verify and sign archives with Ed25519 over the archive's digest list, in author and approver roles, with key custody (device or service) and an approver custody policy.
  • Two-step signing for keys the library never holds: a key service, a hardware key, the Zen service.
  • bb verify: check a signed archive against the signers' key records.

Languages and platforms

  • Clojure and Java: com.pebblestream/psosf and com.pebblestream/psosf-directives. The Java class com.pebblestream.psosf.Psosf covers every operation with ordinary Java collections in and out, and is tested from Java in CI.
  • JavaScript and TypeScript: @pebblestream/psosf and @pebblestream/psosf-directives, for Node and browsers, with TypeScript types.
  • C: libpsosf, a native shared library with a JSON interface, for Linux (x64, ARM64), macOS (x64, ARM64) and Windows (x64).
  • Python: pebblestream-psosf, on libpsosf.
  • C# and .NET: PebbleStream.Psosf on NuGet, running the shared Clojure code on ClojureCLR, with Ed25519 from BouncyCastle; the directive checks are not yet included.
  • Java on Maven Central: both libraries are published there, signed, with sources jars, so Maven and Gradle need no extra repository.
  • One implementation, written in Clojure and compiled for each platform, so every language applies exactly the same rules.

Assurance

  • A language-neutral conformance suite of 45 cases and 9 signature cases, which every language passes, and a JSON Schema of the API contract.
  • Fuzzing on every build and nightly, on the JVM and in JavaScript, plus coverage-guided fuzzing of the JVM readers and differential fuzzing, in which .NET and the native library must agree with the JVM on thousands of generated inputs. Fuzzing found five bugs before release, all fixed: a stack overflow on deeply nested JSON, a regular expression built from a test's name, a directory entry that slipped past the checks, version 1.0 archives accepting tests and writing back without a name, and JSON integers too large to be read the same on every platform (now limited to ±(2⁵³ − 1)).
  • Browser tests in Chromium, Firefox and WebKit, and native tests on all five platforms.

Can you improve this documentation? These fine people already did:
Bediako George & Claude
Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close