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

boredom-mcp

v0.26.1

Published

MCP server for boreDOM - enables Claude to directly control boreDOM applications

Downloads

5

Readme

boreDOM MCP Server

MCP server that lets Claude directly control boreDOM apps in your browser. No copy-paste. No intermediary.

User: "Add dark mode"
Claude: *reads app* → *writes code* → *dark mode appears*

2-Step Setup

Step 1: Add to Claude Code

Add this to ~/.claude/settings.json:

{
  "mcpServers": {
    "boredom": {
      "command": "npx",
      "args": ["-y", "boredom-mcp"]
    }
  }
}

Then restart Claude Code (or run /mcp to reload).

Step 2: Add to Your HTML

<script src="http://localhost:31337"></script>

That's it. Restart Claude Code and start building.


What Can Claude Do?

| Action | Tool | |--------|------| | See your app's state | boredom_get_context | | Find errors | boredom_get_focus | | Run code in browser | boredom_apply_code | | Create components | boredom_define_component | | Get TypeScript types | boredom_get_types |

Example Conversation

You: "The user list is broken"

Claude: Let me check what's happening...
        *calls boredom_get_focus*

        I see the issue - users array is undefined.
        Let me fix it...
        *calls boredom_apply_code: state.users = state.users || []*

        Fixed! The user list should render now.

All Tools

| Tool | Description | |------|-------------| | boredom_get_context | Full app state, components, errors | | boredom_get_focus | Focused view of current issue | | boredom_get_types | Inferred TypeScript definitions | | boredom_type_of | Type for a specific state path | | boredom_validate_code | Check code before running | | boredom_apply_code | Run code (auto-validates, auto-rollback) | | boredom_apply_batch | Run multiple code blocks atomically | | boredom_define_component | Create new component at runtime | | boredom_get_component | Inspect a running component | | boredom_operate_component | Get live component context | | boredom_get_attempts | History of code applications |


How It Works

┌─────────────┐    STDIO    ┌─────────────┐   WebSocket   ┌─────────────┐
│ Claude Code │◄──────────►│ boredom-mcp │◄─────────────►│   Browser   │
└─────────────┘             └─────────────┘               └─────────────┘
  1. Claude calls a tool (e.g., boredom_get_context)
  2. MCP server forwards to browser via WebSocket
  3. Browser executes on your running boreDOM app
  4. Result flows back to Claude

Troubleshooting

"Browser not connected"

Add the bridge script to your HTML:

<script src="http://localhost:31337"></script>

Check connection status

In browser console:

boredomBridge.getStatus()
// { connected: true, reconnectAttempts: 0 }

Custom port

BOREDOM_MCP_PORT=3118 npx boredom-mcp
<script>window.BOREDOM_MCP_PORT = 3118</script>
<script src="http://localhost:3118/bridge.js"></script>

Development

git clone https://github.com/HugoDaniel/boreDOM.git
cd boreDOM/boredom-mcp
pnpm install
pnpm run build
pnpm run test:all  # 28 tests

License

MIT