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

electro-viewer

v0.1.14

Published

A browser-based viewer for ElectroDB entities and DynamoDB data

Readme

Electro Viewer

⚠️ Under Development: This package is currently under active development. Some bugs and breaking changes can be expected.

Electro Viewer is a tool to help you quickly browse your ElectroDB enties by reading the configuration files in your project.

Features

  • 🔍 Browse ElectroDB Entities - Automatically discovers and displays your ElectroDB entity definitions
  • 🎯 Interactive Querying - Build and execute queries with a visual interface
  • 🔑 Key Builder - Helps construct partition and sort keys using ElectroDB's patterns
  • 📊 Entity Explorer - View entity schemas, indexes, and attributes
  • 🔐 AWS SSO Support - Works with AWS profiles and SSO authentication

Roadmap

  • [x] Read support
  • [x] Add support
  • [ ] Delete support
  • [ ] Update support
  • [ ] Custom Template String support
  • [x] Scan support
  • [ ] Run arbitrary queries
  • [ ] Query read units used statistics

Installation

Global Installation (Recommended)

pnpm link --global

Or in your project:

pnpm add -D electro-viewer

Configuration

Create an electro-viewer-config.ts file in your project root:

export const config = {
  // AWS profile name from ~/.aws/credentials or ~/.aws/config
  profile: "your-aws-profile",

  // AWS region (optional - uses profile's default if not specified)
  region: "us-east-1",

  // Paths or glob patterns to your ElectroDB entity files
  // Relative paths from your project root
  // Examples:
  //   ["./entities.ts"] - Single file
  //   ["./packages/*/entities.ts"] - Glob pattern
  //   ["./entities.ts", "./custom/*.ts"] - Mix of direct paths and globs
  entityConfigPaths: ["./path/to/your/entities.ts"],

  // Optional: Path to tsconfig.json (defaults to "./tsconfig.json")
  tsconfigPath: "./tsconfig.json",

  // Optional: Environment variables needed by your entities file
  env: {
    IS_PERMISSIONED_ENV: "false",
    NODE_ENV: "development",
  },
} as const;

export type ElectroViewerConfig = typeof config;

| Option | Type | Required | Default | Description | |--------|------|----------|---------|-------------| | profile | string | Yes | - | AWS profile name | | region | string | No | Profile default | AWS region | | entityConfigPaths | string[] | Yes | - | Paths or glob patterns to entity files | | tsconfigPath | string | No | "./tsconfig.json" | Path to tsconfig.json | | env | Record<string, string> | No | {} | Environment variables |

Usage

SST

If you're using SST, you can add a custom commmand to the multiplexer to automatically start Electro Viewer when you run sst start:

new sst.x.DevCommand("ElectroViewer", {
  link: [myTable],
  dev: {
    autostart: true,
    command: "pnpm electro-viewer",
  },
});

How It Works

Electro Viewer reads your ElectroDB entities configuration files to understand the PK/SK structure of your entities. When running, we'll use the AWS SDK along with the AWS CLI to query DynamoDB to make it easier to query entities.

Make sure your AWS profile has permissions to:

  • dynamodb:Query
  • dynamodb:GetItem
  • Access to the tables you want to query