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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@shedali/json-dot

v0.0.5

Published

**Live Demo**: https://nodejs.now-examples.now.sh/

Readme

Node.js API with a Static Frontend on ZEIT Now

Live Demo: https://nodejs.now-examples.now.sh/

This example shows a pre-setup project including:

  • An api directory, containing a single endpoint that retrieves the current time with Node.js.
  • A www directory, containing static files such as index.html and style.css that show a frontend with information from the API.

Get Started with This Project

To get started with this project yourself, you can use Now CLI to initialize it.

From your terminal, use the following command to create a directory called my-nodejs-project including the files of this example:

now init nodejs my-nodejs-project

Then, cd into your new project's directory (with cd my-nodejs-project).

You now have a project, ready to go into development, staging, or production with Now. Your next step is up to you. Try one of the following:

Local Development

Using Now CLI, as you did to initialize this project, you can use the following command from your terminal to start a development environment locally which replicates the production environment on Now so you can test your new project:

now dev

Automatic Deployments with Git

Using either Now for GitHub or Now for GitLab, you can push this project to a Git repository and it will deploy automatically.

If on anything other than the default branch, with each push your project will be deployed, automatically, to a unique staging URL.

If pushing or merging to the default branch, your project will be deployed and aliased in a production environment, automatically.

Read more about the ZEIT Now Git Integrations:

Deploying from Your Terminal

Using Now CLI, you can also deploy to both staging and production environments from your terminal.

For a staging deployment, you can use the following one-word command:

now

Then, for production, including automatic aliasing, you can use the following:

now --target production

For more information on deploying, see the Deployment Basics documentation.

Configuration Breakdown

This example contains a now.json file which instructs Now how to treat this project when developing locally and deploying.

{
  "version": 2,
  "name": "my-nodejs-project",
  "builds": [
    { "src": "www/**/*", "use": "@now/static" },
    { "src": "api/**/*.js", "use": "@now/node" }
  ],
  "routes": [
    { "src": "/", "dest": "www/index.html" }
  ]
}

The above instructs Now with:

For more information on configuring Now, see the Configuration documentation.

Resources

Learn more about the ZEIT Now platform from our documentation, including: