Workpads · Codec and transport

A URL can carry the record

Workpads encodes record data into a URL fragment such as the #1pa/ scheme described by the current standard README. A fragment is handled by the browser and is not included in the HTTP request for the page itself.

Workpads · Codec and transport

The codec is the interoperability boundary

The normative codec describes frame assembly, field presence, compression, base64url output, and decoding. Compact representation is intended to support messaging and QR transport. The standard includes worked examples, size characteristics, and compatibility guidance.

Workpads · Implementation

The record travels as a link

The public @workpads/codec package validates a record, encodes it into a URL fragment, and decodes it back into a record. The package currently declares v0.1.0 and Node.js 14 or later; the Workpads Standard README lists the package and the KaiOS and web apps as reference implementations.

const { encode, decode, validate } = require('@workpads/codec');

const record = {
  job: 'Inspect equipment',
  date: '2026-05-12',
  actions: [{ title: 'Complete inspection' }],
};

const check = validate(record);
if (!check.valid) throw new Error(check.errors.join(', '));

const link = encode(record);
const restored = decode(link);

This example follows the public package API. The implementation uses DEFLATE compression and base64url encoding; its wire tag identifies the format version and codebook.

Read the codec package documentation, inspect the codec implementation, or compare the normative codec section.

Workpads · Codec and transport

Follow the version tags

The repository includes pads-v1, legacy bitpad-v1 material, and forward design for pads-v2 (#1pv/). These are distinct format generations. An implementation should state which tags it emits and accepts, and should not imply compatibility unless cross-implementation evidence supports it.

Workpads · Version notes

These version numbers describe different things

The standard README says Workpads Standard v0.1 is live and lists the codec as pads-v1 v2.0. The codec section itself identifies as v2.2 and covers pads-v1 plus native pads-v2 support. The npm package version is 0.1.0. Those numbers belong to separate artifacts; reconcile their relationship before building a single release index.

Sources: standard README, codec specification, and package metadata.

Workpads · Codec and transport

Links are portable; delivery is not guaranteed

A long URL may be altered or truncated by a messaging channel. A recipient needs a compatible decoder. The URL carries data, but it does not guarantee identity, confidentiality, archival, delivery receipts, or synchronization.