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

@olwiba/docs

v0.1.27

Published

Documentation layouts, search, MDX helpers, and TanStack Start docs utilities built on @olwiba/cn

Readme

What This Is

@olwiba/docs is the published docs-shell package in the Nexus ecosystem.

It provides layout, navigation, search, MDX components, theming, and TanStack Start integration utilities for building docs sites.

Consumers should import shared docs-shell primitives from @olwiba/docs, not from @olwiba/cn.

Package Chain

@olwiba/cn   -> shared primitives and low-level UI building blocks
@olwiba/docs -> published docs shell, search, and MDX utilities
@olwiba/ui   -> app-level shells and higher-level product UI

Installation

bun add @olwiba/docs @olwiba/cn

Peer dependencies: @olwiba/cn, @tanstack/react-router, react, react-dom

@import 'fumadocs-ui/css/neutral.css';
@import 'fumadocs-ui/css/preset.css';
@import '@olwiba/docs/styles';

Quick Start

1. Create the source loader

import { docs } from 'fumadocs-mdx:collections/server';
import { createSource } from '@olwiba/docs/source';

export const source = createSource({
  source: docs.toFumadocsSource(),
  baseUrl: '/docs',
});

2. Provide docs search at the app root

import { DocsProvider } from '@olwiba/docs';

export function RootDocument({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body>
        <DocsProvider searchItems={[{ label: 'Components', href: '/docs/components' }]}>
          {children}
        </DocsProvider>
      </body>
    </html>
  );
}

3. Render a docs page shell

import { Suspense } from 'react';
import { createFileRoute } from '@tanstack/react-router';
import browserCollections from 'fumadocs-mdx:collections/browser';
import defaultMdxComponents from 'fumadocs-ui/mdx';
import { useFumadocsLoader } from 'fumadocs-core/source/client';
import { DocsLayout, mdxComponents } from '@olwiba/docs';

export const Route = createFileRoute('/docs/$')({ component: Page });

const clientLoader = browserCollections.docs.createClientLoader({
  component({ default: MDX }) {
    return <MDX components={{ ...defaultMdxComponents, ...mdxComponents }} />;
  },
});

function Page() {
  const loaderData = Route.useLoaderData();
  const data = useFumadocsLoader(loaderData);

  return (
    <DocsLayout
      loaderData={loaderData}
      pageTree={data.pageTree}
      sections={[{ name: 'Get Started', href: '/docs' }]}
    >
      <Suspense fallback={<div>Loading...</div>}>
        {clientLoader.useContent(data.path, {})}
      </Suspense>
    </DocsLayout>
  );
}

4. Optional: production server helper

import { createServer } from '@olwiba/docs/server';

export default createServer();

createServer wraps the TanStack Start SSR handler with a Hono static-file server for dist/client.

What's Included

Docs shell Layout, header, footer, sidebar, TOC, and mobile nav
Search Dialog, button, and search integration
MDX Component map, code fences, callouts, and API reference
Sandbox Interactive code playground with <Sandbox id="..." /> in MDX
Themes Active theme provider, selectors, and UI mode helpers
Server TanStack Start SSR + static file server helper

Subpath Exports

  • @olwiba/docs/source - createSource, loader, lucideIconsPlugin
  • @olwiba/docs/mdx - mdxComponents
  • @olwiba/docs/server - createServer
  • @olwiba/docs/themes - theme helpers
  • @olwiba/docs/dev-banner - createDevBannerPlugin, printBanner

Ecosystem

Contributing

Bug reports, pull requests & feature requests are welcome. Open an issue first for anything beyond a small fix.