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

hackathon-mode

v1.1.2

Published

MCP server that overrides AI agent behavior for hackathon speed and creativity

Readme

hackathon-mode

hackathon-mode is an MCP server that injects a hackathon operating protocol into AI agents: ship fast, stay concise, keep a strategic project index, and preserve project-specific rules across sessions.

Current project version: 1.1.2

https://github.com/oorbea/hackathon-mode

Author: Oriol Orbea Suari

Requirements

  • Node.js >=22
  • npm with lockfile support

Installation

Run without installing:

npx hackathon-mode@latest

Bootstrap a project-local MCP config without adding hackathon-mode as a project dependency:

cd my-hackathon-project
npx hackathon-mode@latest init --agent all

This works for Python, Go, Rust, JavaScript, and other project types. The bootstrap command only creates local MCP configuration files that point agents to npx -y hackathon-mode@latest; it does not modify package.json, pyproject.toml, requirements.txt, or other project dependency files.

Build from source:

git clone https://github.com/oorbea/hackathon-mode
cd hackathon-mode
npm install
npm run build
npm start

Agent Configuration

All MCP-compatible agents use the same server command. For source builds, replace the npx command with node /path/to/hackathon-mode/dist/index.js.

{
  "mcpServers": {
    "hackathon-mode": {
      "command": "npx",
      "args": ["-y", "hackathon-mode@latest"]
    }
  }
}

Project-local config locations generated by init:

| Agent | Project-level config | Server key | |---|---|---| | Claude Code | .mcp.json | mcpServers["hackathon-mode"] | | Cursor | .cursor/mcp.json | mcpServers["hackathon-mode"] | | OpenAI Codex | .codex/config.toml | [mcp_servers."hackathon-mode"] | | GitHub Copilot in VS Code | .vscode/mcp.json | servers["hackathon-mode"] | | Gemini CLI | .gemini/settings.json | mcpServers["hackathon-mode"] |

Google Antigravity and OpenClaw are not generated by init because their public docs do not currently document a compatible project-local MCP config path.

Claude Code can also add it from the CLI:

claude mcp add --scope user hackathon-mode -- npx -y hackathon-mode@latest
claude mcp add hackathon-mode -- npx -y hackathon-mode@latest

Project Bootstrap

Use init from the root of a hackathon project to create local MCP config files:

npx hackathon-mode@latest init --agent all

Agent-specific bootstrap:

npx hackathon-mode@latest init --agent claude
npx hackathon-mode@latest init --agent cursor
npx hackathon-mode@latest init --agent codex
npx hackathon-mode@latest init --agent copilot
npx hackathon-mode@latest init --agent gemini

--agent all creates:

.mcp.json
.cursor/mcp.json
.codex/config.toml
.vscode/mcp.json
.gemini/settings.json

If a JSON config file already exists, init preserves existing JSON and other MCP servers, then adds or replaces only the hackathon-mode server entry. Invalid JSON fails with an error and is not overwritten. For Codex, init preserves existing TOML and adds or replaces only the [mcp_servers."hackathon-mode"] block.

Quick Start

  1. Call enable_hackathon_mode.
  2. Call initialize_repo if the project needs starter files.
  3. Call update_index to generate .hackathon-index.md.
  4. Call brainstorm for stack-aware feature ideas.
  5. Add persistent project rules with add_rule when needed.
  6. Call pitch and time_check during demo prep.
  7. Call disable_hackathon_mode when normal behavior should return.

Hackathon Protocol

When active, the server injects a short hidden tool named _hackathon_rules into the MCP tool list. Agents receive the protocol on connection and can also read the full resource at hackathon://protocol.

The active rules are:

  • Skip docs and tests unless explicitly requested.
  • Prefer working code over polish.
  • Avoid abstractions and future-proofing during the hackathon window.
  • Treat shortcuts as acceptable when they help ship.
  • Suggest high-impact wow features.
  • Keep replies concise.
  • Read .hackathon-index.md before touching files.
  • Match the user's language.

Tools

| Tool | Params | Description | |---|---|---| | enable_hackathon_mode | none | Activates Hackathon Mode globally and records activation time. | | disable_hackathon_mode | none | Deactivates Hackathon Mode. | | get_mode_status | none | Returns active state and the short protocol. | | initialize_repo | workspaceRoot?, projectName?, goals?, techStack?, dockerCompose?, features? | Creates missing starter files for a hackathon project. | | update_index | workspaceRoot? | Regenerates .hackathon-index.md. | | brainstorm | workspaceRoot?, count? | Suggests 1-5 wow-factor features for the detected stack. | | add_rule | workspaceRoot?, rule | Appends a mandatory project rule to .hackathon-rules.md. | | remove_rule | workspaceRoot?, index | Removes a project rule by 1-based index. | | list_rules | workspaceRoot? | Lists persisted project rules. | | cache_status | none | Shows in-memory cache and duplicate-response tracking state. | | pitch | workspaceRoot? | Generates a concise demo pitch from project context files. | | checkpoint | workspaceRoot?, message? | Runs git add -A and creates a chk: checkpoint commit. | | time_check | durationHours? | Reports elapsed time, remaining time, phase, and deadline. |

All workspaceRoot params default to the server process working directory when omitted.

Resources

| URI | Description | |---|---| | hackathon://protocol | Markdown description of the Hackathon Protocol and current active/inactive state. |

Files and State

hackathon-mode can create or update these files:

| Path | Written by | Purpose | |---|---|---| | ~/.hackathon-mcp-config.json | enable_hackathon_mode, disable_hackathon_mode | Global active/inactive state and activation time. | | .hackathon-index.md | update_index | Workspace map for agent orientation. | | .hackathon-rules.md | add_rule, remove_rule | Persistent project rules injected into the active protocol. | | README.md | initialize_repo | Starter project README, only created when missing. | | .env.example | initialize_repo | Starter environment variable template, only created when missing. | | HACKATHON_PLAN.md | initialize_repo | Starter hackathon plan, only created when missing. | | .gitignore | initialize_repo | Starter gitignore, only created when missing. | | docker-compose.yml | initialize_repo | Optional local services file, only created when requested and missing. |

checkpoint is intentionally broad: it stages all current changes with git add -A and creates a chk: commit.

Security

Known npm vulnerabilities should stay at zero before release:

npm audit --json

As of 2026-04-23, npm audit --json reports:

{
  "vulnerabilities": {
    "info": 0,
    "low": 0,
    "moderate": 0,
    "high": 0,
    "critical": 0,
    "total": 0
  }
}

Direct dependency versions are pinned in package.json; transitive dependency versions are locked by package-lock.json.

Development

npm run dev
npm run build
npm start
./node_modules/.bin/tsc --noEmit
npm ls --depth=0 --json

Project layout:

src/
  index.ts             MCP server, tool registration, resource registration
  logic/
    brainstorm.ts      Feature suggestion engine
    cache.ts           Short-lived caches and duplicate detection
    checkpoint.ts      Git checkpoint commits
    config.ts          Global state persistence
    indexing.ts        Workspace scanner and index writer
    pitch.ts           Demo pitch generator
    repo-init.ts       Starter file and docker-compose generator
    rules.ts           Project rule persistence
    time-check.ts      Hackathon phase/time reporting

Agent-facing implementation context is maintained in AGENTS.md; Claude-specific discovery points to the same context through CLAUDE.md.