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

@henry0rji/blogforge

v1.1.6

Published

A powerful CLI and Server tool for generating and managing AI-powered blog content locally.

Readme

🛠️ BlogForge

BlogForge is a local-first content generation toolkit that includes:

  • A powerful command-line tool (CLI) for generating AI-powered blog content
  • A lightweight server for previewing blogs in the browser

📁 Project Structure

This repository contains two tools:

1. 🖥️ cli.ts — Command Line Interface (Published to npm)

  • Installs globally via npm
  • Saves blogs to the user's Downloads/BlogForge/ folder
  • Offers helpful commands like os, ai, create, and list
  • Designed for offline, local-first content generation

2. 🌐 server.ts — Local Preview Server (Not on npm)

  • Serves generated blog posts as json
  • Useful for local development or deploying a static blog viewer
  • Optional component you can run or host separately
  • Available on githum

🚀 CLI Installation

Install BlogForge CLI globally:


npm install -g @henry0rji/blogforge

yarn add -D @henry0rji/blogforge

🔐 Configure OpenRouter AI Key

To use the AI features in BlogForge, you need an API key from OpenRouter and internet connention for generating ai blog.


✅ Step 1: Get Your OpenRouter API Key

  1. Go to https://openrouter.ai/keys
  2. Log in or sign up for a free account.
  3. Click on "Create key"
  4. Give your key a name (e.g., blogforge-cli) and copy the generated key.

🛠️ Step 2: Provide Your Key via the CLI Prompt

After installing BlogForge globally:


npm install -g @henry0rji/blogforge

Run any AI-related command:


blogforge ai

On first use, BlogForge will:

  • Prompt you to enter your OpenRouter API key
  • Automatically create a config file at: ~/.blogforge/.env
  • Save your key in this file as: OPENROUTER_API_KEY=your_key_here
  • Use this key automatically on future runs

You won’t need to manually set environment variables again. 🎉


⚙️ CLI Usage

blogforge ai "The Rise of AI Writing" "Author"

This command generates a new blog post with:

  • Clean Markdown (post.md)
  • Metadata (meta.json)

All saved in your local ~/Downloads/BlogForge/ directory.

🧰 Available CLI Commands

| Command | Description | | ----------------------------------------------- | ---------------------------------------- | | blogforge create <author> <title> <body> | Create a new blog with your inputs | | blogforge ai <title> <author> | Create a new blog with generated ai body | | blogforge edit <slug> <author> <title> <body> | Updated existing blog | | blogforge list | List all created blogs | | blogforge delete | Delete all blogs and blogforge folder | | blogforge -help | Show help menu |


🌐 Server Usage (Optional)

The server.ts file is not part of the npm package. It lets you preview your generated blogs in the browser.

🔧 To Run Locally:

git clone https://github.com/henrygad/BlogForge.git
yarn build
yarn start

It the browser version of cli. It create and serves blog content on the web that is ideal for:

  • Testing how it work on browser
  • Hosting locally on LAN or deploying on your own server

💻 Local Development

yarn install
yarn dev:server   # Run Server in dev mode
yarn dev:blogforge    # Run CLI in dev mode
yarn build       # Build CLI and server

📄 License

MIT © Henry Orji


🔗 Links