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

@ylsoo/core

v2.0.1

Published

Enterprise cross-platform SDK for Ylsoo projects

Readme

npm version License: MIT TypeScript Ready Zero Defaults

🚀 Overview

@ylsoo/core v2.2 introduces tier-1 routing capabilities and highly rigorous A/B target evaluation. Everything operates entirely on native standard technologies, avoiding the devastating payload bloat of common frameworks.

📦 Installation

npm i @ylsoo/core

🛠️ V2.2 Enterprise Architecture Models

1. 🛣️ Professional DOM Router (ylsoo.router)

An incredibly capable HTML5 Frontend matcher mimicking heavily advanced Vue/React dynamics.

  • Dynamic Constraints: Extracts /:id/ params cleanly into variables.
  • Middleware Control: Provides beforeEach() to easily intercept and blockade navigations dynamically.
  • Click Hijacking: Automatically binds to HTML5 PushState and catches data-route click events!
// 1. Build an Authentication Middleware Guard
ylsoo.router.beforeEach((to, from, next) => {
  if (to.includes('admin') && !loggedIn) next(false); // Halt routing
});

// 2. Configure Dynamic Deep Routes
ylsoo.router.add('/users/:id/billing', (route) => {
  console.log('Loading Billing For User:', route.params.id);
});

ylsoo.router.start();

2. 🎛️ Deterministic A/B Flags (ylsoo.feature)

Not just a switch. A true matrix evaluation engine utilizing cryptographic hashing to guarantee specific users continuously load the exact same "random" feature buckets.

// Force the dashboard to turn on ONLY for:
// 1) Exactly 25% of traffic
// 2) Users whose attributes dictate they live in the UK
ylsoo.feature.setFlag('beta_dashboard', {
  enabled: true,
  rolloutPercentage: 25,
  conditions: { country: 'UK' }
});

// Execution check during login
const userContext = { userId: "uuid-123", attributes: { country: 'UK' }};

if (await ylsoo.feature.evaluate('beta_dashboard', userContext)) {
  console.log('User Granted Beta Access');
}

3. 🛡️ Resilience Core (ylsoo.resilience)

  • withRetry(fn): Wraps flaky API calls and repeats them on an exponential delay loop (e.g. 1s... 2s... 4s...) rather than immediately panicking.
  • createBreaker(fn): Operates a Circuit Breaker algorithm to instantly cut network traffic down if an upstream service goes offline, protecting your node instances from dead-locking.

4. 🕐 Precise Time Formatter (ylsoo.time)

Completely strips the need for massive moment.js dependency packets. Quickly parses standard intervals.

ylsoo.time.format(Date.now(), "YYYY-MM-DD HH:mm:ss"); 
ylsoo.time.timeAgo(oldDate); // "5 minutes ago"

5. 🗄️ Strict Config Matrix (ylsoo.config)

A deep-merging configurations orchestrator. Implements .freeze() architecture to physically lock constants into memory, violently blocking any injected bad code downstream from maliciously altering your API_KEYS.

6. 🗃️ Concurrency Queue (ylsoo.createQueue)

Need thousands of promises to compute, but executing them simultaneously throttles your CPU? Assign them to a limit.

const q = ylsoo.createQueue(5); // Throttle process to exactly 5 lanes
q.add(() => fetchBigData1());
q.add(() => fetchBigData2());