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

keystone-design-bootstrap

v1.0.71

Published

Keystone Design Bootstrap - Sections, Elements, and Theme System for customer websites

Readme

Keystone Design Bootstrap

The shared design system and runtime package powering all Keystone customer websites. Provides themed sections, UI elements, the member portal, server-side API helpers, form handling, Meta Pixel tracking, and the Next.js app shell.


Documentation

| Doc | Description | |---|---| | docs/architecture.md | Package structure, rendering model, theme system, publishing workflow | | docs/server-api.md | All data-fetching functions, caching strategy, environment variables | | docs/navigation-and-layout.md | KeystoneRootLayout, SiteConfig, CTA URL resolution, dynamic nav, mobile sticky footer | | docs/member-portal.md | Member portal setup, tabs, auth flow, iframe booking, messaging | | docs/forms.md | Dynamic forms, ContactSection, form route, custom form pattern | | docs/meta-tracking.md | Meta Pixel initialization, automatic events, custom form tracking | | docs/site-customization.md | Per-site config, style overrides, component customization hierarchy | | docs/theme-system.md | Creating and registering themes, CSS tokens, component variants |


Quick start (new customer site)

1. Environment variables

# .env.local
API_URL=http://localhost:3000/api/v1
API_KEY=your-api-key-here

2. Config

// config/index.ts
import type { SiteConfig } from 'keystone-design-bootstrap/types';

export const config: SiteConfig = {
  site: { title: "Business Name", description: "…", theme: "aman" },
  navigation: { header: […], footer: [[…], […], […], […]] },
};

3. Root layout

// app/layout.tsx
import { KeystoneRootLayout } from 'keystone-design-bootstrap/next/layouts/root-layout';
import { config } from '@/config';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return <KeystoneRootLayout config={config}>{children}</KeystoneRootLayout>;
}

4. CSS imports

/* app/globals.css */
@import "keystone-design-bootstrap/styles/fonts.css";
@import "keystone-design-bootstrap/styles/theme.css";
@import "keystone-design-bootstrap/styles/typography.css";
@import "keystone-design-bootstrap/styles/style-overrides.aman.css"; /* match your theme */
@import "../styles/custom-overrides.css";

Package exports reference

| Import path | Contents | |---|---| | keystone-design-bootstrap/sections | All section components | | keystone-design-bootstrap/elements | UI element components | | keystone-design-bootstrap/portal | PortalPage and portal sub-components | | keystone-design-bootstrap/next/layouts/root-layout | KeystoneRootLayout | | keystone-design-bootstrap/next/routes/consumer-auth | createConsumerAuthHandlers | | keystone-design-bootstrap/next/routes/form | createFormRouteHandlers (re-exported as POST) | | keystone-design-bootstrap/lib/server-api | Server-side data fetching functions | | keystone-design-bootstrap/lib/cta-urls | resolveCtaUrls, resolvePortalPath, isExternalCtaUrl | | keystone-design-bootstrap/tracking | firePixelEvent, setPixelUserData | | keystone-design-bootstrap/types | TypeScript types | | keystone-design-bootstrap/hooks | Client-side hooks | | keystone-design-bootstrap/styles/* | CSS files |


Local development

Use yalc to test local builds in a customer site:

# In this package
npm run build && yalc publish

# In the customer site
yalc update keystone-design-bootstrap

# To restore the published npm version
yalc remove keystone-design-bootstrap && npm install

Creating a new theme

See docs/theme-system.md for the full guide.

Quick checklist:

  1. Register in src/themes/index.ts
  2. Install fonts via Fontsource
  3. Create src/styles/style-overrides.{theme}.css
  4. Create component variants (optional)
  5. Add to design gallery
  6. npm run lint && npm run typecheck && npm run build — must all pass

Available themes: classic, aman, barelux, balance