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

@jfvilas/plugin-kwirth-fileman

v0.14.3

Published

Frontend plugin for doing visual file management on Kubernetes containers

Downloads

69

Readme

Backstage frontend KwirthFileman plugin

This package is a Backstage frontend plugin for managing Kubernetes containers' filesystems visually in real-time via Kwirth.

KwirthFileman plugin allows you to use a file-explorer-like plugin for navigating through the filesystem, allowing users to examine the content, and also perform file operations like rename, delete, copy, move, copy/cut/paste...

In addtion users can also download files (or folders), upload files and even preview file content.

  • You need to install the Kwirth Backstage backend plugin.
  • You need to install Kwirth on your Kubernetes cluster, that is, this plugin is just another frontend for Kwirth.

Kwirth is a really-easy-to-use data-exporting system for Kubernetes that runs in only one pod (no database is needed), in your Desktop with a GUI or in a Docker container. Refer to Kwirth GitHub project for info on installation. Kwirth installation is one command away from you.

You can access Kwirth project here.

Version compatibility

Following table shows version compatibility between this Kwirth Backstage plugin and Kwirth Core server.

| Plugin Kwirth version | Kwirth version | |-|-| |0.14.2|0.5.21|

What is this plugin for?

This Backstage plugin adds Backstage a powerful feature for working with Kubernetes containers' filesystems and manage container data as users would do with a Gnome, the Windows file explorer or an Apple file manager.

When KwirthFileman is correctly installed and configured, it is possible to manage Kubernetes containers filesystems like this:

kwirth-running

This frontend plugin includes the visualization of filesystems. All needed configuration, and specially permission settings, are done in the backend plugin and the app-config.yaml. You can restrict access to pods, namespaces, clusters, containers, etc... by configuring permissions to be applied on the backend plugin.

How does it work?

Let's explain this by following a user working sequence:

  1. A Backstage user searchs for an entity in the Backstage instance.
  2. In the entity page there will be a new tab named 'KWIRTHFILEMAN'.
  3. When the user clicks on KWIRTHFILEMAN the frontend plugin sends a request to the backend Kwirth plugin asking for containers information on all Kubernetes clusters available.
  4. Next step is to identify the Kubernetes objects that match requested entity. As well as it occurs with other Backstage Kwirth plugins, Kwirth implements two strategies for getting the list of kubernetes objects that match:
  • Option 1. Your catalog-info contains an annotation of this type: backstage.io/kubernetes-id. In this case, the Backstage Kwirth backend plugin sends requests to the Kwirth instances that are running inside all the clusters added to Backstage. These requests ask for the following: 'Tell me all the pods that are labeled with the kubernetes-id label and do correspond with the entity I'm looking for'. In response to this query, each Kwirth instance answers with a list of pods and the namespaces where they are running.
  • Option 2. Your catalog-info contains an annotation of this type: backstage.io/kubernetes-label-selector. In this case, the Backstage Kwirth backend plugin sends requests to the Kwirth instances that are running inside all the clusters added to Backstage. These requests ask for the following: 'Tell me all the pods whose labels match with the kubernetes-label-selector label selector. In response to this query, each Kwirth instance answers with a list of pods and the namespaces where they are running.
  1. The Kwirth backend plugin checks then the permissions of the connected user and prunes the pods list removing the ones that the user has not access to.
  2. With the final pod list, the backend plugin sends requests to the Kwirth instances on the clusters asking for API Keys specific for accessing containers filesystems.
  3. With all this information, the backend builds a unique response containing all the pods the user have access to, and all the API keys needed to access the filesystems.

If everyting is correctly configured and tagged, the user should see a list of clusters. When selecting a cluster, the user should see a control for starting and stopping the file system browser. When the user clicks PLAY (on the right upper side), the file browser appears.

Installation

It's very simple and straightforward, it is in fact very similar to any other frontend Backstage plugin.

  1. Install corresponding Backstage backend plugin more information here.
  2. Install this Backstage frontend plugin:
    # From your Backstage root directory
    yarn --cwd packages/app add @jfvilas/plugin-kwirth-fileman @jfvilas/plugin-kwirth-frontend @jfvilas/plugin-kwirth-common @jfvilas/kwirth-common
  3. Make sure the Kwirth backend plugin is installed and configured.
  4. Restart your Backstage instance.

Configuration: Entity Pages

For Kwirth plugin to be usable on the frontend, you must tailor your Entity Page to include the Kwirth components.

1. Add the plugin as a tab in your Entity pages:

Firstly, import the plugin module.

