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

@lichtblick/test-builders

v1.0.1

Published

Test utilities and builders for Lichtblick projects

Readme

@lichtblick/test-builders

Test utilities and builders for Lichtblick projects.

Installation

npm install --save-dev @lichtblick/test-builders
# or
yarn add -D @lichtblick/test-builders

Usage

import { BasicBuilder } from "@lichtblick/test-builders";

// Generate random test data
const randomString = BasicBuilder.string({ length: 10 });
const randomNumber = BasicBuilder.number({ min: 1, max: 100 });
const randomDateTime = BasicBuilder.datetime();
const randomDate = BasicBuilder.date();
const randomBoolean = BasicBuilder.boolean();
const randomFloat = BasicBuilder.float(1, 100);
const randomBigInt = BasicBuilder.bigInt(BigInt(1), BigInt(100));
const randomArray = BasicBuilder.multiple(() => BasicBuilder.string(), 5);
const randomSample = BasicBuilder.sample(["option1", "option2", "option3"]);
const randomMap = BasicBuilder.genericMap(() => BasicBuilder.number());
const randomDict = BasicBuilder.genericDictionary(() => BasicBuilder.boolean());

Available Builders

  • BasicBuilder - Basic data types (strings, numbers, dates, booleans, maps, arrays, etc.)
    • datetime() - Generate random datetime strings (ISO 8601 format)
    • date() - Generate random Date objects
    • boolean() - Generate random booleans
    • number() - Generate random integers with configurable min/max
    • float() - Generate random floats with configurable min/max
    • bigInt() - Generate random bigints with configurable min/max
    • string() - Generate random strings with configurable length, charset, and capitalization
    • stringMap() - Generate random Map<string, string> with configurable count and key/value options
    • genericMap() - Generate random Map<string, T> with custom value generator
    • genericDictionary() - Generate random Record<string, T> with custom value generator
    • multiple() - Generate arrays of random values using a factory function
    • numbers() - Generate arrays of random numbers
    • strings() - Generate arrays of random strings with configurable options
    • sample() - Pick random sample(s) from array or object

Utilities

defaults

Merge partial props with fallback props.

callPrivateMethod

Helper function to call private methods for testing purposes.

Development

Git Flow

This project follows Git Flow branching strategy:

  • main - Production releases
  • develop - Integration branch
  • feature/* - New features
  • release/* - Release preparation
  • hotfix/* - Production hotfixes

See Git Flow Guide for details.

Scripts

# Development
yarn build          # Build the package
yarn test           # Run tests
yarn lint           # Lint and fix
yarn format         # Format code
yarn validate       # Run all checks

CI/CD

  • ✅ Automated testing on push
  • 📦 Auto-publish to NPM on release
  • 🔄 Auto-merge main → develop
  • 📊 Code coverage reporting

Create releases via GitHub Actions UI or scripts. See Git Flow Guide.

Contributing

  1. Fork the repository
  2. Create feature branch: git checkout -b feature/my-feature develop
  3. Commit: git commit -m "feat: add feature"
  4. Push: git push origin feature/my-feature
  5. Open PR to develop

License

MPL-2.0 - Copyright (C) 2023-2025 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)