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

@feathers-baas/core

v0.4.0

Published

Core Feathers.js v5 app factory for feathers-baas

Readme

@feathers-baas/core

Core app factory for feathers-baas — a production-grade Feathers.js v5 backend framework.

Installation

pnpm add @feathers-baas/core

Usage

import { createApp, logger } from '@feathers-baas/core'

const app = await createApp()
const config = app.get('config')
await app.listen(config.port)
logger.info({ port: config.port }, 'Server listening')

What's included

  • App factory (createApp) — boots a fully configured Feathers.js v5 app with typed config, middleware, auth, services, and plugins
  • Database adapters — PostgreSQL, MySQL, SQLite (via Knex), and MongoDB (native driver). Auto-detected from environment variables
  • Built-in services — users (with argon2id password hashing, email verification) and roles (RBAC with JSONB permissions, LRU-cached)
  • Authentication — JWT + local strategy with feathers-authentication-management for email verification and password reset
  • Health checksGET /health (liveness) and GET /health/ready (readiness with DB and Redis checks)
  • OpenAPI — auto-generated OpenAPI 3.1 spec at /openapi.json and Swagger UI at /docs
  • Plugin system — auto-discovers and installs plugins from package.json dependencies
  • Database seeding (seedDatabase) — creates default roles and admin user from ADMIN_EMAIL/ADMIN_PASSWORD env vars
  • Graceful shutdown — sequential drain of HTTP, BullMQ, and database connections with 30s timeout

Database support

| Database | Env var | Adapter | |------------|-------------------|----------------| | PostgreSQL | DATABASE_URL | Knex + pg | | MySQL | MYSQL_URL | Knex + mysql2| | SQLite | SQLITE_FILENAME | Knex + better-sqlite3 | | MongoDB | MONGODB_URL | Native mongodb driver |

Exactly one database must be configured. Knex adapters auto-convert between camelCase (TypeScript) and snake_case (DB columns).

Configuration

All configuration is via environment variables. See the root README for the full reference.

Required:

  • One database env var (see above)
  • JWT_SECRET (min 32 characters)

API

createApp(options?)

Creates and returns a configured Feathers application.

interface CreateAppOptions {
  configureServices?: (app: Application) => void
}

The optional configureServices callback is called after built-in services are registered, allowing you to add custom services.

seedDatabase(app)

Seeds default roles (admin, user) and creates an admin user from ADMIN_EMAIL/ADMIN_PASSWORD. Idempotent — safe to run multiple times.

registerServiceSchemas(name, schemas)

Registers TypeBox schemas for a service, enabling OpenAPI spec generation.

generateOpenApiSpec(app)

Returns an OpenAPI 3.1 JSON spec built from all registered service schemas.

License

MIT