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

solulab

v0.0.4

Published

Define, run, store and visualise solution laboratories

Downloads

8

Readme

Solulab

npm version License: MIT

A solution laboratory for experimenting with different implementations and test cases.

Quick Start

Installation

# Using npm
npm install -g solulab

# Using bun
bun install -g solulab

# Using yarn
yarn global add solulab

Usage

  1. Create a lab file (e.g., rag.lab.ts):
import { createSolutionLab } from 'solulab';
import { z } from 'zod';

export const lab__rag = createSolutionLab({
  name: 'RAG Implementation',
  description: 'Retrieval-Augmented Generation experiments',

  paramSchema: z.object({
    query: z.string(),
    maxResults: z.number().default(5),
  }),

  resultSchema: z.object({
    answer: z.string(),
    sources: z.array(z.string()),
    confidence: z.number(),
  }),

  versions: [
    {
      name: 'baseline',
      async execute({ query, maxResults }) {
        // Simple implementation
        return {
          answer: 'Paris is the capital of France',
          sources: ['Wikipedia'],
          confidence: 0.95,
        };
      },
    },
    {
      name: 'with embeddings',
      async execute({ query, maxResults }) {
        // Advanced implementation with embeddings
        return {
          answer: 'Paris, the capital of France since 987 AD',
          sources: ['Wikipedia', 'Britannica'],
          confidence: 0.98,
        };
      },
    },
  ],

  cases: [
    {
      name: 'simple question',
      arguments: { query: 'What is the capital of France?' },
    },
    {
      name: 'complex question',
      arguments: { query: 'Why did Rome fall?', maxResults: 10 },
    },
  ],
});
  1. Run your labs:
solulab run

This will execute all versions against all test cases, creating a matrix of results.

  1. View results in the web UI:
bun run dev
# Open http://localhost:5173

Configuration

Create a solulab.config.ts file in your project root:

export default {
  dbPath: '.solulab/solulab.json', // Database file location (using LowDB)
  labGlobs: ['**/*.lab.ts'], // Glob patterns for lab files
};

Features

  • Multiple versions per lab for A/B testing implementations
  • Test cases defined once, run against all versions
  • Type-safe lab definitions with Zod schemas
  • Automatic discovery of lab files
  • Incremental execution - skips already-run combinations
  • Persistent storage for historical data (using LowDB)
  • Web UI for viewing results and comparing runs
  • Side-by-side comparison with diff viewing
  • Zero-config developer experience

Development

This is a unified package that includes:

  • Core utilities (createSolutionLab, discoverLabs)
  • CLI tool for running cases
  • React-based web UI for visualization

Setup

bun install
bun run build

Running Tests

bun test

License

MIT