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

@tayacrystals/lore

v0.1.3

Published

A modern, Fumadocs-inspired documentation site template built with Astro 5, Tailwind CSS v4, and MDX.

Readme

Lore

A modern, Fumadocs-inspired documentation site template built with Astro 5, Tailwind CSS v4, and MDX.

✨ Features

  • 🚀 Lightning Fast — Built on Astro's zero-JS architecture with partial hydration
  • 🌙 Dark Mode — Seamless dark/light theme switching with system preference detection
  • 📝 MDX Support — Rich content authoring with custom components (Callouts, Tabs, Steps, Cards)
  • 🔍 Full-Text Search — Fast client-side search powered by Pagefind (Cmd+K / Ctrl+K)
  • 🎨 Tailwind CSS v4 — Modern CSS-first configuration using @theme design tokens
  • 📱 Fully Responsive — Three-column docs layout that adapts to any screen size
  • 🎯 Type-Safe — Content collections with Zod schema validation
  • 💅 Syntax Highlighting — Beautiful code blocks via Expressive Code
  • 🗺️ Auto-Generated — Sidebar, table of contents, and prev/next navigation
  • Accessible — Semantic HTML with ARIA labels and keyboard navigation

🏗️ Project Structure

├── src/
│   ├── content/
│   │   └── docs/              # MDX documentation pages
│   │       ├── index.mdx
│   │       ├── getting-started/
│   │       └── guides/
│   ├── components/
│   │   ├── global/            # Navbar, Footer, Theme toggle, Search
│   │   ├── docs/              # Sidebar, TOC, Breadcrumbs, PrevNext
│   │   ├── mdx/               # Callout, Card, Tabs, Steps, Accordion
│   │   └── home/              # Hero, Features, CodeDemo, Testimonials
│   ├── layouts/
│   │   ├── BaseLayout.astro   # Root layout with dark mode script
│   │   ├── DocsLayout.astro   # 3-column docs layout
│   │   └── HomeLayout.astro   # Landing page layout
│   ├── pages/
│   │   ├── index.astro        # Homepage
│   │   ├── docs/[...slug].astro # Dynamic docs routes
│   │   └── 404.astro
│   ├── styles/
│   │   ├── global.css         # Tailwind v4 @theme tokens + base styles
│   │   └── prose.css          # MDX typography styles
│   ├── utils/
│   │   ├── sidebar.ts         # Sidebar tree builder
│   │   ├── toc.ts             # Table of contents generator
│   │   └── navigation.ts      # Prev/next page navigation
│   ├── data/
│   │   └── navigation.ts      # Navigation config
│   └── content.config.ts      # Content collection schema
├── public/                    # Static assets
├── astro.config.mjs          # Astro configuration
└── package.json

🚀 Quick Start

  1. Install dependencies

    bun install
    # or
    npm install
    # or
    pnpm install
  2. Start development server

    bun run dev

    Open http://localhost:4321 in your browser.

  3. Build for production

    bun run build
  4. Preview production build

    bun run preview

📝 Writing Documentation

Creating Pages

Add .mdx files to src/content/docs/:

---
title: My Page
description: A brief description
order: 1
group: guides  # Optional: for grouping in sidebar
---

Your content here...

Using Components

Import and use custom components in your MDX:

import Callout from '../../../components/mdx/Callout.astro';

<Callout type="tip">
  This is a helpful tip!
</Callout>

Available components:

  • Callout — Note, tip, warning, danger alerts
  • Card & CardGrid — Link cards with icons
  • Tabs & Tab — Tabbed content switcher
  • Steps & Step — Numbered sequential instructions
  • Accordion — Collapsible content sections

See the /docs/guides/components page for full examples.

🎨 Customization

Design Tokens

Edit src/styles/global.css to customize colors, fonts, and spacing:

@theme {
  --color-fd-primary: oklch(0.623 0.214 259);
  --color-fd-background: oklch(1 0 0);
  --font-sans: "Inter Variable", sans-serif;
  /* ... */
}

Navigation

Configure top navigation and sidebar groups in src/data/navigation.ts:

export const topNav: NavLink[] = [
  { label: "Docs", href: "/docs" },
  { label: "Guides", href: "/docs/guides/writing-content" },
];

export const sidebarGroups: SidebarConfig = {
  "getting-started": { label: "Getting Started", order: 1 },
  guides: { label: "Guides", order: 2 },
};

🔧 Tech Stack

📄 License

MIT

🙏 Acknowledgments

Inspired by Fumadocs — a beautiful documentation framework.