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

genmagic-discord

v0.1.1

Published

Self-hosted Discord bot for AI images and video with GenMagic: /image and /video with Nano Banana, GPT Image, FLUX, Veo 3.1, Kling 3.0, Seedance and 90+ more models on one API key. One file, no dependencies.

Readme

genmagic-discord

A Discord bot that makes AI images and short videos with GenMagic: Nano Banana, GPT Image, FLUX, Seedream, Veo 3.1, Kling 3.0, Seedance, Wan and the rest of GenMagic's 90+ image and video models, from /image and /video.

Two ways to use it:

  • Add the hosted app (nothing to run): add GenMagic to your server or your account. Each member links their own GenMagic account and pays per generation from their own balance; new accounts get free starter credit. More at genmagic.co/discord.
  • Run your own with this package (npx genmagic-discord): one file, no dependencies, every generation paid from your own GenMagic key.

Run your own

  1. Create an application at the Discord Developer Portal, add a bot, and copy the application id and public key.
  2. Get a GenMagic API key at genmagic.co/get-api-key.
  3. Start the server (Node 20 or later) where Discord can reach it over HTTPS:
DISCORD_PUBLIC_KEY=... DISCORD_APP_ID=... GENMAGIC_API_KEY=... PORT=3000 npx genmagic-discord
  1. In the Developer Portal, set the Interactions Endpoint URL to https://<your host>/interactions (Discord checks it when you save).
  2. Register the commands once: DISCORD_APP_ID=... DISCORD_BOT_TOKEN=... npx -p genmagic-discord genmagic-discord-register
  3. Invite the bot with the install link from the portal's Installation page.

/image prompt:<text> [model:<id>] posts the image in the channel. /video prompt:<text> [model:<id>] [seconds:4-10] posts the clip when it is ready (most take under two minutes). Model ids and prices: genmagic.co/models or GET https://genmagic.co/api/v1/models.

The bot answers Discord within its 3-second window with a "thinking" message and replaces it with the result. Requests are verified with Discord's Ed25519 signature; anything unsigned gets 401.

License

MIT