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

@pipilot/server

v0.3.1

Published

Server-side SDK for PiPilot Cloud, the PiPilot managed backend (database, storage, secrets). Uses a project service key — server-side only.

Readme

@pipilot/server

Server-side SDK for PiPilot Cloud, the PiPilot managed backend — database, storage, and secrets for any app, on any stack, with zero infra to run. Provision a backend in one call and talk to it through PiPilot's gateway.

Server-side only. The service key grants full access to your project's data (like a Supabase service role key). Never ship it to a browser. A browser SDK with row-level policies (the anon key) ships separately.

Install

npm install @pipilot/server

Usage

import { createClient } from '@pipilot/server';

const db = createClient(process.env.PIPILOT_SERVICE_KEY);

// Insert (tables are created implicitly)
await db.from('todos').insert({ text: 'Ship it', done: false });

// Read
const todos = await db.from('todos').select({ limit: 20 });

// Update (replaces the whole record) / delete by id
await db.from('todos').update(todos[0].id, { ...todos[0], done: true });
await db.from('todos').delete(todos[0].id);

// Storage
await db.storage.upload('invoices/2026.pdf', pdfBuffer, { contentType: 'application/pdf' });
const files = await db.storage.list();
const file = await db.storage.download('invoices/2026.pdf'); // { contentType, base64, bytes, text() }
const url = await db.storage.getUrl('invoices/2026.pdf', 600); // temporary signed URL
await db.storage.remove('invoices/2026.pdf');

// Secrets (names only — values are set in the PiPilot dashboard)
const secretNames = await db.secrets.list();

// Functions — invoke a serverless function you deployed to this backend
const result = await db.functions.invoke('checkout', { plan: 'pro' });

// Runtime features — keyless, no third-party accounts
const { text } = await db.ai.generate({ prompt: 'Summarize this order' });
await db.notifications.sendToTopic({ topic: 'alerts', notification: { title: 'Sale', body: '50% off' } });
const invite = await db.invites.create({ resourceType: 'room', authMode: 'anonymous' });
await db.realtime.send(connectionIds, { type: 'update', data });

Getting a service key

Create a project (once) from your PiPilot account — it provisions a managed backend and returns a pk_live_… service key, shown only once. Store it as PIPILOT_SERVICE_KEY.

API

  • createClient(serviceKey, { url?, fetch? })
  • db.from(table).select({ limit?, filter? }) → Row[]
  • db.from(table).insert(record | record[]) → { ids }
  • db.from(table).update(id, record) → { success }
  • db.from(table).delete(id) → { success }
  • db.storage.list() → string[]
  • db.storage.upload(path, content, { contentType? }) — content: string | Buffer | Uint8Array | ArrayBuffer
  • db.storage.download(path) → { path, contentType, base64, bytes, text() }
  • db.storage.getUrl(path, expiresIn?) → signed URL string
  • db.storage.remove(path) → { success }
  • db.secrets.list() → string[]
  • db.functions.invoke(name, body?) → the function's JSON response
  • db.ai.generate/extract/classify/ocr/run/imageGen(opts) — keyless platform AI
  • db.notifications.send/sendToTopic/subscribeTopic/unsubscribeTopic/listUserTopics(opts)
  • db.invites.create/resolve/join/revoke(opts)
  • db.realtime.send(connectionIds, payload)