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

@cmwen/todo-app

v0.1.2

Published

A simple CLI todo application

Downloads

6

Readme

@cmwen/todo-app

TODO App CLI - Single executable orchestrating multiple modes: CLI (default), Web UI, and MCP server. Core logic and types shared across packages.

Installation

Install globally via npm:

npm install -g @cmwen/todo-app

Quick Start

@cmwen/todo-app - Bundled CLI

This is a self-contained, bundled command-line interface for the todo app. It's built using Vite and includes all dependencies except Node.js built-ins bundled into a single executable file.

Features

  • ✅ Single bundled executable file (~12KB gzipped)
  • ✅ All workspace dependencies (@todo-app/*) bundled
  • ✅ External npm dependencies kept as runtime dependencies
  • ✅ Self-contained database schema (no external SQL files needed)
  • ✅ Works from any directory
  • ✅ Includes WebSocket server, MCP server, and CRUD operations

Build & Development

# Build the bundled CLI
pnpm build

# Development (uses non-bundled version)
pnpm dev

# Clean build artifacts
pnpm clean

Usage

Once built, the CLI is available at dist/todo-app:

# Add a todo
./dist/todo-app add -t "My task" -p high

# List todos  
./dist/todo-app list

# Update a todo as completed
./dist/todo-app update -i <todo-id> -c true

# Delete a todo
./dist/todo-app delete -i <todo-id>

# Start web server (backend + frontend)
./dist/todo-app web

# Start MCP server (limited functionality in bundled mode)
./dist/todo-app mcp

# Help
./dist/todo-app --help

Publishing

The package is configured to publish to npm as @cmwen/todo-app. To publish:

# Ensure you're logged in to npm
npm login

# Publish (will run prepublishOnly script to build first)
pnpm publish

Technical Details

  • Bundler: Vite with Rollup
  • Target: Node.js 18+ ES Modules
  • Bundle size: ~388KB (~12KB gzipped)
  • External deps: commander, pino, better-sqlite3, ws, zod, @modelcontextprotocol/sdk
  • Bundled: All @todo-app workspace packages + their TypeScript sources

Web UI Mode

Start both backend WebSocket server and Next.js frontend:

# Start web mode (opens browser automatically)
todo-app web --port 8080 --ui-port 3000

This starts:

  • Backend WebSocket server on port 8080
  • Next.js UI on port 3000
  • Automatically opens your browser
  • Passes NEXT_PUBLIC_WS_URL to the frontend

MCP Server Mode

Start as a Model Context Protocol stdio server:

# Start MCP stdio server
todo-app mcp

Features

  • CLI Mode: Traditional command-line interface
  • Web Mode: Modern web UI with real-time updates
  • MCP Mode: Model Context Protocol server integration
  • Multi-mode: Single executable, multiple interfaces
  • Real-time: WebSocket-based live updates
  • Local Storage: SQLite database
  • Shared Types: Type-safe across all modes
  • Monorepo Architecture: Modular design

Architecture

This CLI package orchestrates the entire TODO app ecosystem:

  • packages/shared: Shared TypeScript types
  • packages/backend: SQLite + WebSocket server + services
  • packages/cli: CLI orchestrator (this package)
  • packages/frontend: Next.js web UI
  • packages/mcp: MCP stdio server

Development

If you're contributing to the project:

# Clone and setup
git clone https://github.com/cmwen/todo-app
cd todo-app

# Install dependencies and build
pnpm install
pnpm -r build

# Run tests
pnpm -F @todo-app/backend test

# Development mode
pnpm dev

Documentation

Comprehensive documentation available in the monorepo:

Requirements

  • Node.js 16 or higher

License

MIT

Repository

This package is part of the todo-app monorepo.