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

@trut/neew

v1.2.1

Published

`neew` turns remote generator repositories into reusable commands. Register a repository once, invoke its generators by name from any directory, and let a small fetch engine reuse a local cache until the remote ref actually moves.

Readme

neew

neew turns remote generator repositories into reusable commands. Register a repository once, invoke its generators by name from any directory, and let a small fetch engine reuse a local cache until the remote ref actually moves.

Documentation

Start with docs/getting-started.md, then read the module for the domain you need:

Install

pnpm add -g @trut/neew

The generator repository contract

Any Git repository becomes a neew generator repository by adding a single barrel file, generators.ts, at its root. The barrel default-exports a generators array of paths or glob patterns resolved relative to the repository root. Author it with the defineGenerators helper exported by this package:

import { defineGenerators } from '@trut/neew';

export default defineGenerators({
  generators: ['./generators/*.generator.ts'],
});

Each pattern must match at least one generator module. A module declares a @trut/gen generator with a unique name, an optional description, and the prompts that become the parameters neew accepts. For example generators/component.generator.ts:

import { addTemplates, defineGenerator, text } from '@trut/gen';

export default defineGenerator({
  name: 'component',
  description: 'Create a component',
  basePath: 'src',
  prompts: {
    name: text({ message: 'Component name', placeholder: 'UserProfile' }),
  },
  actions: [
    addTemplates({
      from: 'templates/component',
      to: 'components/<%= it.format.kebabCase(it.answers.name) %>',
    }),
  ],
});

Generator names must be unique within the repository; two resolved generators sharing a name fail resolution.

Project templates

A generator that initializes a project can keep ordinary, ready-to-use text files and replace its embedded project identity at generation time. Export the name present in those files and expose the target name through a projectName prompt:

import { addTemplates, defineGenerator, text } from '@trut/gen';

export const projectName = 'Template Name';

export default defineGenerator({
  name: 'project',
  basePath: '.',
  prompts: {
    projectName: text({ message: 'Project name' }),
  },
  actions: [
    addTemplates({
      from: 'templates/project',
      to: '<%= it.format.kebabCase(it.answers.projectName) %>',
    }),
  ],
});

Neew replaces title, Pascal, camel, kebab, snake, and constant forms of the exported name in supported text files. Output paths remain Gen's responsibility: use its normal path placeholders and dynamic action strings. Files outside the text-file allowlist are copied unchanged; generators without the export retain the default Eta behavior.

CLI usage

neew add <link>                     # register a repository and index its generators
neew remove <link>                  # unregister a repository and drop its cache
neew list                           # list repositories and their generators (offline)
neew create <generator> [options]   # run a generator
neew <generator> [options]          # shortcut for create
neew <generator> --help             # list a generator's parameters
neew                                # list the commands and available generators

Options:

  • --target <dir>: write generated files into <dir> instead of the current directory.
  • --dry-run: report the files that would be written without writing them.
  • --force: replace existing files that collide with generated output.
  • -h, --help, -v, --version.

Every generator prompt is exposed as a CLI flag (for example a name prompt becomes --name). Missing values are prompted interactively on a TTY and fail otherwise. The state lives in ~/.config/neew/neew.json (registry) and ~/.cache/neew/** (fetched repositories).