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

boardb

v1.0.1

Published

Developer tool for API monitoring and database management with TypeScript

Readme

BoarDB

Developer tool for API monitoring and database management with TypeScript. Provides a beautiful web interface for tracking API metrics and managing MySQL databases.

Features

  • 🚀 API Monitoring: Real-time API call tracking with detailed metrics
  • 📊 Beautiful Dashboard: Modern web UI with dark theme
  • 🗄️ Database Management: MySQL database browser and editor
  • Real-time Updates: Auto-refreshing metrics every 5 seconds
  • 📈 Statistics: Response times, error rates, and call frequency
  • 🔍 Endpoint Analysis: Track individual API endpoint performance

Installation

npm install boardb

Quick Start

import { BoarDB } from "boardb";

const app = express();

// Initialize BoarDB
const boardb = new BoarDB({
  database: {
    host: "localhost",
    user: "root",
    password: "password",
    database: "mydb",
  },
});

// Add API monitoring middleware
app.use("/api", boardb.middleware());

// Start the dashboard server
boardb.startServer({
  port: 3001,
  enableFrontend: true,
});

console.log("BoarDB dashboard running at http://localhost:3001");

API Usage

Basic Setup

import express from "express";
import { BoarDB, apiWrapperMiddleware } from "boardb";

const app = express();

// Database configuration
const dbConfig = {
  host: "localhost",
  user: "root",
  password: "your_password",
  database: "your_database",
};

// Initialize BoarDB
const boardb = new BoarDB({ database: dbConfig });

// Add monitoring to your API routes
app.use("/api", boardb.middleware());

// Your API routes
app.get("/api/users", (req, res) => {
  res.json({ users: [] });
});

app.post("/api/users", (req, res) => {
  res.json({ success: true });
});

// Start your main server
app.listen(3000, () => {
  console.log("API server running on port 3000");
});

// Start BoarDB dashboard
boardb.startServer({
  port: 3001,
  enableFrontend: true,
});

Advanced Configuration

import { BoarDB, MetricsCollector, FrontendServer } from "boardb";

// Custom metrics collector
const metrics = new MetricsCollector({
  trackRequests: true,
  trackResponses: true,
  trackErrors: true,
});

// Initialize with custom options
const boardb = new BoarDB({
  database: {
    host: "localhost",
    port: 3306,
    user: "root",
    password: "password",
    database: "myapp",
  },
  metrics: metrics,
});

// Custom middleware with options
app.use(
  "/api",
  boardb.middleware({
    excludePaths: ["/health", "/ping"],
    trackBody: false,
  })
);

Web Dashboard

Once running, open your browser to http://localhost:3001 to access:

  • API Metrics: Real-time API call statistics and performance metrics
  • Database Browser: View and edit your MySQL database tables
  • Endpoint Analysis: Detailed breakdown of API endpoint usage

Configuration Options

Database Config

interface DatabaseConfig {
  host: string;
  port?: number;
  user: string;
  password: string;
  database: string;
}

Server Options

interface ServerOptions {
  port?: number;
  host?: string;
  enableFrontend?: boolean;
  frontendPath?: string;
}

API Endpoints

BoarDB provides these API endpoints for the dashboard:

  • GET /api/metrics/summary - Overall metrics summary
  • GET /api/metrics/endpoints - Endpoint-specific metrics
  • GET /api/metrics/recent - Recent API calls
  • GET /api/db/tables - List database tables
  • GET /api/db/table/:name/data - Get table data

Development

# Clone the repository
git clone https://github.com/baesungjoon/boardb.git

# Install dependencies
npm install

# Run example
npm run example

# Build the project
npm run build

License

MIT

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.