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

krisspy-sdk

v0.4.0

Published

Krisspy Cloud SDK - Database, Auth, Storage, and Functions for your apps

Readme

@krisspy/sdk

Krisspy Cloud SDK - Database, Auth, and Functions for your apps.

A simpler alternative to Supabase.

Installation

npm install @krisspy/sdk
# or
yarn add @krisspy/sdk
# or
pnpm add @krisspy/sdk

Quick Start

import { createClient } from '@krisspy/sdk'

const krisspy = createClient({
  backendId: 'your-backend-id',
  apiKey: 'your-api-key', // optional for public access
})

Authentication

Sign Up

const { data, error } = await krisspy.auth.signUp({
  email: '[email protected]',
  password: 'secret123',
  metadata: { name: 'John Doe' }, // optional
})

Sign In

const { data, error } = await krisspy.auth.signInWithPassword({
  email: '[email protected]',
  password: 'secret123',
})

Get Current User

const user = krisspy.auth.user()
// or async
const { data: { user } } = await krisspy.auth.getUser()

Sign Out

await krisspy.auth.signOut()

Listen to Auth Changes

const { unsubscribe } = krisspy.auth.onAuthStateChange((event) => {
  console.log('Auth event:', event) // 'SIGNED_IN' | 'SIGNED_OUT'
})

// Later...
unsubscribe()

Database

Select

// Select all
const { data, error } = await krisspy
  .from('products')
  .select('*')

// Select specific columns
const { data, error } = await krisspy
  .from('products')
  .select('id, name, price')

// With filters
const { data, error } = await krisspy
  .from('products')
  .select('*')
  .eq('active', true)
  .gt('price', 100)
  .order('created_at', { ascending: false })
  .limit(10)

// Get single row
const { data, error } = await krisspy
  .from('products')
  .select('*')
  .eq('id', 123)
  .single()

Insert

// Single insert
const { data, error } = await krisspy
  .from('products')
  .insert({ name: 'iPhone', price: 999 })

// Batch insert
const { data, error } = await krisspy
  .from('products')
  .insert([
    { name: 'iPhone', price: 999 },
    { name: 'iPad', price: 799 },
  ])

Update

const { data, error } = await krisspy
  .from('products')
  .update({ price: 899 })
  .eq('id', 123)

Delete

const { data, error } = await krisspy
  .from('products')
  .delete()
  .eq('id', 123)

Filter Operators

| Method | SQL Equivalent | |--------|----------------| | .eq(column, value) | = value | | .neq(column, value) | != value | | .gt(column, value) | > value | | .gte(column, value) | >= value | | .lt(column, value) | < value | | .lte(column, value) | <= value | | .like(column, pattern) | LIKE pattern | | .ilike(column, pattern) | ILIKE pattern | | .in(column, values) | IN (values) | | .is(column, value) | IS value (null, true, false) |

Ordering & Pagination

const { data, error } = await krisspy
  .from('products')
  .select('*')
  .order('price', { ascending: true })
  .order('name', { ascending: true }) // Multiple orders
  .limit(10)
  .range(0, 9) // First 10 items (offset 0, limit 10)

Functions

// Invoke a function
const { data, error } = await krisspy.functions.invoke('hello-world', {
  body: { name: 'John' },
})

// List functions
const { data: functions } = await krisspy.functions.list()

Tables

// List tables
const { data: tables } = await krisspy.listTables()

// Get table schema
const { data: columns } = await krisspy.getTableSchema('products')

TypeScript

The SDK is fully typed. You can define your table types:

interface Product {
  id: number
  name: string
  price: number
  created_at: string
}

const { data, error } = await krisspy
  .from<Product>('products')
  .select('*')

// data is Product[] | null

Error Handling

All methods return { data, error }:

const { data, error } = await krisspy.from('products').select('*')

if (error) {
  console.error('Error:', error.message)
  return
}

console.log('Products:', data)

Configuration

const krisspy = createClient({
  // Required
  backendId: 'your-backend-id',

  // Optional
  url: 'https://api.krisspy.ai', // Custom API URL
  apiKey: 'your-api-key',        // For authenticated requests
  headers: {                      // Custom headers
    'X-Custom-Header': 'value'
  },
  debug: true,                    // Enable debug logging
})

License

MIT