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

@oawofolu/ml-backstage

v1.0.5

Published

Custom ML/AI unified GUI/panel built with Backstage.

Readme

ML Backstage Plugin

Custom ML/AI unified GUI/panel built with Backstage.

  • Install App Accelerator: (see https://docs.vmware.com/en/Tanzu-Application-Platform/1.0/tap/GUID-cert-mgr-contour-fcd-install-cert-mgr.html)
tanzu package available list accelerator.apps.tanzu.vmware.com --namespace tap-install
tanzu package install accelerator -p accelerator.apps.tanzu.vmware.com -v 1.0.1 -n tap-install -f resources/app-accelerator-values.yaml
Verify that package is running: tanzu package installed get accelerator -n tap-install
Get the IP address for the App Accelerator API: kubectl get service -n accelerator-system

Publish Accelerators:

tanzu plugin install --local <path-to-tanzu-cli> all
tanzu acc create ml-backstage-plugin-accelerator --git-repository https://github.com/agapebondservant/ml-backstage-plugin-accelerator.git --git-branch main

Setting up Backstage Plugin

Prerequisites: see Backstage docs

  1. Install Backstage:
source .env
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
npm install --global yarn
yarn add @mui/icons-material @mui/material @emotion/styled @emotion/react [email protected] @backstage/plugin-kubernetes \
@material-ui/icons @mui/styles @mui/lab axios js-yaml -W;
yarn add --cwd packages/app @backstage/plugin-kubernetes;
yarn add --cwd packages/backend @backstage/plugin-kubernetes-backend @backstage/plugin-catalog-backend-module-github;

NOTE: Steps 2-9 are only required if a Backstage app has not already been generated.

  1. Create Backstage app (follow prompts as shown):
source .env
echo $BACKSTAGE_APP_NM | npx @backstage/create-app@latest
cd $BACKSTAGE_APP_NM
yarn install
yarn dev
  1. Install Postgres dependency (on Mac - one-time op; skip if already performed):
xcode-select --install
sudo port install postgresql15
echo "ALTER USER postgres WITH PASSWORD '$BACKSTAGE_PG_PASSWORD'" | PGPASSWORD=postgres psql -U postgres
  1. Install the Postgres backend package for Backstage (one-time op; skip if already performed):
yarn add --cwd packages/backend pg
  1. Install the GitHub App integration and follow the instructions as prompted (one-time op; skip if already performed):
yarn backstage-cli create-github-app $BACKSTAGE_GITHUB_ORG
  1. Update app-config.yaml as directed by the instructions in the prior GitHub App integration step.

  2. Update configuration for the new backend package and GitHub App integration:

cp resources/*.yaml .
  1. (For running locally): Start the Kubernetes API proxy:
kubectl proxy
  1. Start the Backstage app:
yarn dev
  1. To create a new plugin:
echo "<name of plugin>" | yarn new --select plugin
  1. To create a new component extension,
  • Create the new component extension template:
export PLUGIN_NAME=<name of plugin>
export COMPONENT_NAME=<name of component>
echo "$PLUGIN_NAME" | yarn new --select plugin
rm -rf plugins/$PLUGIN_NAME/src/components/ExampleFetchComponent
mv plugins/$PLUGIN_NAME/src/components/ExampleComponent plugins/<name of component>/src/components/$PLUGIN_NAME
  • Add the code below to the plugin.ts file (replace COMPONENT_NAME and PLUGIN_NAME with the values configured above, and PLUGIN_NAME_CAMELCASE with the plugin in camel case - example, "mlworkflows-card" becomes "mlworkflowsCardPlugin"):
import { createComponentExtension } from '@backstage/core-plugin-api';
export const COMPONENT_NAME = PLUGIN_NAME_CAMELCASE.provide(
  createComponentExtension({
    component: {
      lazy: () => import('./components/COMPONENT_NAME').then(m => m.COMPONENT_NAME),
    },
  }),
);
  • Add the code below to the index.ts file (replace COMPONENT_NAME with the values configured above):
export { COMPONENT_NAME } from './plugin';
  1. Create a new backend plugin:
export BACKEND_PLUGIN_NAME=<name of plugin>
echo "$BACKEND_PLUGIN_NAME" | yarn new --select backend-plugin
yarn add --cwd packages/backend @internal/plugin-${BACKEND_PLUGIN_NAME}-backend@^0.1.0

Run the Backstage plugin locally

Run:

yarn dev

Deploy the Backstage plugin as a TAP workload

  • Deploy the workload:
tanzu apps workload create ml-backstage-plugin-app -f config/workload.yaml --yes
  • Tail the logs of the main app:
tanzu apps workload tail ml-backstage-plugin-app --since 64h
  • Once deployment succeeds, get the URL for the main app:
tanzu apps workload get ml-backstage-plugin-app     #should yield image-processor.default.<your-domain>
  • To delete the app:
tanzu apps workload delete ml-backstage-plugin-app --yes