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

@lobsterkit/db

v0.1.0

Published

LobsterDB SDK — managed PostgreSQL for agents

Readme

@lobsterkit/db

Managed PostgreSQL for agents. Provision a database in one line. Get a connection string back. Query it immediately.

Install

npm install @lobsterkit/db

Quick Start

import { LobsterDB, signup } from '@lobsterkit/db';

// 1. Create an account (once)
const { token } = await signup();
// Store token in LobsterVault or your env: LOBSTERDB_API_KEY=ld_sk_live_...

// 2. Initialize client
const db = new LobsterDB({ apiKey: process.env.LOBSTERDB_API_KEY });

// 3. Provision a database
const { id, connectionString } = await db.create('my-agent-db');
// connectionString: postgresql://lr_abc123:[email protected]:5432/lobsterdb

// 4. Use the connection string with any Postgres client
import postgres from 'postgres';
const sql = postgres(connectionString);
const rows = await sql`SELECT now()`;

API

new LobsterDB(config)

const db = new LobsterDB({
  apiKey: 'ld_sk_live_...',
  baseUrl: 'https://api.lobsterdb.com', // optional override
});

db.create(name)Database

Provision a new PostgreSQL database. Returns immediately with a ready connection string.

const { id, connectionString, status, limits } = await db.create('my-db');

db.list()DatabaseSummary[]

List all databases on your account (no connection strings).

db.get(id)Database

Get a database by ID, including its connection string.

db.delete(id)

Delete a database and all its data permanently.

db.snapshot(databaseId)Snapshot (Builder+)

Create a snapshot. Returns with status: 'creating'. Poll listSnapshots until status: 'ready'.

const snap = await db.snapshot(dbId);
// Wait for completion
let ready = snap;
while (ready.status === 'creating') {
  await new Promise(r => setTimeout(r, 2000));
  const snaps = await db.listSnapshots(dbId);
  ready = snaps.find(s => s.id === snap.id)!;
}

db.listSnapshots(databaseId)Snapshot[] (Builder+)

db.restore(databaseId, snapshotId) (Builder+)

Restore from a snapshot. Overwrites all current data.

db.checkout(tier){ checkoutUrl }

Get a Stripe Checkout URL to upgrade.

const { checkoutUrl } = await db.checkout(1); // 1=Builder, 2=Pro, 3=Scale

db.account()Account

Get account info and usage.

Tiers

| Tier | Price | Databases | Storage | Connections | Backups | |------|-------|-----------|---------|-------------|---------| | Free | $0 | 1 | 500 MB | 5 | None | | Builder | $19/mo | 3 | 5 GB | 20 | Daily (3d) | | Pro | $49/mo | 10 | 25 GB | 100 | Daily (7d) + PITR | | Scale | $199/mo | Unlimited | 200 GB | 500 | Continuous PITR 30d |

LobsterVault Integration

Store your database connection string automatically:

import { LobsterDB } from '@lobsterkit/db';
import { LobsterVault } from '@lobsterkit/vault';

const db = new LobsterDB({ apiKey: process.env.LOBSTERDB_API_KEY });
const vault = new LobsterVault({ apiKey: process.env.LOBSTERVAULT_API_KEY });

const database = await db.create('my-agent-db');
// Auto-store connection string in Vault
await vault.set('DB_URL', database.connectionString);

// Later, retrieve it anywhere
const url = await vault.get('DB_URL');