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

@bnjoroge/quiz-me

v0.1.1

Published

Context-aware quiz plugin for coding agents

Readme

quiz-me

Context-aware quiz plugin for coding agents (Oh My Pi, Claude Code, Codex). Generates quizzes testing your understanding of the current task/code using the host agent's own model — no separate API key.

Features

  • Three scope modes: uncommitted changes, whole project, or diff against a branch
  • Varying difficulty: recall, apply, analyze questions
  • Question kinds: code comprehension, plan-vs-code alignment, design reasoning
  • SQLite persistence: quizzes and attempts saved locally
  • Browser UI: local HTTP server at http://127.0.0.1:<port>
  • Auto-hook: fires after code review turns (like Plannotator for plans)
  • Manual command: /quiz-me on demand

Install

npm install -g .
# or from repo:
npm install && npm run build

Usage

# Start server (idempotent)
quiz-me serve

# Generate quiz prompt (agent reads this and POSTs JSON back)
quiz-me generate --scope uncommitted --difficulty mix
quiz-me generate --scope whole
quiz-me generate --scope branch --branch main

# Check status / list quizzes
quiz-me status
quiz-me list

Platform adapters

quiz-me install --platform oh-my-pi
quiz-me install --platform claude-code
quiz-me install --platform codex

Architecture

The agent generates quiz JSON using its own model; the server persists, serves, and grades. See docs/quiz-me-plugin-plan.md for full design.

How it uses your Claude/Codex subscription (no API key)

quiz-me never calls an LLM directly. The flow is:

  1. quiz-me generate --scope whole prints a prompt template to stdout
  2. The prompt tells the agent: "Output ONLY a JSON quiz object matching this schema"
  3. The agent's own model (Claude, Codex, etc.) generates the quiz JSON
  4. The agent POSTs the JSON to http://127.0.0.1:<port>/api/quizzes
  5. The server persists to SQLite and opens the browser UI

There are zero OpenAI/Anthropic SDK calls in the quiz-me source — no API key needed.

node dist/src/cli.js generate --scope whole --difficulty mix
# Agent reads stdout prompt → generates JSON → POSTs to printed URL

Prompt (what the agent receives)

The prompt (src/prompt.tsbuildPrompt()) includes:

  • JSON schema — exact shape: {summary, questions[{difficulty, kind, type, prompt, options, answer, explanation, codeRef}]}
  • Rules — MC (4 options), true/false ("true"|"false"), short-answer; difficulty counts (3 recall, 5 apply, 2 analyze); kind distribution
  • Context sections:
    • ## Plan — contents of docs/plan.md (or PLAN.md, plan.md, etc.)
    • ## Diff — unified diff from git (scope-dependent)
    • ## Files — file paths + line counts

Full docs: docs/prompt-and-subscription.md

Screenshots (real quiz generated by Claude)

These screenshots were captured from a real quiz about the quiz-me repo itself, generated by Claude Sonnet 4 (using its own Anthropic subscription, no proxy) by feeding it the prompt from quiz-me generate --scope whole --difficulty mix.

| View | Screenshot | |------|------------| | Quiz list | list | | Multiple choice (Q1: architecture) | mc | | True/false (Q3) | tf | | Short answer (Q5) | short | | Results (auto-scored) | results |

Re-create them (with Claude directly, bypassing cliproxy):

# Start server
quiz-me serve

# Generate prompt
quiz-me generate --scope whole --difficulty mix > /tmp/prompt.txt
sed '$d' /tmp/prompt.txt > /tmp/prompt-only.txt  # strip POST instruction

# Have Claude generate the quiz (uses its own auth — no proxy)
env -u ANTHROPIC_BASE_URL -u ANTHROPIC_AUTH_TOKEN \
  claude -p "$(cat /tmp/prompt-only.txt)" --print > /tmp/claude-output.txt

# Extract JSON from ```json block
QUIZ_JSON=$(sed -n '/^```json/,/^```/p' /tmp/claude-output.txt | sed '1d;$d')

# POST to server
curl -X POST http://127.0.0.1:4317/api/quizzes?scope=whole \
  -H "Content-Type: application/json" -d "$QUIZ_JSON"

# Open browser
open http://127.0.0.1:4317/

Seed the demo quiz: ./scripts/seed-demo.sh 4317 then open http://127.0.0.1:4317/.