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

@felixfern/tiru-api

v1.0.1

Published

API mocking in your npx

Readme

tiruAPI

tiruAPI is a lightweight API mocking tool with a modern Svelte UI and ultra-fast Bun + Hono backend. Create, test, and manage mock APIs for local development — runnable instantly with npx or pnpx.


Quick Start

# Using npx
npx @felixfern/tiru-api

# Using pnpx (pnpm)
pnpx @felixfern/tiru-api

This will:

  1. Start the backend server on http://localhost:3000
  2. Open the web UI in your browser

Features

  • 🎨 Modern Dark UI — beautiful dark-mode interface
  • Ultra-fast — Powered by Bun + Hono
  • 📂 Sidebar & Folders — Organize APIs into collections with collapsible folders
  • 🖱️ Drag & Drop — Easily reorder endpoints with drag-and-drop
  • 🔀 Dynamic URLs — Support for path parameters like /api/users/:id
  • 🎭 Response Simulation — Add delays, JSON responses, and random failures
  • JSON Editor — Built-in JSON formatter and validator
  • 📊 Live Logs — Real-time API hit logging with inspection
  • 🌐 CORS enabled — Works seamlessly with any frontend

Usage

Creating a Collection

  1. Open the web UI at http://localhost:3000
  2. Click the + button in the sidebar to create a new collection
  3. Expand the collection folder to see endpoints

Adding & Reordering APIs

  • Click + in the collection view to add an endpoint
  • Drag and drop endpoints in the list to reorder them
  • Click an endpoint in the sidebar to jump directly to it

API Path Patterns

You can use dynamic path parameters:

/api/users/:id          → matches /api/users/123, /api/users/abc
/api/posts/:id/comments → matches /api/posts/5/comments

Simulation Features

  • Delay: Add response delay in milliseconds
  • Failure Rate: Simulate random failures (0-100%)
  • Status Codes: Customize success (200, 201) and failure (400, 500) codes

Export/Import

  • Click the download icon on a collection card to export as JSON
  • Click the Import button in the toolbar to load a collection

Development

# Clone the repo
git clone https://github.com/felixfern/tiru.git
cd tiru

# Install dependencies (requires Bun & pnpm)
pnpm install

# Run development servers
pnpm dev

This starts:

  • Frontend: http://localhost:5173
  • Backend: http://localhost:3000

Building for Production

# Build both frontend and backend
pnpm build

# Start production server
pnpm start

Publishing to npm

To publish a new version:

  1. Update version in package.json
  2. Run build verification: pnpm build
  3. Publish:
# Login to npm
npm login

# Publish the package
npm publish --access public

License

ISC