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

skibbadb-express

v1.0.8

Published

Express.js integration plugin for SkibbaDB with automatic CRUD operations, pagination, filtering, and security features

Readme

SkibbaDB Express

A powerful Express.js wrapper for SkibbaDB that automatically generates REST APIs with built-in security, validation, pagination, and filtering capabilities.

Features

  • 🚀 Automatic REST API Generation - Transform SkibbaDB collections into REST endpoints
  • 🔒 Built-in Security - XSS protection, SQL injection prevention, input sanitization
  • 📄 Pagination Support - Page-based and offset-based pagination
  • 🔍 Advanced Filtering - Multiple filter operators and text search
  • 📊 Sorting - Flexible sorting with multiple fields
  • 🎣 Hooks System - Customize behavior with before/after hooks
  • Automatic Validation - Zod schema validation on all operations
  • 🛡️ Error Handling - Comprehensive error responses with detailed messages
  • 📚 OpenAPI Specs - Automatic generation of OpenAPI documentation

Quick Start

Installation

bun add skibbadb-express
# or
npm install skibbadb-express

Basic Usage

import express from 'express';
import { Database } from 'skibbadb';
import { createSkibbaExpress } from 'skibbadb-express';
import { z } from 'zod';

const app = express();
const db = new Database('sqlite:example.db');
const skibba = createSkibbaExpress(app, db);

// Define your schema
const userSchema = z.object({
    id: z.string(),
    name: z.string(),
    email: z.string().email(),
    age: z.number().int().positive(),
    role: z.enum(['user', 'admin']).default('user'),
});

const users = db.collection('users', userSchema);

// Register collection with REST endpoints
skibba.useCollection(users, {
    GET: {},
    POST: {},
    PUT: {},
    DELETE: {},
    basePath: '/api/users',
});

app.listen(3000, () => {
    console.log('Server running on http://localhost:3000');
});

This automatically creates these endpoints:

  • GET /api/users - List users with pagination and filtering
  • GET /api/users/:id - Get user by ID
  • POST /api/users - Create new user
  • PUT /api/users/:id - Update user
  • DELETE /api/users/:id - Delete user

An OpenAPI 3 document is generated automatically. Retrieve it with skibba.getOpenAPISpec() or serve it via skibba.serveOpenAPISpec().

Pagination and Filtering

Pagination

# Page-based pagination
GET /api/users?page=1&limit=10

# Offset-based pagination
GET /api/users?limit=20&offset=40

Filtering

# Equality filters
GET /api/users?role=admin&isActive=true

# Comparison filters
GET /api/users?age_gt=18&age_lt=65

# Text search
GET /api/users?name_like=%john%

# Array filters
GET /api/users?role_in=admin&role_in=moderator

Sorting

# Sort ascending (default)
GET /api/users?orderBy=name

# Sort descending
GET /api/users?orderBy=age&sort=desc

Combined Example

GET /api/users?page=2&limit=15&role=admin&age_gte=25&orderBy=name&sort=asc

See PAGINATION_FILTERING_EXAMPLES.md for more detailed examples.

Documentation

Installation

bun install

Development

# Run in development mode
bun run dev

# Run tests
bun test

# Run security tests
bun run test:security

This project was created using bun init in bun v1.1.38. Bun is a fast all-in-one JavaScript runtime.