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

@cobaltcore-dev/aurora

v0.2.2

Published

Aurora OpenStack dashboard — server and client library

Readme

@cobaltcore-dev/aurora

An OpenStack dashboard library. Provides a ready-made Fastify server and a React UI component that you wire up in your own app.

Installation

npm install @cobaltcore-dev/aurora

Peer dependencies you must also install:

npm install react react-dom fastify

Quick start

Aurora has two entry points: server and client.

Server (src/server/server.ts)

import path from "path"
import { createServer } from "@cobaltcore-dev/aurora/server"

createServer({
  viteRoot: path.resolve(__dirname, "../.."), // root of your app (where dist/client lives)
  identityEndpoint: process.env.IDENTITY_ENDPOINT, // OpenStack Keystone URL
  bffEndpoint: process.env.BFF_ENDPOINT, // tRPC prefix, default "/polaris-bff"
  defaultEndpointInterface: process.env.DEFAULT_ENDPOINT_INTERFACE, // "public" | "internal"
  proxyUrl: process.env.GLOBAL_AGENT_HTTP_PROXY, // optional HTTP proxy (dev only)
  cephRegion: process.env.CEPH_REGION, // Ceph/S3 region for object storage
  imageMetadataExcludedProperties: process.env.IMAGE_METADATA_EXCLUDED_PROPERTIES, // comma-separated
  insecureCookies: process.env.INSECURE_COOKIES === "true", // disable Secure flag locally
}).then((server) => server.listen({ host: "0.0.0.0", port: 4000 }))

Client (src/client/App.tsx)

import { AuroraApp } from "@cobaltcore-dev/aurora/client"
import "@cobaltcore-dev/aurora/client/style.css" // include once at your app root

export function App() {
  return (
    <AuroraApp
      bffEndpoint="/polaris-bff" // must match the server's bffEndpoint
      theme="theme-light" // "theme-light" | "theme-dark"
      onThemeChange={(theme) => {
        // called when user toggles — persist however you like
        localStorage.setItem("theme", theme)
      }}
    />
  )
}

Configuration reference

createServer(config)

| Option | Type | Default | Description | | --------------------------------- | --------- | -------------------------- | ---------------------------------------------------------------- | | identityEndpoint | string | — | OpenStack Keystone v3 URL (required) | | bffEndpoint | string | "/polaris-bff" | URL prefix for all tRPC routes | | viteRoot | string | __dirname/../../ | Directory that contains dist/client/ in production | | defaultEndpointInterface | string | "public" | OpenStack service catalog interface | | proxyUrl | string | — | HTTP proxy for OpenStack calls (dev only, ignored in production) | | cephRegion | string | — | Ceph RGW region for S3 operations | | imageMetadataExcludedProperties | string | — | Comma-separated image metadata keys to hide in the UI | | cookieName | string | "dashboard-session-auth" | Override the session cookie name | | crossDomainCookie | boolean | true | Share cookie across subdomains | | insecureCookies | boolean | false | Disable Secure flag — only for HTTP-only local dev |

<AuroraApp />

| Prop | Type | Default | Description | | --------------- | ------------------------------- | ---------------- | -------------------------------------- | | bffEndpoint | string | "/polaris-bff" | Must match the server's bffEndpoint | | theme | "theme-light" \| "theme-dark" | "theme-light" | Initial theme | | onThemeChange | (theme) => void | — | Called when the user toggles the theme |

Environment variables

Your app reads these from .env and passes them to createServer(). Aurora itself never reads environment variables.

IDENTITY_ENDPOINT="https://keystone.example.com/v3/"
DEFAULT_ENDPOINT_INTERFACE="public"
BFF_ENDPOINT="/polaris-bff"
PORT="4000"

# Object storage (optional)
CEPH_REGION="ceph-objectstore-st1-region-1"

# Local dev only
INSECURE_COOKIES=true
# GLOBAL_AGENT_HTTP_PROXY=http://localhost:8888

The VITE_BFF_ENDPOINT variable (prefixed with VITE_) is read by Vite and passed to the client:

VITE_BFF_ENDPOINT="/polaris-bff"
<AuroraApp bffEndpoint={import.meta.env.VITE_BFF_ENDPOINT} />

Vite config

In development, point Vite at your own server plugin. In production no extra plugins are needed — aurora ships pre-built CSS and assets.

// vite.config.mjs
import { defineConfig } from "vite"
import react from "@vitejs/plugin-react-swc"
import viteFastify from "@fastify/vite/plugin"

export default defineConfig(({ mode }) => ({
  root: "./src/client",
  build: { outDir: "../../dist/client" },
  plugins: [mode !== "production" && viteFastify(), react()],
}))

Running the app

# Development (hot-reload)
tsx watch --env-file=.env src/server/server.ts

# Production
NODE_ENV=production tsx --env-file=.env src/server/server.ts

License

Apache-2.0