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

@selvajs/solve

v1.0.0-beta.9

Published

One owner for the Selva solve flow — input change to solve result, on both sides of the wire, with no transport and no UI

Readme

@selvajs/solve

One owner for the solve flow — from an input change to a solve result, on both sides of the wire, with no transport and no UI.

Before this package the solve flow was scattered across four packages and owned by none of them, so both apps hand-wrote a solve coordinator — and one of them ended up serving results from the wrong definition out of its cache.

Layout

shared/   the vocabulary both halves speak — SolveResult, SolveFn, SolveInput, input keying
client/   form state machine, auto/manual decision, throttle, result memo, driver seam
server/   solve pipeline (tree build → solve → serialize → envelope), caches, single-flight

client/ and server/ both depend on shared/, and never on each other. See src/server/README.md for how that's enforced.

See src/client/README.md for the session, the driver seam, and how to write a transport; src/server/README.md for the pipeline and the cache tiers.

What it must never know

  • No UI framework. No Svelte, no runes, no DOM. client/ is a state machine, not a component.
  • No renderer. No three. SolveResult<TMesh> never inspects a mesh — the app that parses a response into THREE.Object3D[] is the only place that knows the concrete type. This is what lets a headless CLI solve without dragging in a parse layer. See src/client/README.md for how the result memo handles mesh ownership without knowing what a mesh is.
  • No authorization, orgs, projects, or share links. App policy.
  • No HTTP. client/ stops at a SolveFn; server/ stops at a SolveOutcome. Mapping either to a status code is the app's job.

No root barrel — on purpose

@selvajs/solve exports ./shared, ./client and ./server. There is deliberately no . export: a root barrel re-exporting both halves would let a browser bundle reach server code — and server credentials — through one innocent-looking import, defeating every other guard. Adding one is a boundary change, not a convenience.

import type { SolveResult } from '@selvajs/solve/shared';
import { createSolveSession, createRequestResponseDriver } from '@selvajs/solve/client';
import { runSolvePipeline } from '@selvajs/solve/server';

@selvajs/server/compute keeps only the HTTP request policy it owns (limits, rate limiting, the SSRF guard, remote-definition fetch) and does not re-export any of this — the two packages are independent.