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

instruckt-astro

v0.2.0

Published

Visual annotation feedback for AI coding agents in Astro

Readme

instruckt-astro

Visual annotation feedback for AI coding agents in Astro. Click on any UI element, leave feedback with optional screenshots, and let AI agents read and fix issues.

Annotate in browser → Paste into Claude Code

Installation

bun add -D instruckt-astro
# or: npm install -D instruckt-astro
# or: pnpm add -D instruckt-astro

Add the integration to your Astro config:

// astro.config.mjs
import { defineConfig } from 'astro/config';
import instruckt from 'instruckt-astro';

export default defineConfig({
  integrations: [instruckt()]
});

Add MCP server to your project's .mcp.json:

{
  "mcpServers": {
    "instruckt": {
      "command": "npx",
      "args": ["instruckt-mcp"],
      "cwd": "/absolute/path/to/project"
    }
  }
}

Add .instruckt/ to your .gitignore:

.instruckt/

Usage

  1. Run your Astro dev server
  2. Press A to enter annotation mode, click any element to annotate
  3. Press C to capture a region screenshot
  4. Annotations are auto-copied as markdown - paste into Claude Code
  5. Claude can view screenshots and mark issues resolved via MCP

MCP Tools

Claude Code (or any MCP client) can use these tools to interact with annotations:

  • instruckt_get_all_pending - Get all pending annotations
  • instruckt_get_screenshot - Get base64-encoded screenshot for an annotation
  • instruckt_resolve - Mark an annotation as resolved

Dev Toolbar

The integration adds an app to Astro's dev toolbar showing pending annotations. Click the chat bubble icon to view all annotations and navigate to annotated pages.

Configuration

All options are optional. The defaults work for most projects:

instruckt({
  enabled: true,                    // Default: true in dev, false in prod
  endpoint: '/api/instruckt',       // Custom API prefix
  position: 'bottom-right',         // Toolbar position
  theme: 'auto',                    // auto | light | dark
  adapters: ['vue', 'react'],       // Framework detection
  colors: {
    default: '#6366f1',             // Marker color
    screenshot: '#22c55e',          // Marker with screenshot
    dismissed: '#71717a'            // Dismissed marker
  },
  keys: {
    annotate: 'a',
    freeze: 'f',
    screenshot: 'c',
    clearPage: 'x'
  }
})

API Endpoints

The integration exposes REST endpoints for custom integrations:

  • GET /api/instruckt/annotations - List all annotations
  • POST /api/instruckt/annotations - Create annotation
  • PATCH /api/instruckt/annotations/[id] - Update annotation status
  • GET /api/instruckt/screenshots/[filename] - Get screenshot image

Development

Contributing to instruckt-astro:

bun install
bun run build       # Build package
bun run test        # Run unit tests
bun run test:e2e    # Run E2E tests
bun run test:all    # Run all tests

Requirements

  • Astro 5.x (adapter auto-configured)

Credits

This package is an Astro port of instruckt-laravel by Josh Cirre. It uses the instruckt frontend library for the visual annotation UI.

License

MIT