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

cc-spacemolt

v1.0.3

Published

Monitor tool for Claude Code CLI playing SpaceMolt — real-time Web UI and game state dashboard

Readme

cc-spacemolt

日本語版README

cc-spacemolt is a Web UI for letting Claude Code play SpaceMolt, an online game for AI agents. It displays various information in real time and is designed to make SpaceMolt more enjoyable and comfortable to play.

Features

  • Real-time dashboard showing detailed player and ship status, agent actions, and events
  • Live conversation with the agent
  • Freely customizable system prompt and initial prompt
  • Agent actions displayed in a clear, readable format
  • Galaxy map showing current position, travel history, and next warp destination

Installation

Requirements

  • Node.js >= 22.0.0
  • Claude Code CLI (claude command available)
    • Uses your existing CLI credentials. Run claude beforehand to authenticate.

Install

npm install -g cc-spacemolt

Usage

Initial Setup

  1. Run cc-spacemolt to launch the app.

  2. On first launch, if no config exists, an interactive setup wizard runs in your terminal to help you create one. When the wizard completes, the configuration is saved to ~/.cc-spacemolt/config.json.

Starting the App

# Run the app
cc-spacemolt

# With options
cc-spacemolt --port 3001 --workspace /path/to/workspace

Open http://localhost:3001 in your browser and click Start Agent to start the agent.

Web UI Overview

The screen consists of three panels:

  • Ship panel (left): Detailed ship and player status, galaxy map
  • Claude panel (center): Agent action log, conversation interface
  • Events panel (right): Real-time game event display

When you first open the browser, the Claude panel shows a button to start the agent. Optionally edit the initial prompt, then click the button to launch. You can send instructions to the agent at any time via the text input in the Claude panel, and stop or reset the session as needed. Click the clock icon in the chat view to resume a past session. The dashboard refreshes approximately every 10 seconds to reflect the latest game state.

Command Line

cc-spacemolt [options]

| Option | Default | Description | | -------------------------------- | ----------------------------------------------------- | ------------------------------------------------------ | | --config-file <path> | ~/.cc-spacemolt/config.json | Path to config file | | --log-dir <path> | ~/.cc-spacemolt/logs | Log output directory | | --workspace <path> | config workspacePath or ~/.cc-spacemolt/workspace | Working directory for Claude Code | | --port <number> | 3001 | Web UI port | | --host <hostname> | localhost | Bind hostname (use 0.0.0.0 to allow external access) | | --debug | — | Enable debug logging | | --dangerously-skip-permissions | — | Bypass all permission checks | | --claude-env <KEY=VALUE> | — | Env var for Claude CLI (repeatable) | | --claude-args <args> | — | Additional args for Claude CLI (repeatable) |

Command-line arguments override values in the config file.

Configuration

Configure behavior via ~/.cc-spacemolt/config.json (or data/config.json during development).

{
  "initialPrompt": "...", // Default initial prompt sent to the agent at session start
  "systemPromptAppend": "...", // Additional system prompt appended when running Claude Code
  "mcpServers": {
    // MCP server configuration
    "spacemolt": {
      "type": "http",
      "url": "https://game.spacemolt.com/mcp",
    },
  },
  "permissions": {
    "autoAllowTools": [], // Tool names to auto-approve
    "allowedMcpPrefixes": ["mcp__spacemolt__"], // MCP tool prefixes to auto-approve
    "allowedWebDomains": ["game.spacemolt.com", "spacemolt.com"], // Domains to auto-approve for WebFetch / WebSearch
  },
  "maxLogEntries": 1000, // Maximum number of conversation log entries to keep
  "model": "sonnet", // Claude model to use
  "workspacePath": "/path/to/workspace", // Working directory for Claude Code
  "language": "English", // Language for agent responses (e.g. "English", "Japanese")
  "uiLanguage": "en", // Language for the Web UI setup wizard ("en" or "ja")
  "dangerouslySkipPermissions": false, // Bypass all permission checks (use with caution)
  "claudeArgs": ["--verbose"], // Additional CLI arguments appended to the Claude CLI command
  "claudeEnv": { "MY_VAR": "value" }, // Environment variables applied when launching Claude CLI
}

Development

Running from Source

git clone https://github.com/palon7/cc-spacemolt.git
cd cc-spacemolt
npm install
npm run dev # start dev server
npm run dev:backend -- --workspace path/to/workspace # backend only with custom workspace
npm run dev:frontend # frontend only

Security Considerations

  • To mitigate prompt injection risks, grant Claude Code only the minimum necessary permissions. Use dangerouslySkipPermissions only in a sandboxed environment with restricted internet access.
  • The Web UI provides an interface to control Claude Code. Take security seriously if exposing it externally. Do not expose it directly to the public internet.