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

create-glanceway-source

v1.3.0

Published

Scaffold a standalone Glanceway source project

Readme

create-glanceway-source

Scaffold a Glanceway source with full build/test tooling and AI-assisted development support.

Quick Start

npm create glanceway-source

Or with a source name:

npm create glanceway-source my-source

You'll be prompted for:

  • Display name — shown in Glanceway
  • Description — brief summary of what the source does
  • Author — your name or handle
  • Author URL — optional link (e.g., GitHub profile)
  • Category — Developer, News, Social, Finance, Entertainment, Productivity, or Other

Non-interactive mode (all flags required):

npm create glanceway-source my-source \
  --name "My Source" \
  --description "Fetches items from Example API" \
  --author myname \
  --author-url "https://github.com/myname" \
  --category Developer

Developing with AI

The scaffolded project includes a CLAUDE.md file with the full Glanceway API reference, source lifecycle documentation, and coding conventions. To use it with Claude Code:

  1. cd into your scaffolded project
  2. Run claude to start Claude Code
  3. CLAUDE.md is automatically read, giving Claude full context about the Glanceway Source API

Example prompts:

  • "Fetch the top posts from Hacker News and emit them as items"
  • "Check my service's status and emit an item when its status changes"
  • "Ask AI to ask me a philosophical question every day and emit the question as an item"

Building & Testing

cd my-source
npm install

# Build: compiles source, creates dist/latest.gwsrc
npm run build

# Test: executes source with mock API, validates emitted items
npm run test

# Pass config values for testing
npm run test -- --config API_TOKEN=xxx --config USERNAME=yyy

The dist/latest.gwsrc file is the importable source package.

Importing into Glanceway

  1. Open Glanceway
  2. Go to Sources
  3. Click Import from file
  4. Select dist/latest.gwsrc

Submitting to glanceway-sources

To share your source with the community, open an issue on glanceway-sources with a link to your project repository.