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

specra

v0.1.8

Published

A modern documentation library for Next.js with built-in versioning, API reference generation, full-text search, and MDX support

Readme

Specra

A modern documentation library for Next.js that makes it easy to create beautiful, feature-rich documentation sites. To view the docs, visit Specra Docs.

Features

  • 📝 MDX Support - Write documentation in Markdown with React components
  • 📚 Multi-Version Docs - Support multiple documentation versions seamlessly
  • 🔌 API Reference Generation - Auto-generate API docs from OpenAPI, Postman, or Specra formats
  • 🔍 Full-Text Search - Integrated MeiliSearch support for fast search
  • 🎯 Tab Groups - Organize content into multiple navigation tabs
  • 🌓 Dark Mode - Built-in theme switching with system preference detection
  • 🎨 Customizable - Highly configurable with Tailwind CSS
  • Fast - Built on Next.js with optimized performance
  • 📱 Responsive - Mobile-friendly design out of the box
  • 🔥 Hot Reload - Instant updates during development

Installation

npm install specra
# or
yarn add specra
# or
pnpm add specra

Quick Start

1. Create a new Next.js app (if you don't have one)

npx create-next-app@latest my-docs
cd my-docs

2. Install Specra

npm install specra

3. Set up your app structure

my-docs/
├── app/
│   ├── layout.tsx          # Re-export from Specra
│   ├── page.tsx            # Your landing page
│   └── docs/
│       └── [version]/
│           └── [...slug]/
│               └── page.tsx  # Re-export from Specra
├── docs/                   # Your MDX content
│   └── v1.0.0/
│       └── getting-started.mdx
├── public/
│   └── logo.png
└── specra.config.json      # Specra configuration

4. Configure app/layout.tsx

// app/layout.tsx
export { default } from 'specra/app/layout'
export { generateMetadata } from 'specra/app/layout'

5. Configure app/docs/[version]/[...slug]/page.tsx

// app/docs/[version]/[...slug]/page.tsx
export { default } from 'specra/app/docs-page'
export {
  generateStaticParams,
  generateMetadata
} from 'specra/app/docs-page'

6. Create specra.config.json

{
  "site": {
    "title": "My Documentation",
    "description": "Awesome docs built with Specra",
    "url": "https://docs.example.com",
    "logo": "/logo.png"
  },
  "theme": {
    "defaultMode": "system",
    "primaryColor": "#0070f3"
  },
  "navigation": {
    "sidebar": true,
    "breadcrumbs": true
  }
}

7. Create your first doc

---
title: Getting Started
description: Learn how to get started with our platform
---

# Getting Started

Welcome to the documentation!

8. Import globals.css

Add to your app/globals.css:

@import 'specra/styles';

/* Your custom styles */

9. Run development server

npm run dev

Visit http://localhost:3000/docs/v1.0.0/getting-started to see your docs!

Configuration

See Configuration Guide for full documentation.

Upgrading

Simply update the package to get latest features and bug fixes:

npm update specra

Your content and configuration stay the same - only the SDK updates!

Why Specra?

Specra is designed to be the easiest way to create documentation for your projects. It handles all the complex parts (versioning, search, API references) while letting you focus on writing great content.

License

MIT

Authors

dalmasonto, arthur-kamau