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

@novahelm/platform

v2026.6.1

Published

NovaHelm platform — workspaces, teams, projects, modules, and platform services.

Readme

@novahelm/platform

Multi-tenant platform engine for NovaHelm — project management, schema builder, DDL engine, module system, backup engine, platform sync, and 60+ tRPC routers powering the NovaHelm Console.


Quick Start

pnpm add @novahelm/platform
import { initPlatformResolver, createProjectStore, createDbManager } from "@novahelm/platform";

// Wire project-scoped DB resolution into the registry
initPlatformResolver();

// Create the project store (LRU cache of project connections)
const store = createProjectStore({ maxProjects: 50 });

// Create the DB manager (create, migrate, seed, backup, restore)
const dbManager = createDbManager({ adminDatabaseUrl: "postgres://..." });

Schema Builder (DDL Engine)

Dashboard admins can design tables via UI. The DDL engine generates and executes Postgres DDL:

import {
  generateCreateTableDDL,
  generateAddColumnDDL,
  generateSearchVectorDDL,
  FIELD_TYPES,
} from "@novahelm/platform";

// 18 field types: text, number, boolean, relation, json, date, etc.
const ddl = generateCreateTableDDL("blog_posts", [
  { name: "title", type: "text", required: true, searchable: true },
  { name: "body", type: "richtext", searchable: true },
  { name: "published", type: "boolean", defaultValue: "false" },
]);

// Adds ALTER TABLE for new columns
const alterDdl = generateAddColumnDDL("blog_posts", {
  name: "category",
  type: "text",
  indexed: true,
});

Module System

Register, load, and manage modules with typed extension points:

import {
  registerModule,
  loadModuleExtensions,
  getModuleRouters,
  getModuleNavItems,
  getModulePages,
} from "@novahelm/platform";

// Register all built-in and standalone modules at startup
import { registerAllModules } from "@novahelm/platform";
registerAllModules();

// Load a module's extension points (routers, nav, schema, workers, etc.)
await loadModuleExtensions("project-docs");

// Query aggregated extensions
const routers = getModuleRouters();
const navItems = getModuleNavItems();

Project Scoping

Run code in a project-scoped context where getDb() and getConfig() return project-specific instances:

import { runInProjectScope, getCurrentProject } from "@novahelm/platform";

await runInProjectScope(projectContext, async () => {
  const project = getCurrentProject(); // typed ProjectContext
  const db = getDb(); // returns project-scoped DB
  await db.select().from(posts);
});

Backup Engine

Full backup and restore with encryption, checksums, and retention policies:

import {
  executeDatabaseBackup,
  executeDatabaseRestore,
  pruneRetention,
  DEFAULT_RETENTION_POLICY,
} from "@novahelm/platform";

const result = await executeDatabaseBackup({
  databaseUrl: "postgres://...",
  destinationClient: s3Client,
  encryptionKey: "...",
});

// Prune old backups according to retention tiers
await pruneRetention(db, projectId, DEFAULT_RETENTION_POLICY);

Key Exports

| Category | Exports | |----------|---------| | Init | initPlatformResolver() | | Schema | projects, platformUsers, customTables, projectModules, 30+ table exports | | DDL | generateCreateTableDDL, generateAddColumnDDL, generateAlterColumnDDL, generateSearchVectorDDL, FIELD_TYPES | | Modules | registerModule, loadModuleExtensions, getModuleRouters, getModuleNavItems, getModulePages, reviewModule | | Scoping | runInProjectScope, getCurrentProject, createProjectStore, createScopedEnqueue | | Backup | executeDatabaseBackup, executeDatabaseRestore, executeStorageBackup, pruneRetention | | Auth | createPlatformAuth, hashPassword, verifyPassword | | Env | encryptValue, decryptValue, rotateEncryptionKey | | Sync | handlePlatformSyncRequest, compareVectorClocks, mergeVectorClocks | | Routers | 60+ create*Router factory functions for the Console tRPC API | | Services | registerBuiltinServices, defineService, listServices | | Git | initRepo, commitFiles, listBranches, listCommits, getFileTree | | Hosting | addSite, removeSite, updateSite, checkDns, getSslStatus |