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

openfga-ui

v1.0.0

Published

Standalone UI for OpenFGA - Authorization Model Explorer and Query Executor

Downloads

86

Readme

OpenFGA UI

A modern, feature-rich web interface for OpenFGA — the open-source Fine-Grained Authorization system. Explore authorization models, manage relationship tuples, run queries, and visualize access relationships all from your browser.

Live Demo


Features

Server Connection

  • Connect to any OpenFGA server instance
  • Three authentication methods: No auth, Pre-shared Key, and OIDC (client credentials flow)
  • Connection status indicator with auto-reconnect

Authorization Model Management

  • View models in Visual, DSL, or JSON formats
  • Edit models with a DSL editor featuring live syntax validation
  • Create new models from built-in templates
  • Browse model version history
  • Syntax highlighting for both DSL and JSON

Relationship Tuples

  • Full CRUD operations on relationship tuples
  • Real-time client-side filtering by user, relation, or object
  • Infinite scroll pagination for large datasets
  • Tuple detail side panel with one-click copy
  • Export tuples as JSON

Query Operations

  • Check — Verify if a user has a relationship with an object
  • Expand — See all users who have access to an object
  • List Objects — Find all objects a user can access
  • List Users — Find all users with access to an object
  • Context support for conditional authorization on all query types

Saved Queries

  • Save and reuse frequently run queries
  • Run saved queries individually or in bulk
  • Import/export query collections as JSON
  • Expected result validation for Check queries
  • Drag-and-drop reordering

Relationship Visualization

  • Interactive graph powered by ReactFlow
  • Filter by type and relation
  • Vertical and horizontal layout modes
  • Color-coded nodes by entity type
  • Automatic layout with the Dagre algorithm

Store Management

  • List, create, and switch between stores
  • Searchable store dropdown with infinite scroll pagination
  • Store metadata display (ID, created/updated timestamps)

UI/UX

  • Dark mode
  • Collapsible sidebar
  • Copy-to-clipboard throughout
  • Loading states and error handling
  • Responsive design

Tech Stack

| Layer | Technology | |---|---| | Framework | React 18 + TypeScript | | Build Tool | Vite | | Styling | Tailwind CSS | | State Management | Zustand | | Graph Visualization | ReactFlow + Dagre | | UI Components | Headless UI + Heroicons | | Deployment | Vercel |


Quick Start (npx)

Run instantly without installing:

npx openfga-ui

This starts a local server at http://localhost:3000 and opens your browser automatically.

Options

npx openfga-ui --port 8080        # Custom port
npx openfga-ui --host 0.0.0.0     # Bind to all interfaces
npx openfga-ui --no-open           # Don't auto-open browser

Global Install

npm install -g openfga-ui
openfga-ui

Development

Prerequisites

Setup

git clone https://github.com/nithish611/openfga-ui.git
cd openfga-ui
npm install

Dev Server

npm run dev

Open http://localhost:3000 in your browser.

Build

npm run build

Preview Production Build

npm run preview

Deployment

Vercel (Recommended)

The project includes a GitHub Actions workflow that automatically deploys to Vercel on every push to master.

Setup:

  1. Create a Vercel API Token

  2. Add these secrets to your GitHub repo (Settings > Secrets and variables > Actions):

    | Secret | Description | |---|---| | VERCEL_TOKEN | Your Vercel API token | | VERCEL_ORG_ID | Your Vercel team/org ID | | VERCEL_PROJECT_ID | Your Vercel project ID |

  3. Push to master — the deployment runs automatically.

Manual Deploy

npm install -g vercel
vercel --prod

Connecting to OpenFGA

  1. Open the app and enter your OpenFGA Server URL (e.g. http://localhost:8080)
  2. Select an authentication method:
    • None — No authentication required
    • Pre-shared Key — Enter the token configured via OPENFGA_AUTHN_PRESHARED_KEYS
    • OIDC — Provide token endpoint, client ID, and client secret
  3. Click Connect — your stores will load automatically

License

MIT