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

rush-shimo-cli

v0.1.0

Published

石墨文档 CLI + SDK + MCP — read Shimo documents from terminal and AI agents

Readme

rush-shimo-cli

石墨文档 CLI & MCP Server — read Shimo documents from terminal and AI agents

License: MIT


Quick Start

# Login
npx rush-shimo-cli login --token <your-token>

# Browse
npx rush-shimo-cli recent
npx rush-shimo-cli cat 3O8pG2x48mb8Ty8y

# Spreadsheet
npx rush-shimo-cli sheets kyY7v4WybdYXUYL9
npx rush-shimo-cli table kyY7v4WybdYXUYL9

Features

  • Auto sheet discoverysheets command extracts sheet names automatically, no more guessing
  • Smart table reading — read all sheets without specifying range, or target a specific sheet/range
  • Unix pipe friendly — stdout for content, stderr for status; --format tsv|csv|json
  • URL & ID support — accepts both https://shimo.zhenguanyu.com/sheets/xxx and bare file IDs
  • Tiered timeouts + retry — 10s/30s/60s by operation type, auto-retry on 5xx/network errors
  • MCP Server — built-in stdio MCP server with 10 tools for AI agent integration
  • Zero dependencies — uses native fetch (Node 22), only commander + MCP SDK

Installation

Requirements: Node.js >= 22.0.0

npx rush-shimo-cli <command>           # Use directly via npx
npm install -g rush-shimo-cli          # Or global install

Authentication

Get your Shimo token:

  1. If you have a shimo-user-id, the token can be obtained via OAuth (ask your admin)
  2. Or use an existing long-lived token directly

Then configure:

# Option 1: login command (saved to ~/.shimo/config.json)
rush-shimo-cli login --token <your-token>

# Option 2: environment variable
export SHIMO_TOKEN=<your-token>

Commands

| Command | Description | | ------------------------------ | --------------------------------- | | login --token <t> | Configure credentials | | whoami | Show current user | | ls [folder] | List files in folder | | recent | List recently accessed files | | info <file> | Show file metadata | | cat <file> | Read document plain text | | sheets <file> | List sheet names in a spreadsheet | | table <file> [sheet] [range] | Read spreadsheet content | | history <file> | Show edit history | | comments <file> | Show comment count | | mentions <file> | List @mentions in file | | mcp | Start MCP stdio server |

All commands accept --json for JSON output. <file> accepts a file ID or full Shimo URL.

Usage Examples

Documents

rush-shimo-cli cat 3O8pG2x48mb8Ty8y                     # Read document text
rush-shimo-cli info 3O8pG2x48mb8Ty8y                     # File metadata
rush-shimo-cli history 3O8pG2x48mb8Ty8y                   # Edit history

Spreadsheets

rush-shimo-cli sheets kyY7v4WybdYXUYL9                   # List all sheet names
rush-shimo-cli table kyY7v4WybdYXUYL9                     # Read ALL sheets
rush-shimo-cli table kyY7v4WybdYXUYL9 "Sheet 1"          # Read specific sheet
rush-shimo-cli table kyY7v4WybdYXUYL9 "Sheet 1" A1:C10   # Read specific range

URL Support

# Full URL works everywhere
rush-shimo-cli sheets "https://shimo.zhenguanyu.com/sheets/kyY7v4WybdYXUYL9/YlDoR/"
rush-shimo-cli cat "https://shimo.zhenguanyu.com/docs/3O8pG2x48mb8Ty8y"

Pipes

cat and table output to stdout. Combine with any Unix tool:

# Search document content
rush-shimo-cli cat 3O8pG2x48mb8Ty8y | grep "关键词"

# Export spreadsheet to CSV
rush-shimo-cli table kyY7v4WybdYXUYL9 -f csv > data.csv

# Extract column with jq
rush-shimo-cli table kyY7v4WybdYXUYL9 -f json | jq '.[0].values[][0]'

# Recent file IDs
rush-shimo-cli recent --json | jq '.[].guid'

# Count rows
rush-shimo-cli table kyY7v4WybdYXUYL9 | wc -l

MCP Server

Built-in MCP server for AI agent integration (Claude Code, Cursor, Rush, etc.).

Configuration

Add to your MCP settings:

{
  "mcpServers": {
    "shimo": {
      "command": "npx",
      "args": ["-y", "rush-shimo-cli", "mcp"],
      "env": {
        "SHIMO_TOKEN": "<your-token>"
      }
    }
  }
}

MCP Tools

| Tool | Description | | --------------------- | -------------------------------------------------------- | | shimo_whoami | Current user info | | shimo_list_files | List files in folder | | shimo_recent_files | Recently accessed files | | shimo_file_info | File metadata | | shimo_read_doc | Read document plain text | | shimo_list_sheets | List sheet names (key improvement) | | shimo_read_sheet | Read sheet content (auto sheet name, optional range) | | shimo_edit_history | Edit history | | shimo_mentions | @mention list | | shimo_comment_count | Comment count |

Why This MCP Is Better

The existing tutor-wb-common Shimo MCP has critical issues:

| Problem | Old MCP | rush-shimo-cli | | ---------------------------- | ------------------------------- | ----------------------------- | | SSE connection timeout (70s) | SSE transport fails | stdio transport, instant | | Can't discover sheet names | Agent guesses 8 times, all fail | shimo_list_sheets solves it | | Must provide range | Error if no range given | Auto-reads all content | | 10s hard timeout | Large files always fail | 30s + auto retry | | 5 tools, 2 APIs | Minimal coverage | 10 tools, 8+ APIs |

API Reference

| Command | API Endpoint | Auth | | ---------- | ------------------------------------------------------ | --------- | | whoami | GET /lizard-api/users/me | Bearer | | ls | GET /lizard-api/files?folder= | Bearer | | recent | GET /lizard-api/files/recent | Bearer | | info | GET /lizard-api/files/{id} | Bearer | | cat | GET /sdk/v2/collab-files/{id}/plain-text | Bearer | | sheets | GET /lizard-api/files/{id}/content (parse "B:xxx") | Bearer | | table | GET /api/sas/files/{id}/sheets/values | Raw token | | history | GET /sdk/v2/collab-files/{id}/doc-sidebar-info | Bearer | | comments | GET /sdk/v2/collab-files/{id}/comment-count | Bearer | | mentions | GET /sdk/v2/collab-files/{id}/mention-at-list | Bearer |

Environment Variables

| Variable | Description | Default | | ---------------- | ----------- | ------------------------------ | | SHIMO_TOKEN | API token | — | | SHIMO_BASE_URL | Server URL | https://shimo.zhenguanyu.com | | SHIMO_API_KEY | API key | Built-in default |

License

MIT