npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@muze-labs/solid-workspace

v0.2.2

Published

Source-aware OLDMed working set over local and Solid graph resources.

Readme

@muze-labs/solid-workspace

Source-aware workspace and collection layer over OLDMed graph resources. It should stay independent from SimplyFlow.

Local-first logical resources are implemented with native OLDM working graphs, Turtle persistence, and explicit replica sync. Cross-tab ordering and conditional remote writes remain outside the current contract.

Solid Workspace loads OLDMed data from local and Solid resource/container sources, keeps track of where objects came from, exposes small collection handles for source-aware saves, and loads resource graphs into one OLDM context.

The design is local-first: PWA-style apps should be able to open local graph resources, keep working offline, and sync with Solid resources when network and authorization return.

The first local source factories are local.memory() and local.indexedDB(). resource(id, { local, remote }) groups local and Solid replicas as one app-facing logical resource. graph.resource() exposes the lower-level source contract for custom storage adapters, and solid.resource() names Solid resources. workspace.add() composes one factory-created workspace part or an array of parts and returns the same workspace for chaining.

workspace.open('notes'), workspace.graph('notes'), workspace.createIn('notes', object), and workspace.sync('notes') are the intended local-first path. workspace.open() is tolerant by default: remote source failures become source status while local sources keep the app usable. workspace.load() remains strict for lower-level callers.

HTTP failures from adapters may carry a numeric status directly on error.status or on error.cause.status; a direct status takes precedence. 401/403 report auth-needed, other HTTP failures (including 412 conflicts) report error, and failures without a status report offline. The original error remains available to the caller. This classification does not trigger retries or change write policy.

It does not authenticate, parse RDF, expose filesystem operations, or bind to SimplyFlow. Those concerns stay in Metro-OIDC, Metro-OLDM/OLDM, JSFS-Solid, and SimplySolid.

Docs:

RDF values

Property names remain prefixed, such as schema$name. Class values in a and literal datatypes in .type are full IRIs. Use full IRIs in plain-object data and collection shape targets, for example shape('https://schema.org/Person', {...}). Expand a prefixed constant once with its OLDM context before using it in filters. The workspace preserves HTTP/HTTPS namespace identity and does not rewrite application vocabulary. OLDM graph write helpers still accept prefixed inputs where documented.

Editable logical resources can declare scalarPredicates as full predicate IRIs. Their sync uses modification timestamps and lm:deleted on deleted subjects, commits locally before writing remotely, and protects newer admitted saves from stale snapshots. See Replica save contract for behavior, evidence, and the limits on cross-tab and remote concurrency.

Working graphs and snapshots

ws.context is the live OLDM context; pass context to workspace() to supply one. ws.graph(sourceId) returns a source graph, and ws.graph(resourceId) returns the local working graph when available. Collections return those same source-owned nodes. OLDM owns RDF identity, graph lookup, and fact provenance; Solid Workspace owns resource metadata and persistence.

Saving a subject writes its whole source graph. Storage adapters exchange Turtle; there is no graph-document format or migration API. After a successful reload or replica sync, read fresh nodes from the graph or collection before editing. Stale nodes are rejected by save().

Implementation structure

workspace.mjs composes the source registry, working graph owner, storage I/O, write lifecycle, replica lifecycle, shared operation queue, and status owner. The boundaries and their ordering contracts are described in the refactor guide.

Edit ownership

ownedPredicates declares full predicate IRIs whose named targets belong to the same edit as their root subject. Only the root needs dcterms:modified; its revision selects declared scalars throughout the group. Equal timestamps select one entire group revision deterministically, with deletion winning a tie. Unknown facts remain additive. Ownership links are not automatically scalar: include them in scalarPredicates too if edits can replace or remove those links. Nested ownership is supported; multiple owners and cycles are rejected, including conflicts across replicas. Shared references must not be declared as ownership. This policy does not delete linked subjects or prune unreferenced snapshots.

Graph merging retains non-conflicting prefix declarations from every source. For a reused prefix label, the first source's mapping wins; imported facts keep their full IRI meaning. Writers omit declarations unused by the merged output.