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

devmentorai-server

v1.2.3

Published

DevMentorAI backend server — AI-powered DevOps mentoring via GitHub Copilot. Run with: npx devmentorai-server

Readme

devmentorai-server

AI-powered DevOps mentoring and writing assistant backend, powered by GitHub Copilot.

Part of the DevMentorAI project.

Quick Start

npx devmentorai-server

That's it! The server starts in the background on port 3847.

Installation

Run without installing (recommended)

npx devmentorai-server

Install globally

npm install -g devmentorai-server
devmentorai-server

Long-Running Usage (No Interruptions)

npx devmentorai-server is supported and starts the backend in background mode, but for long-running sessions (hours/days) you should use a process supervisor.

Option 1: Global install + PM2 (recommended)

npm install -g devmentorai-server pm2
pm2 start "devmentorai-server start --foreground" --name devmentorai-server
pm2 save
pm2 status

Option 2: systemd (Linux)

Create a user service that runs:

devmentorai-server start --foreground

Then enable restart policies (Restart=always) so the backend auto-recovers if it crashes.

Commands

| Command | Description | |---------|-------------| | devmentorai-server start | Start the server in background (default) | | devmentorai-server stop | Stop the running server | | devmentorai-server status | Show server status (PID, port, health) | | devmentorai-server logs | View recent server logs | | devmentorai-server doctor | Check system requirements |

Options

| Option | Description | |--------|-------------| | --port <port> | Port to listen on (default: 3847) | | --foreground, -f | Run in foreground (don't daemonize) | | --lines, -n | Number of log lines to show (default: 50) | | --help, -h | Show help message | | --version, -v | Show version |

Examples

# Start server on a custom port
devmentorai-server start --port 4000

# Run in foreground (useful for debugging)
devmentorai-server start --foreground

# Check if everything is set up correctly
devmentorai-server doctor

# View last 100 lines of logs
devmentorai-server logs --lines 100

Requirements

  • Node.js >= 20.0.0
  • GitHub Copilot CLI (optional — server runs in mock mode without it)

How It Works

The server runs as a background process and stores its data in ~/.devmentorai/:

~/.devmentorai/
├── devmentorai.db      # SQLite database (sessions, messages)
├── server.pid          # PID of running server
├── config.json         # User configuration
├── logs/
│   └── server.log      # Server logs
└── images/             # Session image thumbnails

API Endpoints

| Endpoint | Description | |----------|-------------| | GET /api/health | Health check | | GET /api/sessions | List sessions | | POST /api/sessions | Create a new session | | POST /api/chat/:sessionId | Send a message | | GET /api/models | List available models |

Troubleshooting

Server won't start

  1. Run devmentorai-server doctor to check requirements
  2. Check logs: devmentorai-server logs
  3. Try foreground mode: devmentorai-server start -f

Server stops unexpectedly

  1. Check the latest backend logs: devmentorai-server logs --lines 200
  2. Re-run in foreground to capture runtime errors directly: devmentorai-server start -f
  3. For continuous uptime, run under PM2 or systemd (see Long-Running Usage)

Port already in use

devmentorai-server start --port 4000

Copilot not connected

The server requires GitHub Copilot CLI to be installed and authenticated. Without it, the server runs in mock mode with simulated responses.

# Install Copilot CLI (if not installed)
npm install -g @github/copilot-cli

# Authenticate
github-copilot auth

Reset data

rm -rf ~/.devmentorai
devmentorai-server start

Development

This package is part of the DevMentorAI monorepo.

git clone https://github.com/BOTOOM/devmentorai.git
cd devmentorai
pnpm install
pnpm dev:backend

Support

Found a bug or have a feature request? Open an issue on GitHub.

License

MIT © BOTOOM