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

gravito-official-site

v0.1.5

Published

> **Singularity** Project Code: `gravito-official-site`

Readme

🌌 Gravito Official Website (v1.0.0-rc)

Singularity Project Code: gravito-official-site

Welcome to the official website repository for Gravito - The micro-kernel framework for the next generation of backend applications.

This project serves as both the production-ready official site and the flagship reference implementation of the Gravito "Singularity" architecture.


🚀 Features & Architecture

This website demonstrates the full power of the Gravito ecosystem, specifically the Micro-Monolith pattern:

1. Core Architecture (@gravito/core)

  • Micro-Kernel: Built on @gravito/core, leveraging the lifecycle hook system for modularity.
  • Photon Adapter: Utilizing @gravito/photon as the high-performance HTTP layer running on Bun.
  • Kinetic Modules:
    • @gravito/ion: Seamless server-side routing with modern SPA user experience.
    • @gravito/prism: Server-side template rendering for critical SEO paths.
    • @gravito/stasis: Optimized caching strategies.

2. Modern Frontend

  • React + Inertia.js: A hybrid approach delivering the speed of an SPA with the simplicity of a backend-driven app.
  • Vite: Ultra-fast build tool handling HMR and static asset bundling.
  • TailwindCSS: Utilitarian design system providing the "Cosmic" dark mode aesthetic.
  • Framer Motion: High-performance animations (Hero effects, Feature cards).

3. Documentation System

  • Markdown-driven: Documentation is sourced directly from the monorepo's docs/ directory.
  • Smart Link Resolution: Automated transformation of relative .md links into clean, routable web URLs.
  • Syntax Highlighting: Powered by Shiki for beautiful code snippets.

4. SEO & Performance

  • Gravito SEO Engine:
    • Dynamic Robots.txt & Sitemap.xml generation via @gravito/luminosity-adapter-photon.
    • No static files to maintain; routing rules are defined in code (src/config/seo.ts).
  • Image Optimization:
    • Responsive WebP handling (GravitoImage component).
    • Pure SVG Tech Stack icons for zero-latency loading.
  • I18n: Native support for English (/en) and Chinese (/zh) locales.

🛠️ Project Structure

examples/official-site/
├── src/
│   ├── bootstrap.ts       # App wiring (Core + Modules + Middleware)
│   ├── index.ts           # Entry point
│   ├── config/            # SEO, App configurations
│   ├── controllers/       # Backend logic (Home, Docs, API)
│   ├── services/          # Business logic (Markdown processing)
│   ├── routes/            # Route definitions
│   └── client/            # Frontend (React)
│       ├── pages/         # Inertia Page Components
│       ├── components/    # Shared UI Components
│       └── app.tsx        # Client entry point
├── static/                # Public assets (Images, Manifest)
├── vite.config.ts         # Build configuration
└── build-static.ts        # SSG Build Script

⚡ Quick Start

Prerequisites

  • Bun (v1.0+)
  • Node.js (v18+ for some build tools, though Bun handles most)

Development

# 1. Install dependencies (from root monorepo or project dir)
bun install

# 2. Start the development environment
# This launches both the Backend Server (Port 3000) and Vite HMR Server
bun run dev

Visit http://localhost:3000 to see the site.

Building for Production

# Build client-side assets
bun run build:client

# Start the production server
bun run start

Static Site Generation (SSG)

This project also supports exporting to a static site (e.g. for GitHub Pages):

bun run build:static

🎨 Asset Optimization

Tech Stack Icons

Gravito uses Pure SVG Paths for technology logos (Bun, Photon, TS) to ensure pixel-perfect rendering at any scale without external network requests. See TechIcon component in src/client/pages/Home.tsx.

Hero Images

Images are automatically served in responsive WebP formats:

  • hero-768w.webp
  • hero-1280w.webp
  • hero-2560w.webp

📄 License

MIT © Carl Lee