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

@imphoenix2k3/memeforge

v1.0.2

Published

High-performance, extensible meme engine for Discord bots and Node.js.

Downloads

232

Readme

MemeForge 🚀

The high-performance, pluggable meme engine for Node.js.
Optimized for Discord, built for speed, and designed for extensibility.

npm version License: MIT TypeScript


🧐 What is MemeForge?

MemeForge is not just another Reddit fetcher. It's a complete meme orchestration engine. Whether you're building a Discord bot, a social media automation tool, or just need a steady stream of dank memes, MemeForge provides a robust, type-safe, and cached API to get the job done.

✨ Core Features

  • 🏎️ Extreme Performance: Built-in caching layer (TTL) and request throttling.
  • 🔌 Pluggable Architecture: Easily add Reddit, Twitter, or your own custom API sources.
  • 🛡️ Smart Filters: Advanced NSFW detection, upvote thresholds, and media type (GIF/Video/Image) filtering.
  • 🤖 Discord Native: First-class support for Discord embeds with automatic truncation and formatting.
  • 🧬 Type Safety: Written from the ground up in TypeScript for a superior DX.

�️ Installation

npm install @imphoenix2k3/memeforge

� Quick Start

1. Simple Fetch

Get raw meme data from top subreddits in one call.

import { memeForge } from 'memeforge';

const memes = await memeForge.fetch({
  subreddits: ['memes', 'dankmemes'],
  limit: 5,
  minUpvotes: 1000
});

2. Discord Bot (discord.js)

The easiest way to send memes in Discord. Check out our Full Discord Integration Guide.

const embed = await memeForge.fetchOne({
  format: 'discord-embed',
  subreddit: ['wholesomememes'],
  nsfw: false
});

await interaction.reply({ embeds: [embed] });

🎨 How it Works

graph TD
    A[User Request] --> B[MemeForge Facade]
    B --> C{Cache Hit?}
    C -- Yes --> D[Return Cached Memes]
    C -- No --> E[Source Orchestrator]
    E --> F[Reddit Handler]
    E --> G[Custom Handlers]
    F --> H[Rate Limiter]
    H --> I[External API]
    I --> J[Filter Engine]
    J --> K[NSFW Check]
    J --> L[Upvote Check]
    J --> M[Media Type Check]
    M --> N[Cache Result]
    N --> D

📚 Documentation Index

Need detailed help? Check out our deep-dive guides:


⚙️ Advanced Configuration

| Option | Type | Default | Description | | --- | --- | --- | --- | | source | string | 'reddit' | The source engine to use. | | subreddits | string[] | ['memes', ...] | Subreddits for Reddit source. | | limit | number | 1 | Number of memes to fetch. | | nsfw | boolean | true | Include NSFW content? | | minUpvotes| number | 0 | Minimum upvotes filter. | | mediaType | string | 'any' | image, gif, video, or any. | | format | string | 'json' | json or discord-embed. | | cache | boolean | true | Enable/Disable in-memory cache. | | random | boolean | false | Shuffle results for variety. | | unique | boolean | true | Prevent duplicate "seen" memes. |


🆘 Support & Community

Running into issues? Don't worry, we've got your back!

  • 🐛 Found a bug? Open an Issue.
  • 💬 Need help or want to chat? Join our Discord Server.
  • 🛠️ Error in docs? Pull requests are always welcome!

📜 License

MIT © PhoenixUchiha