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

tweaklocal

v0.3.4

Published

Tweak your UI live in the browser and write the changes straight to source. Copy and Tailwind edits cost zero tokens; everything else routes to a right-sized model via headless claude.

Readme

TweakLocal

Tweak your UI live in the browser — the changes are written straight to your source files.

  • Copy: click any text, edit in place, Enter. Written to the JSX literal. 0 tokens.
  • Style: padding/margin per side, font sizes and colors from your design system tokens. Deterministic Tailwind class edits. 0 tokens.
  • Anything else: describe it — a layered router picks a model and an effort level sized to the request, then runs headless claude -p scoped to the exact file your selection maps to.

Model routing

| Tier | What it covers | Model | Effort (by complexity) | |---|---|---|---| | 1 | Styles, copy, component tweaks, existing components | claude-sonnet-5 | low / medium / high | | 2 | New logic & functionality (handlers, state, forms, data) | claude-opus-4-8 | medium / high / xhigh | | 3 | Multi-feature or cross-cutting work | claude-opus-4-8 | xhigh | | 3+ | Mission-critical (auth, payments, data, security) or very high complexity | claude-fable-5 | high |

Routing is layered (RouteLLM-style): deterministic lexicon + structure scoring first (<1ms, free); requests with no clear signal fall through to a Haiku classifier with structured output (~1–3s, ~$0.001). Inspect any routing decision without running it: POST /api/classify {"instruction": "..."}.

Overrides: TWEAKLOCAL_T1_MODEL, TWEAKLOCAL_T2_MODEL, TWEAKLOCAL_T3_MODEL, TWEAKLOCAL_T3_CRITICAL_MODEL, and TWEAKLOCAL_ROUTER=heuristic|hybrid|llm (default hybrid).

Quickstart (Next.js)

npm i -D tweaklocal @tweaklocal/react
  1. jsconfig.json / tsconfig.json:
    { "compilerOptions": { "jsxImportSource": "@tweaklocal/react" } }
  2. Root layout:
    import { TweakLocalOverlay } from '@tweaklocal/react';
    // inside <body>: {children}<TweakLocalOverlay />
  3. Run the daemon next to your dev server, from the project root:
    npx tweaklocal
  4. Open your app, press ⌘., click anything.

Works with Turbopack, webpack, and Vite — stamping happens in React's dev JSX runtime, not the bundler. Server components included. Production builds are untouched (the prod runtime is a passthrough).

Telemetry

The daemon sends anonymous usage telemetry: package version, node version, OS platform, whether Tailwind was detected, and per-lane tweak counts. Never code, file paths, file names, prompts, or anything identifying. A disclosure prints the first time the daemon runs.

Opt out permanently:

export TWEAKLOCAL_TELEMETRY=0   # or DO_NOT_TRACK=1 — both respected

Options

  • npx tweaklocal --port 4101 (+ <TweakLocalOverlay origin="http://localhost:4101" />)
  • TWEAKLOCAL_FAST_MODEL / TWEAKLOCAL_SMART_MODEL — model aliases for the router (default haiku / sonnet)
  • TWEAKLOCAL_BASELINE_COST / TWEAKLOCAL_BASELINE_MS — baseline for the savings counter
  • Natural-language tweaks require the Claude Code CLI (claude) on your PATH; copy/style lanes work without it.