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

@distracted/server

v1.2.0

Published

Local server + hook installer for distracted's AI Coding Agent integration (Claude Code, OpenCode).

Readme

distracted! - "block distracting websites! do mini tasks to get back on them..."

Chrome Web Store Firefox Add-ons GitHub stars

what is this package?

local server that integrates with AI coding agent hooks (Claude Code + OpenCode) to enable real-time distraction blocking. receives hook events from your agent(s) and forwards them to the extension via websocket.

how to use

setup

install the extension first! then run the server:

bunx @distracted/server

if no agent hooks are configured yet, the CLI will prompt you to set them up.

you can also configure/remove hooks explicitly:

bunx @distracted/server --setup
bunx @distracted/server --setup claude
bunx @distracted/server --setup opencode
bunx @distracted/server --setup all

bunx @distracted/server --remove
bunx @distracted/server --remove claude
bunx @distracted/server --remove opencode
bunx @distracted/server --remove all

bunx @distracted/server --status

by default the server runs on port 8765 (or use --port <port> to specify a different port).

configuration locations:

  • Claude Code: ~/.claude/settings.json (hooks that curl to the local server)
  • OpenCode: ~/.config/opencode/plugin/distracted.ts (self-contained plugin file)

in the extension, setup a distraction with Claude Blocker as the unlock method.

how it works

  • Claude Code hooks and/or OpenCode plugin send hook events (UserPromptSubmit, PreToolUse, SessionStart/End, etc.) to the local server via HTTP POST
  • the server processes these events and maintains state about agent activity across multiple sessions
  • the extension connects via websocket and receives real-time updates
  • if either agent is active/working, the user is unblocked

credits