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

now-heck

v0.0.1

Published

A hacky dev server for ZEIT's Now service (with Next.js support)

Downloads

6

Readme

now-hack

A hacky (<100 lines) dev server for ZEIT’s Now v2 service (with Next.js support). now-hack reads from your now.json configuration and:

  • Uses micro-dev to serve any @now/node builds (including glob patterns)
  • Reads your routes config and forward to either a @now/node endpoint or a static file, with support for headers and methods fields
  • Starts a Next.js server to handle any unmatched routes from the previous methods

That said, this project is really just an RFC and I'm curious to see if anyone else finds it useful. If you give it a shot and hit an error, please file a GitHub issue, as I put this together very quickly to meet my own needs and I'm sure there are a lot of cases it doesn't handle.

Installation

yarn add now-hack -D

Usage

Usage
  $ now-hack

Options
  --directory, -d  Directory with the now.json config file
  --port, -p  Port used for the server

Why?

ZEIT’s Now v2 is an awesome service for quickly building and deploying lambdas, but local development can be somewhat tricky. Defining routes is necessary to get the most out of using separate lambdas, especially when using Next.js, but the only way to use these routes seems to be:

  • Use now dev, which appears to be in beta, and currently seems to sacrifice speed for correctness (it creates actual lambdas and can take minutes to start)
  • Use a custom server locally and recreate any routes defined in now.json, which is error-prone and has led to deployment issues for me

TODO

If this seems useful to people, I'd be happy to keep going, and aim to knock these things out next:

  • Watch & livereload microservices (I thought we'd get this for free with micro-dev, but it doesn't seem like it when using it programmatically)
  • Add support for @now/static (This should be pretty straight-forward with serve-handler)
  • Dynamic detection of distDir from next.config.js
  • Proper detection of Next (currently we just launch it from the current path, regardless)
  • Better automatic handling for ENV variables & secrets, possibly through now-env
  • Potentially support @now/node-server (though I feel like this would imply adding a proxy — and is fairly easy to avoid by just exporting a handler from your server instead and using @now/node)
  • Actually give this project some structure (and maybe even a test or two)