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

linuxdo

v0.2.4

Published

Linux.do CLI and MCP server

Downloads

419

Readme

linuxdo

npm version license

linuxdo is a JSON-first CLI for Linux.do and a stdio MCP server powered by the same tool catalog. Use it directly from the terminal, or expose the same forum operations to AI clients with linuxdo mcp serve.

Features

  • Shared CLI + MCP tool catalog from one definition source
  • Canonical CLI tree for agents and scripts: topics, notifications, bookmarks, messages
  • MCP server with 6 forum tools: topics, search, notifications, bookmarks, private messages
  • Interactive auth flow for Linux.do user API keys
  • JSON-first command behavior with discovery surfaces: tools, describe, call
  • Automatic Cloudflare handling with TLS, Playwright, and real Chrome CDP fallback
  • linuxdo doctor for runtime checks and optional live API verification

Install

npm install -g linuxdo
# or
pnpm add -g linuxdo

Requires Node.js >=18. Playwright and Chrome are optional and are only used when Cloudflare blocks the primary transport.

Quick Start

Use as CLI

Generate a Linux.do user API key:

linuxdo auth

The auth flow prints an authorization URL, opens a browser when possible, asks you to paste the response payload back into the terminal, and then prints your API key and username. Export the result in your shell:

export LINUXDO_USER_API_KEY=your-api-key
export LINUXDO_USERNAME=your-username

Verify the setup and make a first request:

linuxdo doctor --verify-api
linuxdo topics list --filter latest
linuxdo topics search --term "MCP in:title"

Use as MCP

Add linuxdo to your MCP client config:

{
  "mcpServers": {
    "linuxdo": {
      "command": "linuxdo",
      "args": ["mcp", "serve"],
      "env": {
        "LINUXDO_USER_API_KEY": "your-api-key",
        "LINUXDO_USERNAME": "your-username"
      },
      "type": "stdio"
    }
  }
}

CLI Overview

Tool-backed commands default to JSON output and return a non-zero exit code on failure. Use linuxdo <command> --help for command-specific options.

Canonical command tree

linuxdo topics list --filter latest
linuxdo topics read --topic-id 1465729
linuxdo topics search --term "MCP in:title"
linuxdo notifications list --limit 20
linuxdo bookmarks list
linuxdo messages list

Static commands

linuxdo auth
linuxdo doctor --verify-api
linuxdo mcp serve

Discovery and generic calls

linuxdo tools
linuxdo describe topics search
linuxdo call list_topics filter=latest page=1
  • linuxdo tools lists generated command metadata as JSON
  • linuxdo describe ... shows one command or tool schema as JSON
  • linuxdo call ... invokes a tool by MCP tool name with key=value, --json-args, or @payload.json

MCP Overview

linuxdo mcp serve starts a stdio MCP server using the same shared catalog as the CLI.

| MCP tool | CLI path | Purpose | | --- | --- | --- | | list_topics | linuxdo topics list | List topics by filter such as latest, hot, top, or category | | read_topic | linuxdo topics read | Read a topic and its replies | | search_topics | linuxdo topics search | Search with Discourse syntax such as in:title and category: | | get_notifications | linuxdo notifications list | Fetch recent notifications | | get_bookmarks | linuxdo bookmarks list | Fetch bookmarked posts | | get_messages | linuxdo messages list | Fetch private messages |

Runtime Notes

Required environment

| Variable | Description | | --- | --- | | LINUXDO_USER_API_KEY | Discourse User API key | | LINUXDO_USERNAME | Your Linux.do username |

Cloudflare handling

Linux.do is protected by Cloudflare. linuxdo handles this automatically with a 3-stage fallback chain:

  1. TLS transport with a Chrome-like fingerprint
  2. Playwright fallback when TLS is blocked
  3. Real Chrome CDP fallback for interactive verification

When CDP fallback is required, a real Chrome window opens so you can finish the challenge manually. The verified session is then reused, and the dedicated Chrome profile is cached under ~/.cache/linuxdo-mcp/chrome-profile by default.

Selected optional environment variables

| Variable | Default | Purpose | | --- | --- | --- | | LINUXDO_PROXY_URL | unset | HTTP proxy for outbound requests | | LINUXDO_CDP_FALLBACK | true | Enable real Chrome CDP fallback | | LINUXDO_CDP_PORT | 9222 | Chrome remote debugging port | | LINUXDO_CDP_CHROME_PATH | auto-detect | Override Chrome executable path | | LINUXDO_CDP_USER_DATA_DIR | ~/.cache/linuxdo-mcp/chrome-profile | Override the dedicated Chrome profile directory |

Development

pnpm install
pnpm typecheck
pnpm build
npx vitest run

References

License

MIT