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

@tinyrack/tinyauth-server

v0.1.0

Published

OpenID Connect Provider with OAuth2 support

Downloads

833

Readme

TinyAuth

A lightweight, self-hosted OpenID Connect provider for modern applications.

CI npm server npm standalone License: MIT Node.js

Documentation · Configuration · 한국어


TinyAuth is a self-hosted OpenID Connect (OIDC) provider that gives your apps a standards-based login system without bringing in a full identity platform.

It supports OAuth2/OIDC authorization code flows, PKCE, password login, passkeys, TOTP, social login, and a customizable multilingual frontend. Run it as a standalone server, ship it with Docker, or embed the server package in your own Node.js application.

Features

  • OIDC/OAuth2 provider with authorization code flow, PKCE, discovery, token, userinfo, introspection, and revocation endpoints
  • Multiple sign-in methods including password, passkeys/WebAuthn, GitHub, Google, Apple, and generic OAuth/OIDC providers
  • Two-factor authentication with TOTP and passkey-based second factors
  • Config-driven deployment through a single YAML file
  • Customizable frontend with themes, branding, background images, language selection, and terms flows
  • Database support for SQLite and PostgreSQL
  • Standalone or embedded usage through Docker, the standalone CLI, or @tinyrack/tinyauth-server

Installation

Docker

docker run --rm \
  -p 8080:8080 \
  -v ./config.yaml:/opt/config.yaml \
  ghcr.io/tinyrack-net/tinyauth:latest

Standalone CLI

npm install -g @tinyrack/tinyauth-standalone
tinyauth serve --config-path ./config.yaml

Server package

Use the server package when you want to embed TinyAuth in your own Node.js runtime.

npm install @tinyrack/tinyauth-server

Quick Start

Create a minimal config.yaml:

app:
  host: http://localhost:8080
  port: 8080

security:
  session_secret: change-me-session-secret
  hash_secret: change-me-hash-secret

database:
  type: sqlite
  path: ./data.db

basic_authentication_methods:
  password:
    enabled: true
  passkey:
    enabled: true

Start TinyAuth:

docker run --rm \
  -p 8080:8080 \
  -v ./config.yaml:/opt/config.yaml \
  ghcr.io/tinyrack-net/tinyauth:latest

Verify the OIDC discovery endpoint:

curl http://localhost:8080/.well-known/openid-configuration

Examples

  • examples/clients/nextjs-ssr — Next.js OIDC client with server-side token handling
  • examples/clients/react-spa — React SPA using authorization code flow with PKCE
  • examples/servers/node-hono-sqlite — Hono + SQLite deployment using @tinyrack/tinyauth-server and the bundled frontend

Documentation

For configuration guides, client integration examples, deployment notes, and the API reference, visit the TinyAuth documentation site.

License

MIT