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

@zolomedia/bifrost-client

v1.7.104

Published

Browser client for zBifrost — the WebSocket bridge that turns JSON events from a zOS server into live DOM. Thin bootstrap + server-controlled core.

Readme

zBifrost Client

The browser client for zBifrost — the WebSocket bridge between a zOS Python server and the browser. It turns JSON events streamed from a zOS server into live DOM, with no application code of its own.

What it is

A thin bootstrap (bifrost_client.js, ~190 lines) that:

  1. Reads server config injected into the page (<script id="zui-config">)
  2. Opens a WebSocket to the zOS server
  3. Receives connection_info carrying the core module URL
  4. Dynamically imports bifrost_core.js (server-controlled version)
  5. Hands off — all rendering is driven by what the server sends

The server controls what the client loads. The client controls nothing about your app.

What it is not

There is no routing logic, no .zolo parsing, no RBAC, no business logic, and no secrets. The JS receives JSON events from Python and creates DOM elements. That is the entire job. See docs/SECURITY.md for the trust boundary.

Structure

bifrost_client.js       — thin bootstrap (~190 lines), hardcoded in the page <head>
bifrost_core.js         — full WebSocket client, loaded dynamically at runtime
L1_Foundation/          — WebSocket connection, constants, config, bootstrap, registries
L2_Handling/            — message handling, renderers, cache, navigation, zvaf, hooks
L3_Abstraction/         — orchestrators (navbar, wizard gate, session)
L4_Orchestration/       — rendering facade, renderer/manager registries, lifecycle
zSys/                   — DOM utils, theme utils, accessibility, validation, encoding
syntax/                 — Prism.js grammars for .zolo / zUI / zSchema / zSpark / zEnv

Usage

The page loads the bootstrap and instantiates it; the server injects the config:

<script src="https://cdn.jsdelivr.net/gh/ZoloAi/[email protected]/bifrost_client.js"></script>
<script>
  window.bifrostClient = new BifrostClient(null, { autoConnect: true });
</script>

The server injects <script id="zui-config" type="application/json"> with the WebSocket config, zBlock, zVaFile, zVaFolder, and pre-built nav HTML, and sends connection_info.bifrost_core_url over the socket to select the core build.

Pinning & CDN

Releases are git tags consumed via jsDelivr. Pin an exact tag in production:

<script src="https://cdn.jsdelivr.net/gh/ZoloAi/[email protected]/bifrost_client.js"></script>

The matching bifrost_core.js version is chosen server-side (see the zOS bridge connection_info.bifrost_core_url) — bump both together on each release. For a CDN other than jsDelivr, pass coreOriginAllowlist (see docs/SECURITY.md).

Documentation

| Guide | What it covers | |-------|----------------| | docs/ARCHITECTURE.md | Bootstrap/core split, L1–L4 + zSys layers, registries, lazy loading | | docs/PROTOCOL.md | The wire protocol from the client's side: connection_info, render_chunk + opcode decoding, the PROTOCOL_EVENTS vocabulary, message flow | | docs/RENDERERS.md | The renderer model, the registry, how to add a renderer, the HTML-escape SSOT | | docs/SECURITY.md | Trust boundary, XSS escaping SSOT, core-import origin pinning, session-cookie handling |

The server-side zBifrost mechanism (render-opcode encoding, auth, chunking) is documented in the zOS/zGuard repos — it is intentionally not shipped here. This repo documents only the open, browser-side renderer.

License

MIT — see LICENSE