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

@geekmidas/studio

v1.0.0

Published

Unified development tools dashboard with database browser and request monitoring

Downloads

17

Readme

@geekmidas/studio

A Supabase-style database browser and development tools dashboard for your applications. Browse tables, filter data, and monitor requests in real-time.

Features

  • Database Browser - Browse and query your PostgreSQL tables with a modern UI
  • Filtering - Filter data with multiple operators (equals, contains, greater than, etc.)
  • Sorting - Sort by any column in ascending or descending order
  • Pagination - Cursor-based pagination for efficient data loading
  • Request Monitoring - Built-in integration with @geekmidas/telescope for request/log monitoring
  • Real-time Updates - WebSocket support for live data updates

Installation

pnpm add @geekmidas/studio

Usage

With gkm dev (Recommended)

The easiest way to use Studio is with the CLI's dev server. Add studio configuration to your gkm.config.ts:

// gkm.config.ts
export default {
  routes: './src/endpoints/**/*.ts',
  envParser: './src/config/env',
  logger: './src/logger',
  studio: {
    enabled: true,
    path: '/__studio',
    schema: 'public',
  },
};

Then run the dev server:

gkm dev

Studio will be available at http://localhost:3000/__studio

Standalone Usage

For manual integration with a Hono application:

import { Hono } from 'hono';
import { Studio } from '@geekmidas/studio';
import { InMemoryStorage } from '@geekmidas/telescope/storage/memory';
import { createStudioApp } from '@geekmidas/studio/server/hono';
import { db } from './database';

// Create Studio instance
const studio = new Studio({
  monitoring: {
    storage: new InMemoryStorage(),
  },
  data: {
    db: db, // Your Kysely instance
    cursor: { field: 'id', direction: 'desc' },
  },
});

// Mount Studio routes
const app = new Hono();
app.route('/__studio', createStudioApp(studio));

Configuration

StudioOptions

| Option | Type | Default | Description | |--------|------|---------|-------------| | enabled | boolean | true | Enable/disable Studio | | path | string | '/__studio' | URL path for the dashboard | | monitoring.storage | TelescopeStorage | required | Storage backend for request monitoring | | monitoring.recordBody | boolean | true | Record request/response bodies | | monitoring.maxBodySize | number | 65536 | Max body size to record (bytes) | | monitoring.ignorePatterns | string[] | [] | URL patterns to ignore | | data.db | Kysely<DB> | required | Kysely database instance | | data.cursor | CursorConfig | required | Default cursor configuration | | data.tableCursors | Record<string, CursorConfig> | {} | Per-table cursor overrides | | data.excludeTables | string[] | migration tables | Tables to hide from browser | | data.defaultPageSize | number | 50 | Default rows per page (max: 100) |

API Endpoints

Studio exposes a REST API for programmatic access:

| Endpoint | Description | |----------|-------------| | GET /api/schema | Get complete database schema | | GET /api/tables | List all tables with basic info | | GET /api/tables/:name | Get detailed table information | | GET /api/tables/:name/rows | Query table data |

Query Parameters for /api/tables/:name/rows

  • pageSize - Number of rows per page (default: 50, max: 100)
  • cursor - Pagination cursor for next/previous page
  • filter[column][operator]=value - Filter conditions
  • sort=column:direction - Sort configuration

Filter Operators

| Operator | Description | |----------|-------------| | eq | Equals | | neq | Not equals | | gt | Greater than | | gte | Greater than or equal | | lt | Less than | | lte | Less than or equal | | like | SQL LIKE (case-sensitive) | | ilike | SQL ILIKE (case-insensitive) | | in | In array (comma-separated) | | nin | Not in array | | is_null | Is NULL | | is_not_null | Is not NULL |

Example API Requests

# Get all tables
curl http://localhost:3000/__studio/api/tables

# Get users table info
curl http://localhost:3000/__studio/api/tables/users

# Query with filtering and sorting
curl "http://localhost:3000/__studio/api/tables/users/rows?filter[status][eq]=active&sort=created_at:desc&pageSize=25"

Exports

// Core
import { Studio } from '@geekmidas/studio';

// Data browser (for custom implementations)
import { DataBrowser } from '@geekmidas/studio/data';

// Hono adapter
import { createStudioApp } from '@geekmidas/studio/server/hono';

// Types
import {
  Direction,
  FilterOperator,
  type StudioOptions,
  type TableInfo,
  type QueryResult,
} from '@geekmidas/studio';

License

MIT