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

flatspace

v1.0.11

Published

Flat-file CMS server — buildless Bun SSR, YAML content, zero-hop stack

Readme

flatspace

Flat-file CMS — buildless Bun SSR, YAML content, git-based versioning.

npm

Live demo

https://anentrypoint.github.io/flatspace/

Quick start

bun install
bun run --hot src/server.js

Open http://localhost:3000

Build static site (GitHub Pages)

bun run build

Output lands in docs/. GitHub Pages serves from docs/ on main.

Content

All content lives in content/ as YAML files:

content/
  pages/        # home.yaml, contact.yaml, ...
  posts/        # blog posts
  globals/      # header.yaml, footer.yaml
  categories/   # taxonomy
  media/        # image metadata (filename, alt, mimeType)
  forms/        # contact form definition
  search/       # search index entries

Edit any YAML file, save — flatspace auto-commits to git. Push to deploy.

Admin panel

The admin panel at /admin provides a Payload-like CMS experience with no login required — access is controlled via git push/pull permissions. Git tracks who changed what.

Features

  • Sidebar navigation with collapsible toggle and mobile hamburger
  • Dark/light mode with system preference detection
  • Sortable columns — click any column header to sort
  • Bulk operations — select multiple documents, bulk delete
  • Global search — Cmd/Ctrl+K searches across all collections
  • Draft/Publish workflow — Save Draft or Publish buttons, status badges in list view
  • Rich text editor — WYSIWYG toolbar (bold, italic, headings, lists, links, code, blockquote) with Lexical JSON output
  • Relationship picker — searchable modal for linking related documents
  • Media library — thumbnail grid picker, drag-and-drop upload
  • Blocks editor — add/remove/reorder layout blocks with schema-driven fields
  • Document drawer — slide-out panel for inline editing of related documents
  • Live preview — iframe-based preview panel in edit view
  • Version history — git-backed history with author, diff view, and restore to prior version
  • Breadcrumbs — clickable navigation: Dashboard > Collection > Document
  • Auto-discovery — add a collection schema file and it appears in the admin

API

GET    /api/:collection              # list (supports where, sort, limit, page)
GET    /api/:collection/:id          # get document
POST   /api/:collection              # create document
PATCH  /api/:collection/:id          # update document
DELETE /api/:collection/:id          # delete document
GET    /api/globals/:slug            # get global
PATCH  /api/globals/:slug            # update global

Stack

  • Runtime: Bun (server + build)
  • CSS: Tailwind v4 + RippleUI
  • Store: js-yaml flat files, zero database
  • Versioning: git (auto-commit on save, git log for history)
  • Admin: server-rendered HTML, schema-driven field rendering

npm

npm install flatspace
import { createServer } from 'flatspace'
createServer({ port: 3000, contentDir: 'content', publicDir: 'public' })
npx flatspace aggregate --input data.json --output out.json

Publishing

Push to main → GH Actions auto-bumps patch version and publishes to npm. Required secret: NPM_TOKEN in repo Settings → Secrets.