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

@skyhook-io/radar-app

v1.5.0

Published

Radar's full web UI as a reusable React component. Used by Radar's own binary and by external consumers like Radar Cloud.

Readme

@skyhook-io/radar-app

Radar's full web UI as a reusable React component. Used by Radar's own binary and by external host apps (e.g. Radar Hub) that want to embed the Radar UI inside their own frontend.

This package is source-only — it ships TypeScript + TSX files under src/. Consumers need a bundler that transpiles TSX (Vite, Next.js, esbuild, etc.).

Install

npm install @skyhook-io/radar-app

Peer deps: react >=19, react-dom >=19, react-router-dom >=7, @tanstack/react-query >=5, @skyhook-io/k8s-ui >=1.5.0, plus clsx, tailwind-merge, lucide-react, @xyflow/react, elkjs.

Use

import { RadarApp, setApiBase, setAuthHeadersProvider } from '@skyhook-io/radar-app';
import '@skyhook-io/radar-app/style.css';

setAuthHeadersProvider(() => ({ Authorization: `Bearer ${myToken()}` }));

export function ClusterPage({ clusterId }: { clusterId: string }) {
  return (
    <RadarApp
      apiBase={`/c/${clusterId}/api`}
      basename={`/c/${clusterId}`}
      navSlots={{
        embedded: true,
        brandSlot: <MyBrand />,
        contextSlot: <MyClusterSwitcher />,
        rightExtras: <MyUserMenu />,
      }}
    />
  );
}

See RadarAppProps + NavCustomization in the type declarations for the full surface.

Tailwind

Radar uses Tailwind v4 classes throughout. Your app's Tailwind config must scan Radar's source:

// tailwind.config.js or equivalent
content: [
  './src/**/*.{ts,tsx}',
  './node_modules/@skyhook-io/radar-app/src/**/*.{ts,tsx}',
  './node_modules/@skyhook-io/k8s-ui/src/**/*.{ts,tsx}',
],

Runtime config

Host apps can override Radar's runtime behavior without passing props:

  • setApiBase(url) — base URL for REST/SSE/WS requests. Default /api.
  • setBasename(value) — React Router basename. Default ''.
  • setAuthHeadersProvider(fn) — returns headers (e.g. Authorization) to attach to every request.
  • setCredentialsMode(mode) — fetch credentials mode (same-origin | include | omit).

Call these before mounting <RadarApp>.

Backwards compatibility

The RadarApp props (apiBase, basename, router, navSlots, queryClient) and the runtime-config setters are the stable surface. Adding to them is fine; removing or renaming is a breaking change.