// In packages/app/src/components/catalog/EntityPage.tsx
import { EntityKwirthFilemanContent } from '@jfvilas/plugin-kwirth-fileman';
import { isKwirthAvailable } from '@jfvilas/plugin-kwirth-common';

Then, add a tab to your EntityPage (the if is optional, you can keep the 'KwirthFileman' tab always visible if you prefer to do it that way).

// Note: Add to any other Pages as well (e.g. defaultEntityPage or webSiteEntityPage, for example)
const serviceEntityPage = (
  <EntityLayout>
    {/* other tabs... */}
    <EntityLayout.Route if={isKwirthAvailable} path="/kwirthfileman" title="KwirthFileman">
      <EntityKwirthFilemanContent/>
    </EntityLayout.Route>
  </EntityLayout>
)

You can setup some default options on the EntityKwirthfilemanContent component. These options are:

  • hideVersion (optional boolean) if set to true, version information updates will not be shown.
  • excludeContainers (optional string[]), an array of container names that will be excluded file browser. For example, if you have pods that include sidecars that you want your users to not to access, you can exclude them using this property.

What follows is an example on how to use these properties:

  ...
  <EntityLayout.Route if={isKwirthAvailable} path="/kwirthfileman" title="KwirthFileman">
    <EntityKwirthFilemanContent hideVersion excludeContainers={['istio-proxy']} />
  </EntityLayout.Route>
  ...

2. Label your catalog-info

Use one of these strategies:

  • Strategy 1: one-to-one. Add backstage.io/kubernetes-id annotation to your catalog-info.yaml for the entities deployed to Kubernetes you want to work with on Backstage. This is the same annotation that the Kubernetes core plugin uses, so, maybe you already have added it to your components. Exmaple:

    metadata:
      annotations:
        backstage.io/kubernetes-id: entity001
  • Strategy 2: use selectors. Add backstage.io/kubernetes-label-selector annotation to your catalog-info.yaml for the entities you want to work with. This is the same annotation that the Kubernetes core plugin uses, so, maybe you already have added it to your components. The label selector value follows Kubernetes label selector semantics. Example:

    metadata:
      annotaations:
        backstage.io/kubernetes-id: 'app=core,artifact=backend'
  1. Add proper labels to your Kubernetes objects so Backstage can link forward and backward the Backstage entities with the Kubernetes objects. To do this, you need to add labels to your Kubernetes YAML objects (please, don't get confused: annotations in Backstage YAML, labels in Kubernetes YAML).
  • VERY IMPORTANT NOTE: If you opted for using label selectors you have nothing new to add to your pods.

  • If you use labels (no label selectors), please note that the kubernetes-id label is on the deployment and on the spec pod template also. This is an example of a typical Kubernetes deployment with the required label:

    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: ijkl
      labels:
        backstage.io/kubernetes-id: ijkl
    spec:
      selector:
        matchLabels:
          app: ijkl
      template:
        metadata:
          name: 'ijkl-pod'
          labels:
            app: ijkl
            backstage.io/kubernetes-id: ijkl
        spec:
          containers:
            - name: ijkl
              image: your-OCI-image
        ...    

Ready, set, go!

If you followed all these steps, you would see a 'KwirthFileman' tab in your Entity Page, like this one:

kwirthfileman-tab

When you access the tab, if you have not yet tagged your entities you would see a message like this one explaning how to do that:

notfound

Once you tagged your entities and your Kubernetes objects correctly, you should see something similar to this:

available

KwirthFileman is ready for file system works!!

First select the cluster on the cluster card. On the card on right, you will see a control (play, pause and stop), press PLAY and the file borser should appear. Data is retrieved in real-time, so the file browser will be populed as dthe data arrives.

running

You can right-click items for performing actions:

item

You can switch to list view if you want to view file details (size, date...):

item-detail

You can perform loacl search for filtering file names:

search

Feel free to open issues and ask for more features.

Status information

When the file browser is launched, and all along the life of the stream (until it gets stopped or the window is closed), you will receive status information regarding the Kubernetes objects you are watching. This status information is shown on the top of the card (just at the immediate right of the cluster name) including 3 kinds of information:

  • Info. Informaiton regarding pod management at Kubernetes cluster level (new pod, pod ended or pod modified).
  • Warning. Warnings related to the data streaming.
  • Error. If there is an error in the stream, like invalid key use, or erroneous pod tagging, erros will be shown here.

The icons will light up in its corresponding color when a new message arrives.

It is important to undertand taht, as it occurs with other Kwirth plugins, data is refresed in real-time, so pods will appear and disappear according to Kubernetes activities.

This is how it feels: status info

If you click on one of the status icons when theyr are enableds (coloured), you will see the detail of the status. status detail