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

@papit/server

v1.0.2

Published

a simple but powerful dev server that can locate locale assets and package and even dependency assets

Readme

@papit/server

A simple but powerful development server for modern JavaScript/TypeScript projects.

Logo

@papit/server can serve your local assets, package files, dependency assets, and automatically handle live updates, bundling, and caching. It’s ideal for developers who want a fast, flexible dev environment with asset localization, HTML/JS bundling, import maps, and dependency-aware serving.

Key features:

  • 📦 Serves local project files and assets
  • 🌐 Handles package and dependency assets automatically
  • ⚡ Supports live-reload updates for JavaScript/TypeScript
  • 🗂 Efficient caching mechanism for files, HTML, and bundles
  • 🖼 Automatic handling of images, fonts, audio, video, and other binary assets
  • 🛠 Dev-friendly HTTP error handling (404, 500, 405)
  • 🔌 Optional bundling via @papit/build for .ts/.tsx files
  • 🧩 Importmap support for module resolution across packages

Type Tests NPM version


Installation

npm install @papit/server

Usage

Basic usage:

npx @papit/server
  • Starts a dev server on the default port 3000 (or the port specified with --port)
  • Serves your project assets, HTML, and bundled JavaScript/TypeScript
  • Supports live reload for client updates
  • Automatically handles caching and streaming for large assets

Flags & Configuration

All runtime flags are centralized here for easy reference. Flags can be passed via CLI or environment variables.

| Flag | Type | Default | Description | | ---------------- | --------------- | ----------------------------- | ------------------------------------- | | --port | number | 3000 | Set the server port | | --live | boolean | false | Enable live updates (hot reload) | | --no-bundle | boolean | false | Skip bundling of JS/TS files | | --asset | string or array | ["asset","assets","public"] | Custom asset folder(s) to serve | | --cache-file | number (MB) | 50 | Max cache size for individual files | | --cache-html | number (MB) | 50 | Max cache size for HTML files | | --cache-bundle | number (MB) | 150 | Max cache size for bundled JS files | | --verbose | boolean | false | Enable verbose logging | | --info | boolean | false | Show info logs | | --error | boolean | false | Show error traces | | --silent | boolean | false | Suppress console output | | --no-cache | boolean | false | Disable caching entirely | | --location | string | - | Override project root location | | --mode | string | "dev" | Server mode (dev/prod) | | --buildMode | string | "ancestors" | Build mode (ancestors/workspaces) |

Note: Some flags (like --prod, --watch, --callback) are inherited from @papit/build. Please check the build README for advanced options.


Contributing

Contributions are welcome! Please follow the development guidelines and ensure all tests pass before submitting a pull request.


License

Licensed under the @Papit License 1.0 – Copyright (c) 2024 Henry Pap (@onkelhoy)

Key points:

  • ✅ Free to use in commercial projects
  • ✅ Free to modify and distribute
  • ✅ Attribution required
  • ❌ Cannot resell the component itself as a standalone product

See the LICENSE file for full details.


Support

For issues, questions, or contributions, visit the GitHub repository.