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

@tabbycat-ai/sdk

v0.1.7

Published

SDK for building apps on the Tabbycat platform with authentication and persistent storage

Readme

@tabbycat/sdk

SDK for building apps on the Tabbycat platform with authentication and persistent storage.

Installation

npm install @tabbycat/sdk

Quick Start

import { createApp, PlatformStorage } from '@tabbycat/sdk'

// Export the PlatformStorage Durable Object
export { PlatformStorage }

const app = createApp({ appId: 'my-app' })

// All /api/* routes automatically have user auth and storage
app.get('/api/me', (c) => {
  const user = c.get('user')
  return c.json({ user })
})

// Use persistent storage (scoped per user/org)
app.get('/api/data', async (c) => {
  const storage = c.get('storage')
  const data = await storage.get('my-collection', 'my-key')
  return c.json({ data })
})

app.post('/api/data', async (c) => {
  const storage = c.get('storage')
  const body = await c.req.json()
  await storage.set('my-collection', 'my-key', body)
  return c.json({ success: true })
})

// Serve static assets
app.get('*', async (c) => {
  return c.env.ASSETS.fetch(c.req.raw)
})

export default app

Features

Authentication

The SDK automatically handles authentication via:

  1. X-User-Context header - Injected by the Tabbycat dispatch worker (W4P mode)
  2. PropelAuth tokens - Direct JWT verification (standalone mode)

Access the authenticated user in any /api/* route:

app.get('/api/profile', (c) => {
  const user = c.get('user')
  // user.id, user.email, user.orgId
  return c.json({ user })
})

Persistent Storage

Storage is automatically scoped per user (or per organization if the user belongs to one).

const storage = c.get('storage')

// Get a value
const item = await storage.get<MyType>('collection', 'key')

// Set a value
await storage.set('collection', 'key', { foo: 'bar' })

// Delete a value
await storage.delete('collection', 'key')

// List items in a collection
const result = await storage.list<MyType>('collection', {
  limit: 10,
  cursor: 'optional-cursor'
})
// result.items, result.cursor

Wrangler Configuration

Add the PlatformStorage Durable Object to your wrangler.toml:

name = "my-app"
main = "worker/index.ts"
compatibility_date = "2024-12-18"
compatibility_flags = ["nodejs_compat"]

[assets]
directory = "./dist/client"
binding = "ASSETS"

[[durable_objects.bindings]]
name = "PLATFORM_STORAGE"
class_name = "PlatformStorage"

[[migrations]]
tag = "v1"
new_classes = ["PlatformStorage"]

Environment Variables

| Variable | Description | |----------|-------------| | SIGNING_SECRET | Secret for verifying X-User-Context signatures | | PROPELAUTH_VERIFIER_KEY | PropelAuth public key (standalone mode) | | PROPELAUTH_AUTH_URL | PropelAuth auth URL (standalone mode) |

License

MIT