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

halaman-mcp

v1.0.0

Published

Model Context Protocol (MCP) companion server for Halaman Studio

Readme

Halaman MCP Server

Model Context Protocol (MCP) companion server for Halaman Studio. It lets AI clients such as Claude Desktop, Cursor, and VS Code agents inspect and edit the live Halaman canvas through a local WebSocket bridge on port 9001.

This package is the standalone Node.js distribution of the MCP workflow used by the current Halaman project. It reflects the current app model:

  • The browser editor connects automatically to ws://127.0.0.1:9001.
  • The default blank canvas is 1206 x 760.
  • Halaman supports multiple canvas presets: square, portrait, widescreen, story, and custom.
  • Built-in templates live in the app as JSON layouts and intentionally set text autoWidth: false so layouts wrap predictably.

Quick Start

Run directly with npx

npx -y halaman-mcp

Claude Desktop config

Windows config path: %APPDATA%\Claude\claude_desktop_config.json
macOS config path: ~/Library/Application Support/Claude/claude_desktop_config.json

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

Local Development

git clone <your-halaman-mcp-repo>
cd halaman-mcp
npm install
npm run build
npm run start

Tools

  • get_canvas_state: Return the current live CardState JSON from the browser editor.
  • add_element: Add a text, shape, link, gaming, crypto, QR, or barcode element.
  • update_element: Update position, size, z-index, rotation, or properties on an existing element.
  • delete_element: Remove an element by ID.
  • set_canvas_background: Set a solid or gradient canvas background plus border settings.
  • align_element: Align an element to the canvas or another element.
  • get_card_preview: Render the current card as a PNG.
  • clear_canvas: Reset the canvas to Halaman's blank starter card.
  • get_template_catalog: Return the current built-in Halaman template catalog and format notes.

Resources

  • halaman-app://docs/alignment-guide
  • halaman-app://docs/elements-guide
  • halaman-app://docs/templates-guide

Notes

  • A Halaman editor tab must be open and connected, or live-editing tools will return an error.
  • set_canvas_background currently drives the live MCP bridge for solid and gradient backgrounds. The full app data model also supports image backgrounds.
  • Grouped elements exist in the editor and published renderer, but MCP creation tools currently target leaf elements instead of creating groups directly.