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

@andy-toolforge/authoring

v0.1.3

Published

Toolforge domain: lesson/curriculum authoring tools — generate lessons, scaffold series, embed images, validate structure

Readme

@andy-toolforge/authoring

Lesson/curriculum authoring tools — generate lessons, scaffold series, embed images, validate structure.

Requires Node.js 18+.

Installation

npm install @andy-toolforge/authoring

Setup

Gemini API Key (for image generation)

embed_images_to_markdown requires a Gemini API key to generate images:

export GEMINI_API_KEY="your-key-here"

Or pass apiKey directly when calling the function / MCP tool.

Get a key at aistudio.google.com/apikey.

Usage

As a library

const { generateLesson, scaffoldSeries, embedImagesToMarkdown, validateSeries } = require('@andy-toolforge/authoring');

// Generate a lesson plan using LLM
const lesson = await generateLesson({
  topic: 'JavaScript Promises',
  audience: 'beginner developers',
  language: 'vi',
});

// Scaffold a series directory
const series = await scaffoldSeries({
  topic: 'Python for Data Science',
  outputDir: './courses',
  lessonCount: 5,
});

// Replace image placeholders with generated images
const result = await embedImagesToMarkdown({
  markdown: '# My Doc\n\n![illustration](placeholder:a diagram of X)',
  apiKey: process.env.GEMINI_API_KEY,
});

// Validate a series directory
const report = await validateSeries({
  seriesDir: './courses/python-data-science',
});

As MCP tools (via @andy-toolforge/mcp)

4 tools are auto-discovered when @andy-toolforge/authoring is installed alongside @andy-toolforge/mcp:

| Tool | Description | |------|-------------| | generate_lesson | Generate a lesson plan from topic + audience using LLM | | scaffold_series | Create series directory with TOC and lesson scaffolds | | embed_images_to_markdown | Replace ![alt](placeholder:desc) with generated images | | validate_series | Validate series file structure, metadata, and links |

The MCP server scans node_modules/@andy-toolforge/*/mcp-tools.js and registers them automatically.

MCP Tools

generate_lesson

Parameters:

  • topic (string, required) — Lesson topic
  • audience (string, required) — Target audience
  • objectives (string[], optional) — Specific learning objectives
  • language (string, optional) — Output language (vi or en, default vi)

Returns: { title, markdown, sections }

scaffold_series

Parameters:

  • topic (string, required) — Series topic
  • outputDir (string, required) — Parent directory for the series
  • lessonCount (number, optional) — Number of lessons (default 5)
  • language (string, optional) — Language (vi or en, default vi)

Returns: { seriesDir, tocFile, lessonFiles[] }

embed_images_to_markdown

Parameters:

  • markdown (string, required) — Markdown with ![alt](placeholder:description) placeholders
  • outputDir (string, optional) — Output directory (default ./images)
  • apiKey (string, optional) — Gemini API key (defaults to GEMINI_API_KEY env var)

Returns: { markdown, images[] }

validate_series

Parameters:

  • seriesDir (string, required) — Path to series directory

Returns: Report with errors, warnings, stats

Testing

npm test -w @andy-toolforge/authoring