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

@zephyrdb/browser

v0.1.0

Published

Official JavaScript client for ZephyrDB - serverless database built for developers who move fast

Readme

ZephyrDB JavaScript Client

The official JavaScript client for ZephyrDB - the serverless database built for developers who move fast.

npm version License: MIT

What is ZephyrDB?

ZephyrDB is a next-generation serverless database with global edge network, sub-50ms latency, and unlimited scaling. Build without limits.

Coming Q2-Q3 2025:

  • 🌍 Global Edge Network - 15+ regions worldwide
  • Instant Scaling - Zero to millions instantly
  • 🔄 Real-time Events - Live data updates
  • 💰 Pay-as-you-Scale - Start free, pay for usage
  • 🔧 Cloud Functions - Edge computing made simple

Installation

NPM (React, Vue, Angular, etc.)

npm install zephyr-db

CDN (Vanilla HTML/JS)

<script src="https://cdn.jsdelivr.net/npm/zephyr-db@latest/dist/zephyr-db.min.js"></script>

Quick Start

Modern JavaScript/React

import ZephyrDB from 'zephyr-db';

const db = new ZephyrDB('your-project-id', {
    onConnect: () => console.log('🚀 Connected!'),
    secure: true
});

// Create data
await db.create('users/john', {
    name: 'John Doe',
    email: '[email protected]'
});

// Get data
const user = await db.get('users/john');

// Update data
await db.update('users/john/email', '[email protected]');

// Real-time updates
db.watch('update', 'users/john')
    .then(data => console.log('Updated:', data));

Vanilla JavaScript

<script src="https://cdn.jsdelivr.net/npm/zephyr-db@latest/dist/zephyr-db.min.js"></script>
<script>
    const db = new ZephyrDB('your-project-id');
    
    async function createUser() {
        await db.create('users/jane', { name: 'Jane Smith' });
        const user = await db.get('users/jane');
        console.log('User:', user);
    }
    
    createUser();
</script>

React Example

import { useState, useEffect } from 'react';
import ZephyrDB from 'zephyr-db';

function App() {
    const [db] = useState(new ZephyrDB('your-project-id'));
    const [users, setUsers] = useState([]);
    
    const addUser = async () => {
        await db.create(`users/${Date.now()}`, { 
            name: 'New User',
            email: '[email protected]'
        });
        loadUsers();
    };
    
    const loadUsers = async () => {
        const data = await db.get('users');
        setUsers(Object.values(data || {}));
    };
    
    useEffect(() => {
        loadUsers();
        // Real-time updates
        db.watch('create', 'users').then(() => loadUsers());
    }, []);
    
    return (
        <div>
            <button onClick={addUser}>Add User</button>
            {users.map(user => <div key={user.email}>{user.name}</div>)}
        </div>
    );
}

API Reference

Constructor Options

const db = new ZephyrDB(projectId, {
    onConnect: () => {},      // Connection callback
    onClose: () => {},        // Disconnect callback  
    secure: true,             // Use WSS (recommended)
    reconnect: true,          // Auto-reconnect
    maxReconnectAttempts: 5   // Max reconnection tries
});

Core Methods

Data Operations

await db.create(path, data)           // Create new data
await db.get(path)                    // Read data
await db.update(path, data)           // Update data  
await db.delete(path)                 // Delete data
await db.exist(path)                  // Check if exists
await db.keys(path)                   // Get all keys

Real-time Features

db.watch(command, path)               // Watch for changes
db.on(command, path)                  // Listen for events
await db.stop(event, command, path)   // Stop watching

Advanced

await db.run(path, args)              // Run cloud functions
await db.size(path)                   // Get collection size
await db.sort(path, options)          // Sort data

Error Handling

const db = new ZephyrDB('project-id', {
    onError: (error) => console.error('DB Error:', error),
    onClose: () => console.log('Connection lost')
});

try {
    await db.create('users/123', { name: 'John' });
} catch (error) {
    console.error('Failed:', error);
}

Get Started with ZephyrDB

1. Join the Waitlist

ZephyrDB launches Q2 2025. Join our waitlist for early access.

2. Early Access Benefits

  • 🎁 Free credits to get started
  • 🏆 Lifetime benefits for early adopters
  • 🚀 Priority support

3. Migration from Firebase

// Firebase - Complex setup
import { initializeApp } from 'firebase/app';
import { getFirestore, doc, setDoc } from 'firebase/firestore';
const app = initializeApp(config);
const firestore = getFirestore(app);
await setDoc(doc(firestore, 'users', 'john'), data);

// ZephyrDB - Simple and clean
import ZephyrDB from 'zephyr-db';
const db = new ZephyrDB('project-id');
await db.create('users/john', data);

License

MIT © 2025 ZephyrDB

Support


Ready to build fast? Join the ZephyrDB waitlist today.

Built with ❤️ for developers who move fast.