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

@skyvexsoftware/stratos-sdk

v0.5.5

Published

Plugin SDK for Stratos — types, hooks, and UI components

Readme

@skyvexsoftware/stratos-sdk

The Stratos Plugin SDK provides typed access to shell APIs, shared UI components, and utility functions for building Stratos plugins.

Installation

pnpm add @skyvexsoftware/stratos-sdk

Getting Started

Scaffold a new plugin project:

pnpx create-stratos-plugin

This generates a ready-to-develop plugin with Tailwind CSS, TypeScript, and Vite preconfigured.

Development

  1. Open the Stratos app with --dev flag
  2. In your plugin directory, run:
pnpm dev

Your plugin auto-connects to the running Stratos app and appears in the sidebar. Code changes auto-reload.

Project Structure

my-plugin/
├── plugin.json           # Plugin manifest (name, version, author, settings)
├── package.json
├── vite.config.ts        # Uses createPluginConfig from SDK
├── tsconfig.json
├── src/
│   ├── ui/
│   │   ├── index.tsx     # UI entry (default export: React component)
│   │   └── global.css    # Tailwind CSS
│   └── background/       # Optional: main process module
│       └── index.ts      # export default createPlugin({...})
└── assets/
    ├── icon-light.svg    # Sidebar icon (dark theme)
    └── icon-dark.svg     # Sidebar icon (light theme)

Building

pnpm build                # Build for distribution

Produces dist/ with bundled UI, background module (if any), manifest, and assets. Zip and upload to the Skyvex website.

Vite Config

The SDK provides createPluginConfig which handles bundling, externals, dev server auto-connect, and asset copying:

import { createPluginConfig } from "@skyvexsoftware/stratos-sdk/vite";
import tailwindcss from "@tailwindcss/vite";

export default createPluginConfig({
  ui: { entry: "src/ui/index.tsx" },
  background: { entry: "src/background/index.ts" }, // optional
  vite: {
    plugins: [tailwindcss()],
  },
});

The vite option accepts any Vite config to merge in (plugins, resolve, css, etc.).

Plugin Manifest

plugin.json defines your plugin's metadata. Background modules don't need manifest configuration — the shell discovers them automatically if background/index.js exists in the built output.

{
  "$schema": "https://cdn.skyvexsoftware.com/schemas/stratos-plugin.json",
  "id": "my-plugin",
  "type": "airline",
  "name": "My Plugin",
  "version": "0.1.0",
  "description": "A Stratos plugin",
  "author": { "id": "my-org", "name": "My Organisation" },
  "icon_light": "icon-light.svg",
  "icon_dark": "icon-dark.svg"
}
  • type: "airline" (scoped to a virtual airline) or "user" (user-installed)
  • availableSettings: Optional array of setting definitions (boolean, text, number, list, etc.)

API Reference

UI Context

Access shell services from plugin components:

import { usePluginContext } from "@skyvexsoftware/stratos-sdk";

function MyComponent() {
  const {
    pluginId,
    auth,        // { isAuthenticated, token, user }
    airline,     // { id, name, icao, logo_light, logo_dark }
    config,      // { get(key, defaultValue?) } — airline-scoped settings
    navigation,  // { navigateTo, navigateToPlugin, navigateToShell }
    toast,       // { success, error, info, warning }
    logger,      // { info, warn, error, debug }
  } = usePluginContext();
}

Individual hooks are also available:

| Hook | Description | | ---------------------- | ---------------------------------------------- | | usePluginContext() | All shell services combined | | useSimData() | Real-time simulator data (RAF-throttled) | | useFlightPhase() | Current flight phase with selector support | | useFlightEvents() | Flight event log with comment mutations | | useFlightManager() | Low-level flight lifecycle control | | useTrackingSession() | High-level tracking state with derived fields | | useLandingAnalysis() | Landing rate, bounces, and settled analysis | | useShellAuth() | Authentication state and token | | useShellConfig() | Scoped configuration access | | useShellNavigation() | Route navigation utilities | | useShellToast() | Toast/notification functions | | usePluginLogger() | Scoped renderer-side logger |

Background Module

Optional main-process code with access to IPC, Express routes, SQLite, and more. Must use the createPlugin helper (imported from the /helpers subpath) with a default export:

import { createPlugin } from "@skyvexsoftware/stratos-sdk/helpers";

export default createPlugin({
  async onStart(ctx) {
    // ctx.logger   — scoped logger
    // ctx.config   — per-plugin config store (async)
    // ctx.ipc      — IPC handler registration
    // ctx.auth     — read-only auth token access (async)
    // ctx.server   — Express router registration
    // ctx.database — SQLite database access
    ctx.logger.info("MyPlugin", "Started");
  },
  async onStop(ctx) {
    ctx.logger.info("MyPlugin", "Stopped");
  },
});

Named exports are not supported — the shell requires the createPlugin default export pattern for type safety and validation.

UI Components

Pre-styled shadcn/ui components that match the Stratos design system:

import { Button, Card, CardContent, Input, Dialog } from "@skyvexsoftware/stratos-sdk";

Available: Button, Card, Dialog, Input, Label, Select, Badge, Separator, Tabs, Tooltip, AlertDialog, RadioGroup, Slider, Switch, Textarea.

Icons

The full Lucide icon set is available via STRATOS_ICONS:

import { STRATOS_ICONS, STRATOS_ICON_NAMES } from "@skyvexsoftware/stratos-sdk";

const Icon = STRATOS_ICONS["Helicopter"];

Or import icons directly from lucide-react in your plugin.

Types

import { FlightPhase, EventCategory } from "@skyvexsoftware/stratos-sdk";
import type { FlightData, PluginManifest, PluginContext } from "@skyvexsoftware/stratos-sdk";

Utilities

// Tailwind class merging
import { cn } from "@skyvexsoftware/stratos-sdk";
cn("bg-red-500", isActive && "text-white", className);

// Unit conversion helpers
import { weightFromLbs, formatAltitude } from "@skyvexsoftware/stratos-sdk/helpers";

Documentation

Full documentation is available at docs.skyvexsoftware.com.

Licence

MIT