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

saneprint

v1.0.1

Published

The official saneprint CLI

Downloads

223

Readme

saneprint

npm version npm downloads license nextjs

saneprint is a scaffolding tool that eliminates the constant AI back-and-forth. Start with a production-grade foundation that AI actually understands - ship features faster with zero refactoring tax.


The Problem with "Vibe Coding"

AI generates code that looks right but accumulates debt: inconsistent units (px vs rem), hardcoded colors (#3b82f6), 800-line "God Components", invented folder structures. Every feature becomes a different pattern.

Without structure, you're constantly correcting AI instead of building.


Why saneprint Works

  • Reduced Cognitive Load: Clear patterns. "Where does this go?" is never a question.
  • Faster Velocity: Features ship in hours because AI references existing code, not inventing new architectures
  • Less Back-and-Forth: Point to your auth flow once. AI replicates it for every feature.
  • Lower Maintenance: Consistent patterns mean scaling to 50+ routes stays easy

What You Get Out of the Box

1. Design System Pipeline

Automatic theme generation from JSON:

  • Converts px to rem
  • Creates semantic tokens (--color-brand, --color-accent)
  • Syncs to Tailwind CSS variables

Impact: No "fix inconsistent colors" tickets. AI uses bg-brand instead of bg-blue-500.

2. Feature-Based Architecture

src/features/
├── core/      # Reusable UI
├── auth/      # Complete auth flow
└── protected/ # Domain features

Each feature: components/, hooks/, pages/, schemas/, index.ts

Impact: Zero "where should this file go?" questions. Work 3x faster.

3. Production-Ready Auth

Multi-step signup with OTP, forgot password, cookie-based sessions (HttpOnly), Redux persistence, protected routes, Zod validation.

Impact: Ship with security and validation from commit one. No tech debt.

4. Living Styleguide

Visit /styleguide to see all components: forms, buttons, modals, tooltips, data tables, colors, typography.

Impact: Single source of truth. Stop recreating components.

5. Single Responsibility

Logic in hooks. Primitives in @core. Compositions in features. Styling via tokens.

Impact: Onboard in hours, not weeks. Debug in minutes.


Quickstart

npx saneprint
cd my-project
pnpm install
pnpm dev

Visit http://localhost:3000/styleguide to see your design system in action.

Example prompt for AI:

"Create src/features/users following the auth pattern. Include UserListPage with TanStack Query, UserCard component, and Zod schemas."


The Stack

Next.js 14+ • Tailwind v4 • Zod • React Hook Form • Redux Toolkit • TanStack Query • Phosphor Icons • OKLCH colors


Production-Grade Features

HttpOnly auth • Edge middleware • Error boundaries • SEO helpers • ARIA labels • Virtualized tables • Type-safe APIs


What You Save

20 mins per feature • 5-10 hours on refactors • 2-3 hours per sprint on QA • 2 days → 4 hours onboarding


Philosophy

Stop fighting your tools. Start shipping.

  • Less Explaining, More Building - AI learns from your code, not from document after document of rules you'll never keep updated.

  • Velocity That Scales - Your first feature takes 2 hours. Your 50th feature? Still 2 hours. Structure prevents slowdown.

  • Design Systems Without the Overhead - You get token-based styling and a living styleguide automatically. No design-dev translation layer needed.

  • Quality That Compounds - Every feature you ship makes the next one easier. Patterns reinforce themselves instead of diverging.


Who This Is For

  • Solo Devs shipping fast with AI assistance
  • Freelancers delivering maintainable codebases to clients
  • Product Engineers focused on features, not infrastructure
  • Designers who code wanting a solid foundation that respects design systems and enforces their tokens from day one
  • Tech Leads standardizing team output
  • Founders who need quality code without a senior engineer (yet)

Author

Built by Karishma Garg, Product Engineer


License

MIT. See LICENSE for details.