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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@diqi/blueprint

v0.52.0

Published

A registry of reusable UI sections and components for rapid website development. Includes both a deployable component preview app and a publishable component registry.

Downloads

111

Readme

Lantern UI

A registry of reusable UI sections and components for rapid website development. Includes both a deployable component preview app and a publishable component registry.

Structure

The registry contains:

  • Sections: Reusable page sections like navbars and footers
  • Styles: A common CSS file for styling the components
  • Preview App: A Next.js app for browsing and testing components

Available Components

This registry ships with ready‑to‑use templates for common website sections — FAQ, Footer, Hero, Logos, Navbar, and Testimonials. For layouts that need extra flexibility, reach for the generic Block and Blocks components, which you can compose into virtually any section. Hero, Block, and Blocks accept MediaItems's as props, which can display images, video, Calendly embeds, code samples, logo grids, or simple forms.

Usage

Installation

pnpm dlx shadcn@latest add https://github.com/lanterndata/regist/raw/refs/heads/main/registry/navbar.json https://github.com/lanterndata/regist/raw/refs/heads/main/registry/footer1.json

Importing Components

import Navbar from '@/components/sections/navbar/navbar';
import Footer1 from '@/components/sections/footer/footer-1';

function MyPage() {
  return (
    <>
      <Navbar
        companyName="Acme Inc"
        logo="/logo.png"
        links={[{ href: '/features', label: 'Features' }]}
        buttons={[{ href: '/signup', label: 'Sign Up', variant: 'default' }]}
      />

      <main>{/* Your page content */}</main>

      <Footer1
        logo="/logo.png"
        companyName="Acme Inc"
        columns={
          [
            /* ... */
          ]
        }
      />
    </>
  );
}

Importing Component List

You can also view the complete component list for programmatic usage using this url:

https://raw.githubusercontent.com/lanterndata/component-library/refs/heads/main/registry/index.json

Development

Using the library locally

The project can also be used as component library, to link it locally you should run:

pnpm i && pnpm build:lib

Then go to project where you want to use the library and run

pnpm link ~/path-to-component-library

Running the Component Preview + Dev Registry Locally

The project includes a built-in component preview tool for easy development:

pnpm install
pnpm dev

This enables the component preview at http://localhost:3031 and the registry at http://localhost:3030.

Running Dev Registry Locally

pnpm registry:dev

Now you can use:

pnpm dlx shadcn@latest add http://localhost:3030/navbar.json http://localhost:3030/footer1.json

Building

Building the registry

pnpm build:registry

The compiled output will be in the registry directory. Run this to update the generated registry files after changes to the registry or running a local registry.

Building the Preview App

To build the preview app for deployment:

pnpm build:app

This creates a production build of the Next.js app.

Building Both

To build both the component registry and preview app:

pnpm build

Deploying the Preview App

After building, you can start the preview app with:

pnpm start

The preview app can also be deployed to any platform that supports Next.js applications (Vercel, Netlify, etc.).

Adding new components

  1. Add component code under src/components

  2. Add component in registry.ts file

    • Under registryDependencies[] array specify shadcn and local registry dependencies:
      • For shadcn just use the component name like button
      • For local dependencies use $registryBase/editable-link this syntax
    • Under files[] array specify all local files needed for component like:
    {
      "path": "components/sections/faq/faq-3.tsx",
      "type": "registry:block"
    }
    • Under name specify component name which will be used for pnpm shadcn add command
    • Under componentName specify the component name which will be used in code like: <FAQ1 />
    • Under previewProps add sample props for component to be used on preview app
    • You can omit types.ts and ui.css dependencies, they will be automatically added for all component in build script
  3. Test registry

    • Run pnpm dev to start the dev registry and component preview
    • Check the component preview at http://localhost:3031 to ensure it looks right
    • Use the registry at http://localhost:3030 to add components to your project
    • Run pnpm build:registry to build the registry for commit
    • Run pnpm format to format all code, including the registry