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

@simplens/create-simplens-plugin

v1.0.0

Published

CLI tool to scaffold new SimpleNS notification plugins

Downloads

110

Readme

@simplens/create-simplens-plugin

CLI tool to scaffold new SimpleNS notification plugins. Generates all required boilerplate so you can focus on writing the notification delivery logic.

Installation

# Via npx (recommended)
npx @simplens/create-simplens-plugin

# Global installation
npm install -g @simplens/create-simplens-plugin
create-simplens-plugin

Usage

Interactive Mode

Simply run the CLI and answer the prompts:

npx @simplens/create-simplens-plugin

You'll be asked for:

  • Plugin name - kebab-case identifier (e.g., discord, telegram, twilio-sms)
  • Display name - Human readable name
  • Description - What your plugin does
  • Channel - Channel identifier for routing
  • Author - Your name and email
  • Git/npm options - Whether to initialize git and install dependencies

Non-Interactive Mode

Use CLI flags for automation:

npx @simplens/create-simplens-plugin --name discord --channel discord --yes

Command Line Options

Usage: create-simplens-plugin [options]

Options:
  -n, --name <name>       Plugin name (e.g., discord, telegram)
  -c, --channel <channel> Channel identifier
  -d, --directory <dir>   Output directory (default: plugin-<name>)
  -y, --yes               Use defaults, skip prompts
  --no-git                Skip git initialization
  --no-install            Skip npm install
  -h, --help              Show help
  -V, --version           Show version

Generated Files

plugin-<name>/
├── package.json          # NPM package configuration
├── tsconfig.json         # TypeScript configuration
├── src/
│   ├── index.ts          # Provider class (implement send() here)
│   └── index.test.ts     # Test suite
├── README.md             # Plugin documentation
└── .gitignore            # Git ignore rules

What to Implement

After scaffolding, you need to:

  1. Define schemas in src/index.ts:

    • recipientSchema - Who receives notifications
    • contentSchema - What the notification contains
  2. Implement send() method:

    • Add your API client initialization
    • Implement the delivery logic
    • Handle errors appropriately
  3. Add tests in src/index.test.ts

  4. Update README.md with your plugin's documentation

Example

$ npx @simplens/create-simplens-plugin

🔌 Create SimpleNS Plugin

? Plugin name: discord
? Display name: Discord  
? Description: Send notifications via Discord webhooks
? Channel identifier: discord
? Author name: John Doe
? Author email: [email protected]
? Select required credentials: webhook_url
? Select recipient fields: channelId
? Select content fields: message, title
? Output directory: plugin-discord
? Initialize git repository? Yes
? Install dependencies after generation? Yes

✅ Plugin created successfully!

📁 Created plugin-discord/
   ├── package.json
   ├── tsconfig.json
   ├── src/
   │   ├── index.ts         ← Implement your send() logic here
   │   └── index.test.ts
   ├── README.md
   └── .gitignore

🚀 Next steps:
   1. cd plugin-discord
   2. Edit src/index.ts        # Add your delivery logic
   3. npm test                 # Run tests
   4. npm run build            # Build for publishing
   5. npm publish --access public # Publish to npm

Development

Build

npm run build

Test

npm test

Run Locally

npm run dev

License

MIT