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

@prorobotech/openapi-k8s-toolkit

v1.2.0-alpha.18

Published

ProRobotech OpenAPI k8s tools

Readme

📘 openapi-k8s-toolkit

A modular, extensible UI toolkit for building Kubernetes-powered applications — without writing repetitive CRUD logic or UI boilerplate.

This toolkit provides:

  • 🧩 Composable UI blocks (tables, terminals, log viewers, dashboards, cards)
  • ⚙️ Smart data providers that fetch and normalize Kubernetes and OpenAPI-driven resources
  • 📄 Schema-based OpenAPI/Kubernetes forms with validation, presets, and dynamic layouts
  • 📡 Real-time Websocket live data streaming for Pods, Events, Logs, Terminals, etc.
  • 🏗 A powerful Factory Engine that renders pages and components from declarative configuration (JSON/YAML)
  • 🎨 Customizable Storybook Docs with live configuration playgrounds

Whether you're building a full Kubernetes console, a DevOps dashboard, a tenant-aware SaaS admin, or automation portal — this toolkit helps you build fast, stays extensible, and avoids reinventing the same patterns.


🚀 Key Concepts

🔧 1. Dynamic Component Factory

Instead of manually wiring dozens of components together, define what should render — not how.

type: EnrichedTable
data:
  id: pods-table
  cluster: dev
  k8sResourceToFetch:
    plural: pods
    apiVersion: v1

The factory resolves:

  • Routing context (cluster, namespace, resource)
  • Data fetching configuration
  • Permissions
  • UI layout behavior

…and renders the right component — fully wired.

Storybook includes live playgrounds for each factory type.


📡 2. Smart Data Hooks

The toolkit includes advanced hooks that abstract K8s + OpenAPI internals:

  • useK8sSmartResource
  • useMultiQuery
  • live event streams
  • generative OpenAPI form helpers

They handle:

  • label/field selectors
  • live logs and terminals
  • resource normalization
  • error states + retry logic
  • batching and subscription reuse

📑 3. Kubernetes Tables

Tables are:

  • Cluster/WebSocket aware
  • Automatically enriched using Kubernetes metadata
  • Customizable (columns, sorting, grouping, row actions, links to forms, etc.)

🧪 4. Forms Powered by OpenAPI + Kubernetes

Forms are auto-built from CRDs, OpenAPI schemas, and Kubernetes metadata — but still fully overrideable:

  • custom fields
  • computed fields
  • presets & blueprints
  • etc

Think "Kubernetes + JSON Schema form generator on steroids." 💉💪


📚 5. Storybook Included

Every major module ships with a docs-only Storybook entry and an interactive control system to generate YAML/JSON config. You can preview factories components if they are not tightly wired to backend

🛠 Installation & Usage

npm install openapi-k8s-toolkit

Then import what you like

✨ Why this exists

Building Kubernetes-aware UIs repeatedly results in the same pain:

  • API quirks
  • forms from CRDs
  • live resource tables
  • labels/fields selectors
  • permissions
  • routing based on cluster/namespace/object

This toolkit abstracts those patterns into reusable building blocks so teams can focus on intent and experience, not plumbing.


🤝 Contributing

Check this out