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

@skaile/provider-k8s

v0.2.0

Published

Kubernetes (ClusterIP + port-forward) deploy target for @skaile/workspaces

Readme

@skaile/provider-k8s

A Kubernetes deploy target for @skaile/workspaces. v0.1.0 stands a workspace up as a Pod behind a ClusterIP Service and reaches it over a local kubectl port-forward tunnel.

Install

skaile plugin install @skaile/provider-k8s

The @kubernetes/client-node SDK is an optional peer dependency — install it in your project so the provider can lazy-load it at runtime:

npm install @kubernetes/client-node

Add it to skaile.yaml:

plugins:
  - "@skaile/provider-k8s@^0.1.0"

deploy:
  target: k8s
  config:
    namespace: default
    image: ghcr.io/me/workspace:1
    port: 8080

Config

| Field | Type | Default | Notes | |---|---|---|---| | namespace | string | default | Target namespace | | image | string | — | Workspace image (required — bring-your-own) | | port | number | 8080 | Container + service port | | serviceAccount | string | — | Pod service account | | env | record | {} | Extra container env | | serviceType | ClusterIP | ClusterIP | Only ClusterIP in v0.1.0 | | localForwardPort | number | — | Local port for the forward tunnel | | buildStrategy | local \| remote \| managed | local | k8s is bring-your-own-image |

How it works

  • @kubernetes/client-node is lazy-loaded via a dynamic import() inside create()/restore(), so this package builds and typechecks without the SDK installed (offline-safe).
  • Creates a Pod + ClusterIP Service and waits for the Pod to reach Running.
  • The provider itself spawns and manages a kubectl port-forward svc/<name> tunnel — you don't establish it. It resolves once kubectl reports it is forwarding, exposes ws://127.0.0.1:<bound-local-port> (the port kubectl actually bound, honouring localForwardPort when set or letting the OS pick a free one otherwise), and kills the child process on stop(). restore() re-establishes the tunnel, preferring the previously bound port.
  • tlsTermination: "edge" (TLS terminates at the cluster ingress; the port-forward tunnel is loopback-only on the operator's machine).

Limitations (v0.1.0)

  • ClusterIP + port-forward only. NodePort / LoadBalancer / Ingress are future work (they add ingress class, annotations, and TLS cert source knobs).
  • Bring-your-own-image: in-cluster builds are not performed.
  • Requires @kubernetes/client-node and a working kubeconfig in the host environment at runtime.