Skip to main content

Built and signed on GitHub Actions

A capability system for Willow protocols. https://willowprotocol.org/specs/meadowcap

This package works with Bun, Cloudflare Workers, Node.js, Deno, Browsers
JSR Score
82%
Published
4 weeks ago (0.6.3)

A capability system for use with the Willow General Purpose Sync Protocol, conformant with the Meadowcap specification.

In Willow, a namespace is a self-contained data space with three dimensions: time, path, and subspace. Data entries correspond to points within this three dimensional space.

This capability system enforces boundaries on who gets to read and write what data in a Willow namespace. Read or write access can be bestowed, delegated to others, or further restricted within a given three dimensional product.

Willow namespaces can be communal or owned, and the subspace or namespace signature scheme will be used for signing and verifying, respectively.

This system is meant to be used in tandem with Willow, and must be configured to use many of the same parameters (e.g. namespace signature scheme, payload digest encoder) as its parent Willow instance. These parameters can be provided via a MeadowcapParams object to construct a Meadowcap instance, which will then give you access to lots of useful methods and hopefully not have to think about those parameters anymore.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @earthstar/meadowcap

Import symbol

import * as mod from "@earthstar/meadowcap";

Add Package

npx jsr add @earthstar/meadowcap

Import symbol

import * as mod from "@earthstar/meadowcap";

Add Package

yarn dlx jsr add @earthstar/meadowcap

Import symbol

import * as mod from "@earthstar/meadowcap";

Add Package

pnpm dlx jsr add @earthstar/meadowcap

Import symbol

import * as mod from "@earthstar/meadowcap";

Add Package

bunx jsr add @earthstar/meadowcap

Import symbol

import * as mod from "@earthstar/meadowcap";