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

solid-shim

v0.1.3

Published

Minimal Solid data browser using solid-panes-jss with solid-oidc authentication

Readme

solid-shim

Minimal Solid data browser - a lightweight alternative to mashlib using the JSS authentication stack.

Features

  • Same interface as mashlib - Drop-in replacement for testing and migration
  • @view support - Self-describing JSON-LD views (W3C proposal)
  • Minimal authentication - Uses solid-oidc (~600 lines) instead of @inrupt/solid-client-authn-browser (~150KB)
  • Lightweight - Smaller bundle size with fewer dependencies

Quick Start

<!DOCTYPE html>
<html>
<head>
  <title>My Solid App</title>
</head>
<body id="PageBody">
  <header id="PageHeader"></header>
  <main id="DummyUUID"></main>
  <footer id="PageFooter"></footer>

  <script src="https://unpkg.com/solid-shim/dist/solid-shim.min.js"></script>
  <script>
    panes.runDataBrowser()
  </script>
</body>
</html>

@view - Self-Describing JSON-LD

solid-shim supports the @view proposal for JSON-LD, allowing data to specify its own renderer.

<!DOCTYPE html>
<html>
<body>
  <script type="application/ld+json">
  {
    "@context": { "schema": "http://schema.org/" },
    "@type": "schema:Person",
    "@view": "https://jsonos.com/examples/src/panes/person.js",
    "schema:name": "Marie Curie",
    "schema:jobTitle": "Physicist"
  }
  </script>

  <script src="https://jsonos.com/browser/dist/mashlib.min.js"></script>
  <script>
    solidShim.renderView()
  </script>
</body>
</html>

When renderView() is called, solid-shim:

  1. Finds the JSON-LD on the page
  2. Parses it into the RDF store
  3. Loads the pane module from the @view URL
  4. Calls the pane's render(subject, context) function

renderView Options

solidShim.renderView({
  target: '#myDiv',        // Element or selector to render into
  subject: '#me',          // Subject ID to render (default: @id from JSON-LD)
  fallbackPane: myPane     // Pane to use if @view fails or is missing
})

Pane Module Format

Pane modules are ES modules with a render function:

export default {
  name: 'person',
  render(subject, context) {
    const store = context.session.store
    const div = document.createElement('div')
    // ... render logic
    return div
  }
}

See the W3C proposal for more details.

Global Objects

solid-shim exposes the same globals as mashlib:

  • $rdf - RDF library (rdflib)
  • panes - Solid panes with runDataBrowser() function
  • SolidLogic - Authentication and store utilities
    • SolidLogic.authn - Authentication logic
    • SolidLogic.authSession - Session management
    • SolidLogic.store - RDF store
    • SolidLogic.solidLogicSingleton - Singleton instance
  • solidShim - @view renderer
    • solidShim.renderView(options) - Render JSON-LD using @view
    • solidShim.parseJsonLdToStore(jsonld, baseUri, store) - Parse JSON-LD into RDF store
  • mashlib.versionInfo - Version information

Development

git clone https://github.com/JavaScriptSolidServer/solid-shim
cd solid-shim
npm install
npm start

Build

npm run build

Architecture

solid-shim
├── solid-panes-jss (panes and UI components)
│   ├── solid-ui-jss (UI widgets)
│   │   └── solid-logic-jss (core logic)
│   │       └── solid-oidc (authentication)
│   └── various pane packages
└── rdflib (RDF processing)

Credits

This is a minimal alternative to SolidOS/mashlib using the JSS authentication stack:

License

MIT