Skip to content

Pith

Standard library interfaces.

Repository: github.com/rhizome-lab/pith

Overview

Pith provides capability-based, async-first interfaces inspired by WASI, designed to be implementable across runtimes.

Crates

CrateDescriptionWASI Equivalent
pith-clocksWall clock, monotonic clockwasi:clocks
pith-cliArgs, environment, stdiowasi:cli
pith-filesystemFiles, directorieswasi:filesystem
pith-httpHTTP client/serverwasi:http
pith-ioStreams, pollingwasi:io
pith-randomSecure and insecure RNGwasi:random
pith-socketsTCP, UDP, DNSwasi:sockets

Design Principles

  • Capability-based: Access is granted through capability objects, not ambient authority
  • Async-first: Operations that may block return futures
  • Minimal: Define interfaces, not implementations
  • Portable: Implementable on native, WASM, and embedded targets