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

blimu

v1.2.4

Published

Blimu - Authorization as a Service CLI

Downloads

104

Readme

blimu

Blimu - Authorization as a Service. This package provides the Blimu CLI tool for managing your authorization configuration and generating type-safe TypeScript types.

Installation

npm install blimu
# or
yarn add blimu
# or
pnpm add blimu

Usage

Codegen Command

Generate type augmentation files from your Blimu configuration:

# Generate type augmentation with defaults
# Looks for .blimu/config.mjs or .blimu/config.ts in current directory
# Outputs to .blimu/blimu-types.d.ts
blimu codegen

# With custom config path
blimu codegen --config ./custom/path/config.mjs

# With custom output path
blimu codegen --output ./types/blimu-types.d.ts

# With custom SDK package
blimu codegen --sdk-package @blimu/custom-backend

# All options together
blimu codegen --config .blimu/config.mjs --output .blimu/blimu-types.d.ts --sdk-package @blimu/backend

Command Options

  • --config <path>: Optional path to Blimu config file. If not provided, the CLI will look for .blimu/config.mjs or .blimu/config.ts in the current directory.
  • --output <path>: Optional output path for the generated type augmentation file. Defaults to .blimu/blimu-types.d.ts.
  • --sdk-package <name>: Optional SDK package name. Defaults to @blimu/backend.

Config File Format

The CLI looks for a Blimu configuration file in the .blimu/ directory. The config file should export a default object with the following structure:

// .blimu/config.mjs
export default {
  resources: {
    workspace: {},
    environment: {},
  },
  entitlements: {
    'workspace:read': {},
    'workspace:create': {},
  },
  plans: {
    free: {
      name: 'Free Plan',
      resource_limits: {
        workspace_count: 1,
      },
    },
    pro: {
      name: 'Pro Plan',
      resource_limits: {
        workspace_count: 10,
      },
    },
  },
};

The config file can be:

  • .mjs (ES Module JavaScript)
  • .js (JavaScript)
  • .ts (TypeScript - requires tsx or ts-node)

Generated Type Augmentation

The codegen command generates a TypeScript declaration file that augments the @blimu/backend SDK with union types based on your configuration:

  • ResourceType: Union of all resource types from your config
  • EntitlementType: Union of all entitlement types from your config
  • PlanType: Union of all plan types from your config
  • LimitType: Union of all resource limit types from your plans
  • UsageLimitType: Union of all usage-based limit types from your plans

This provides full type safety and autocomplete when using the Blimu SDK in your application.

SDK Packages

For programmatic access to the Blimu API, use the following SDK packages:

  • @blimu/backend - TypeScript SDK for Blimu Runtime API (resource management, roles, entitlements, usage tracking)
  • @blimu/client - TypeScript SDK for Blimu Client API (authentication, session management)
  • @blimu/nestjs - NestJS integration for Blimu
npm install @blimu/backend
# or
npm install @blimu/client
# or
npm install @blimu/nestjs

Development

To build the CLI from source:

yarn build
# or
npm run build

To run the CLI in development mode:

yarn dev
# or
npm run dev

Learn More

Visit https://blimu.com for documentation and more information.