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

@pyreon/zero

v0.11.3

Published

Pyreon Zero — zero-config full-stack framework powered by Pyreon and Vite

Downloads

1,219

Readme

@pyreon/zero

Core meta-framework for building full-stack apps with Pyreon and Vite.

Install

bun add @pyreon/zero

Features

  • File-based routing[param], [...catchAll], _layout, _error, _loading, (groups)
  • Rendering modes — SSR (streaming + string), SSG, ISR, SPA (per-route configurable via renderMode export)
  • API routes.ts files in src/routes/api/ export HTTP method handlers (GET, POST, PUT, DELETE)
  • Server actionsdefineAction() for mutations with automatic client/server boundary detection
  • Per-route middleware — route files export middleware using @pyreon/server's signature
  • Components<Image> (lazy load, srcset, blur-up), <Link> (prefetch, active state), <Script> (loading strategies)
  • Theme — Dark/light/system with theme signal, <ThemeToggle>, and anti-flash inline script
  • Fonts — Google Fonts self-hosting at build time, local fonts, size-adjusted fallbacks
  • Image optimization — Build-time processing via ?optimize imports (WebP/AVIF, blur placeholders)
  • SEO — Sitemap, robots.txt, JSON-LD helpers (Vite plugin + dev middleware)
  • MiddlewarecacheMiddleware(), securityHeaders(), corsMiddleware(), rateLimitMiddleware(), compressionMiddleware()
  • Adapters — Node.js, Bun, static
  • TestingcreateTestContext(), testMiddleware(), createTestApiServer(), createMockHandler()
  • Dev overlay — Styled error overlay with source-mapped stack traces for SSR errors

Usage

// vite.config.ts
import pyreon from "@pyreon/vite-plugin"
import zero from "@pyreon/zero"

export default {
  plugins: [pyreon(), zero({ mode: "ssr", ssr: { mode: "stream" } })],
}

Subpath Exports

| Export | Description | | --- | --- | | @pyreon/zero | Vite plugin, config, adapters, components, middleware | | @pyreon/zero/client | Client-side entry (startClient) | | @pyreon/zero/config | defineConfig, resolveConfig | | @pyreon/zero/image | <Image> component | | @pyreon/zero/link | <Link>, useLink, createLink | | @pyreon/zero/script | <Script> component | | @pyreon/zero/theme | Theme system and <ThemeToggle> | | @pyreon/zero/font | Font optimization plugin | | @pyreon/zero/cache | Cache and security middleware | | @pyreon/zero/seo | SEO plugin, sitemap, robots.txt | | @pyreon/zero/image-plugin | Image optimization Vite plugin | | @pyreon/zero/actions | defineAction, createActionMiddleware | | @pyreon/zero/api-routes | API route utilities and middleware | | @pyreon/zero/cors | CORS middleware | | @pyreon/zero/rate-limit | Rate limiting middleware | | @pyreon/zero/compression | Compression middleware | | @pyreon/zero/testing | Test utilities for middleware and API routes |

License

MIT