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

hermes-admin

v0.1.19

Published

Hermes Admin Dashboard - A modern web UI for managing Hermes AI agent

Readme

Hermes Admin

npm version Node.js React TypeScript

A modern, real-time web dashboard for managing your Hermes AI agent. Built with React, TypeScript, and Tailwind CSS.

Dashboard Preview

Features

Real-time System Monitoring

  • CPU: Core usage, load averages, processor details
  • Memory: Total, used, free with visual progress bars
  • Disk: Usage statistics and health monitoring
  • Process: Uptime and resource consumption

Session Management

  • Browse all conversation sessions with pagination
  • Filter by source (WeChat, CLI, Telegram, Discord, etc.)
  • Full-text search across messages
  • View detailed message history with token usage
  • Delete sessions individually or in batch
  • Rename sessions for better organization

Interactive Chat

  • Built-in chat interface powered by Hermes CLI
  • Stream responses in real-time
  • Resume previous sessions
  • Automatic session creation

Skills & Tools

  • View all available agent skills
  • Browse skill documentation
  • Category-based organization

Cron Job Management

  • List all scheduled tasks
  • View job details and schedules
  • Check execution history

Configuration

  • View current agent settings
  • Edit configuration safely (with secret masking)
  • Model provider management

Additional Features

  • Dark/Light Theme: Automatic system preference detection
  • Multi-language: i18n support (English, Chinese, more coming)
  • Responsive: Works on desktop and mobile devices
  • TypeScript: Full type safety throughout

Prerequisites

  • Node.js 18 or higher
  • Hermes Agent installed and configured (~/.hermes/ directory exists)
  • SQLite3 CLI (for database queries)

Installation

Global Installation (Recommended)

npm install -g hermes-admin
hermes-admin

Local Installation

npm install hermes-admin
npx hermes-admin

Development Setup

git clone https://github.com/yourusername/hermes-admin.git
cd hermes-admin
npm install
npm run dev          # Frontend development server
npm run serve        # Backend API server

Usage

CLI Commands

# Start the dashboard (default)
hermes-admin
hermes-admin web
hermes-admin start

# With options
hermes-admin --port 8080           # Custom port
hermes-admin --no-browser          # Don't auto-open browser
hermes-admin --skip-install        # Skip dependency check
hermes-admin --skip-build          # Skip build step

# Other commands
hermes-admin --version             # Show version
hermes-admin --help                # Show help

Accessing the Dashboard

Once started, open your browser at:

  • Local: http://localhost:3001 (or your custom port)
  • Network: Check CLI output for network URLs

Architecture

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│   React SPA     │────▶│   Express API   │────▶│   Hermes CLI    │
│   (Frontend)    │◄────│   (Backend)     │◄────│   (Agent Core)  │
└─────────────────┘     └─────────────────┘     └─────────────────┘
                              │
        ┌─────────────────────┼─────────────────────┐
        ▼                     ▼                     ▼
   ┌─────────┐          ┌──────────┐          ┌──────────┐
   │ SQLite  │          │  YAML    │          │  JSON    │
   │ state.db│          │ config   │          │  files   │
   └─────────┘          └──────────┘          └──────────┘

API Endpoints

| Endpoint | Method | Description | |----------|--------|-------------| | /api/health | GET | System health status | | /api/system | GET | Real-time system stats (CPU, memory, disk) | | /api/stats | GET | Dashboard statistics overview | | /api/sessions | GET | List sessions with filters | | /api/sessions/:id | GET | Session details with messages | | /api/sessions/:id | PUT | Update session title | | /api/sessions/:id | DELETE | Delete a session | | /api/sessions/batch-delete | POST | Delete multiple sessions | | /api/search | GET | Full-text search messages | | /api/chat | POST | Start streaming chat (SSE) | | /api/config | GET/PUT | Read/Update configuration | | /api/cron | GET | List cron jobs | | /api/skills | GET | List all skills | | /api/processes | GET | Background processes | | /api/memory | GET/POST | Memory management |

Data Sources

Hermes Admin reads directly from your local Hermes installation:

| Path | Type | Data | |------|------|------| | ~/.hermes/state.db | SQLite | Sessions, messages, token usage | | ~/.hermes/config.yaml | YAML | Agent configuration | | ~/.hermes/sessions/sessions.json | JSON | Live session mappings | | ~/.hermes/gateway_state.json | JSON | Platform connection status | | ~/.hermes/processes.json | JSON | Background process tracking | | ~/.hermes/memories/ | Directory | Persistent memory files |

Security

  • No Shell Injection: All CLI calls use execFile with argument arrays
  • SQL Injection Protection: Parameterized queries with proper escaping
  • Secret Masking: API keys and tokens are masked in UI
  • Input Validation: Strict validation on all user inputs
  • Session ID Sanitization: Only alphanumeric + underscore allowed

Development

Project Structure

hermes-admin/
├── bin/hermes-admin.js      # CLI entry point
├── server.cjs                # Express API server
├── src/
│   ├── api/                  # API client functions
│   ├── components/           # Reusable UI components
│   ├── components/ui/        # Base UI components (Card, Button, etc.)
│   ├── pages/                # Page components (Dashboard, Sessions, etc.)
│   ├── hooks/                # Custom React hooks
│   ├── i18n/                 # Translation files
│   ├── types/                # TypeScript type definitions
│   ├── App.tsx               # Main app component
│   └── main.tsx              # Entry point
├── public/                   # Static assets
├── dist/                     # Production build (generated)
├── package.json
├── tailwind.config.js
├── tsconfig.json
└── vite.config.ts

Available Scripts

npm run dev          # Start Vite dev server (port 5173)
npm run build        # Build for production	npm run preview      # Preview production build
npm run serve        # Start Express API server (port 3001)
npm start            # Build + start production server

Adding Translations

  1. Edit src/i18n/index.ts
  2. Add new language to resources object
  3. Create translation file in src/i18n/locales/[lang].json

Troubleshooting

Port Already in Use

# Hermes will automatically find an available port
# Or specify a custom port:
hermes-admin --port 8080

Dependencies Not Found

# The CLI will auto-install dependencies
# Or manually install:
cd $(npm root -g)/hermes-admin
npm install

Build Errors

# Clean and rebuild
rm -rf dist
npm run build

Database Errors

Ensure SQLite3 CLI is installed:

# macOS
brew install sqlite3

# Ubuntu/Debian
sudo apt-get install sqlite3

# Verify
sqlite3 --version

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT © Hermes Admin Contributors

Acknowledgments