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

@tsrx/ripple

v0.2.4

Published

Ripple framework compiler built on @tsrx/core

Readme

@tsrx/ripple

Ripple's compiler target for the published @tsrx/core language infrastructure. Use compile(source, filename, options) to produce client or server JavaScript.

Primitive text inference

Ripple uses direct text updates for locally proven primitives, including typed local values, primitive operators, template strings, and unshadowed String(), Number(), Boolean(), BigInt(), and Date() calls. Sequences use the last expression's type while preserving evaluation of earlier expressions. Constructor calls such as new Date() remain object values. Visible replacements of built-ins disable their inferred conversion behavior; explicit as string keeps its existing text behavior.

For imported types, aliases, function return types, and control-flow narrowing, Vite applications can enable ripple({ textTypes: { tsconfig: 'tsconfig.json' } }). The plugin manages the checker automatically; see the Vite plugin guide.

Direct Compiler Usage

The following example is for custom compiler integrations. Use the Node-only @tsrx/ripple/typescript entry point to manage TypeScript analysis yourself. Install TypeScript 5.9.3 or newer and enable strictNullChecks in the project. The ordinary compiler entry point does not load TypeScript.

import { compile } from '@tsrx/ripple';
import { createTextTypeProject as create_text_type_project } from '@tsrx/ripple/typescript';
import { readFileSync as read_file_sync } from 'node:fs';
import { resolve } from 'node:path';

const filename = resolve('src/App.tsrx');
const source = read_file_sync(filename, 'utf8');
const project = create_text_type_project({ tsconfig: 'tsconfig.json' });
try {
  const text_type_facts = project.getTextTypeFacts(filename, source);
  const client = compile(source, filename, { textTypeFacts: text_type_facts });
  const server = compile(source, filename, {
    mode: 'server',
    textTypeFacts: text_type_facts,
  });
  project.assertUnchanged();
} finally {
  project.dispose();
}

Checker proofs cover primitive strings, numbers, bigints, and unions of those types. Unknown, nullable, boxed, object, and unresolved types retain local inference. The checker enables noUncheckedIndexedAccess so potentially missing entries do not become non-null text proofs. Ambiguous source mappings are skipped.

Facts are serializable and tied to the exact filename and source version. Supply identical facts to client and server compilation: text classification affects hydration layout. Each project caches a filesystem snapshot without watchers. Call invalidate() after edits to reload the configuration and all imported types; recompile affected components even when their own source did not change. assertUnchanged() detects edits to files read by the current snapshot.

The Vite plugin manages this lifecycle through its textTypes option.