Skip to content

Cellar v1.0.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 21:08

The first version on npm. Cellar lets JavaScript threads share memory directly: call each other, pass streams of data and wait for each other, without sending messages through postMessage. A small call between two threads takes about 2 µs instead of about 38 µs (Benchmarks); made for the browser, also runs on Node.js 22 and later, no dependencies.

What it contains, one entry, @bottlify/cellar: the cache (openKeeper, createReader, INDEX_FILES, packFile, readSaved), channels (createChannel, openClient, openServer, ChannelClosed, ChannelFailed), doorbells (createDoorbell, openDoorbell, publish, ring, wake, waitFor, waitForAsync, createSpin, deadlineOf, SPIN_MS), rings (createRingMemory, openRing, RingClosed) and journals (createJournalMemory, openJournal).