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

kdn-devkit

v1.3.11

Published

KDN DevKit: Utility-first SDK for React apps

Downloads

59

Readme

WebKDN SDK

The WebKDN SDK is a utility-first layout and theming toolkit that helps rapidly scaffold consistent, modern web apps. The SDK provides opinionated building blocks with full customisation support.


✨ Features

  • App Shell System: The AppShell is a prebuilt layout system that provides a consistent page structure with navigation, theming, and view switching support. It’s designed to simplify building full-page apps with minimal setup, responsive behavior, and integrated theming.

App Shell

435416842-10670a95-006c-4456-a8b7-d2d7f9948c80.png

📦 Usage (with Menu)

<AppLayoutContext
  header="My Application"
  accent="navy"
  nav={
    <>
      <NavItem name="Home" href="/" />
      <NavItem name="Admin" href="/admin" />
      <NavItem name="External URL" href="https://google.com" />
    </>
  }
>
  <AppContentWrapper>
    <AppContent title="Profile" jsx={<div>Your Custom JSX Component</div>} />
  </AppContentWrapper>
</AppLayoutContext>

📦 Usage (without Menu)

You can skip the menu view entirely by wrapping your content in inside . This renders your JSX directly without needing AppContent views or navigation cards.

<AppContentWrapper>
  <AppJSX>
    <YourComponent />
    <AnotherComponent />
  </AppJSX>
</AppContentWrapper>

🖼 Logo as Header

The header prop accepts either a string or a JSX element. You can pass a logo like so:

<AppLayoutContext
  header={<img src="image.com/src" alt="Logo" width={120} />}
  ...
>

Warning: The size of the logo depends on the width prop you set.

🎨 Custom Themes

The app wrapper comes with built-in themes (navy, white, indigo, red, green, blue, yellow, gray, purple, and pink). You can use any of the built-in themes, or pass your own custom Tailwind classes as a theme object to the accent prop.

Example of a custom theme:

accent={{
  navBg: "bg-red-500",
  navText: "text-gray-900",
  navBorder: "border-yellow-300",
  navHover: "hover:bg-yellow-400",
  contentBg: "bg-yellow-100",
  contentText: "text-gray-900",
  skeleton: "bg-red-200"
}}

Each theme must include all required keys for layout and skeleton color to work correctly.

🦴 Skeleton Loader Support

The App Shell supports skeleton loading states thanks to the SkeletonWrapper component. It ensures a smooth, professional experience where users are never left staring at empty spaces. By wrapping your content and passing a loading boolean, the layout gracefully transitions between skeleton placeholders and real data. You can also supply custom skeleton components, allowing full control over the appearance and matching it perfectly to your app’s theme for a cohesive, polished UI.

const App = () => {
  const [loading, setLoading] = useState(true);
  const [data, setData] = useState<string | null>(null);

  useEffect(() => {
    const fetchData = async () => {
      setLoading(true);
      // Simulated API call
      const result = await new Promise<string>((resolve) =>
        setTimeout(() => resolve('This is the profile page content.'), 3000),
      );
      setData(result);
      setLoading(false);
    };

    fetchData();
  }, []);

  return <SkeletonWrapper loading={loading}>{data}</SkeletonWrapper>;
};

The SkeletonWrapper automatically uses the correct color based on your current theme.

Tip: It is highly recommended to wrap your entire content block in a single SkeletonWrapper instead of wrapping multiple smaller components individually. This ensures consistent styling and layout during loading transitions.