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

@archhypo/plugin-hypo-stage-backend

v0.1.2

Published

Backend plugin for [HypoStage](https://github.com/ArchHypo/hypo-stage): REST API, database, and services for architectural hypothesis management in [Backstage](https://backstage.io).

Readme

HypoStage Backend Plugin

Backend plugin for HypoStage: REST API, database, and services for architectural hypothesis management in Backstage.

Package: @archhypo/plugin-hypo-stage-backend

Important: The frontend package @archhypo/plugin-hypo-stage must be installed in the same Backstage app to use this backend.


Features

  • HypothesisService — CRUD for hypotheses and technical planning
  • REST API — Full API for the frontend
  • Database — Knex migrations; PostgreSQL or SQLite
  • Catalog integration — Entity refs and team filtering

Compatibility

  • Backstage: v1.16.0+
  • Node.js: 20+

Installation

1. Install packages

From your Backstage app root:

yarn --cwd packages/app add @archhypo/plugin-hypo-stage
yarn --cwd packages/backend add @archhypo/plugin-hypo-stage-backend

2. Register the backend plugin

In packages/backend/src/index.ts:

import { createBackend } from '@backstage/backend-defaults';

const backend = createBackend();
// ... other plugins ...
backend.add(import('@archhypo/plugin-hypo-stage-backend'));
backend.start();

3. Configure the database

The plugin uses Backstage's database. Add to app-config.yaml:

PostgreSQL (recommended):

backend:
  database:
    client: pg
    connection:
      host: ${POSTGRES_HOST}
      port: ${POSTGRES_PORT}
      user: ${POSTGRES_USER}
      password: ${POSTGRES_PASSWORD}
      database: backstage
    plugin:
      hypo-stage:
        connection:
          database: backstage_plugin_hypo_stage

SQLite (dev):

backend:
  database:
    client: better-sqlite3
    connection: ':memory:'

Migrations run automatically when the backend starts. No manual step required.


REST API

The plugin mounts these routes under the Backstage backend:

| Method | Path | Description | |--------|------|-------------| | GET | /hypotheses | List hypotheses (query: entityRef, team, focus) | | POST | /hypotheses | Create hypothesis | | GET | /hypotheses/:id | Get hypothesis by ID | | PUT | /hypotheses/:id | Update hypothesis | | DELETE | /hypotheses/:id | Delete hypothesis | | GET | /hypotheses/:id/events | Get evolution events | | GET | /hypotheses/entity-refs | List entity refs for autocomplete | | GET | /hypotheses/teams | List teams for filter | | GET | /hypotheses/referenced-entity-refs | Entity refs referenced by hypotheses | | GET | /hypotheses/stats | Aggregated stats | | POST | /hypotheses/:id/technical_plannings | Add technical planning item | | PUT | /technical_plannings/:id | Update technical planning item | | DELETE | /technical_plannings/:id | Delete technical planning item |


Database

Migrations

Migrations run automatically on backend startup. Located in migrations/:

| Migration | Tables | |-----------|--------| | 20250716_000001_create_hypothesis.js | hypothesis | | 20250827_000002_create_hypothesis_events.js | hypothesis_events (evolution history) | | 20250902_00003_create_technical_planning.js | technical_planning |

Plugin-specific database

For production, use a dedicated database per plugin. Configure backend.database.plugin.hypo-stage.connection as shown above. The main backend.database.connection can point to the default Backstage DB; the plugin uses its own connection when plugin.hypo-stage is set.


Frontend configuration

The frontend must be configured separately. See the frontend package README or repository for:

  • Routes and sidebar
  • API registration (HypoStageApiRef / HypoStageApiClient)

Documentation

Full documentation, Docker, standalone run, and E2E tests: github.com/ArchHypo/hypo-stage