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

sea-dev

v1.0.0

Published

This is a pnpm monorepo, with a few bits of Python on the side.

Readme

sea.dev monorepo

This is a pnpm monorepo, with a few bits of Python on the side.

Getting started

Docker needs to be running

You will need Node installed. Then you can install pnpm

npm install -g pnpm

Here are some of the main commands you will need:

# after adding dependencies
pnpm install

# run format on _all_ packages
pnpm run -r fmt

# lint only the main app
pnpm run --filter @sea/main lint

# fmt, lint, check, test all packages
pnpm run -r all

# build all dependencies of the apps
pnpm run --filter "{apps/**}^..." build

# run the main app
pnpm run --filter @sea/main dev

# or cd apps/main and then
pnpm run dev

Monorepo Structure

This is a pnpm workspace monorepo organized into applications and shared libraries.

Applications (apps/)

  • main - Main React web application (TanStack Start)
  • api - REST API service (Fastify)
  • workers - Hatchet async workers for background jobs
  • conversion-worker - Document conversion worker
  • posthog-proxy - PostHog analytics proxy

Shared Libraries (libs/)

Core Packages:

  • db - Database schema & migrations (Drizzle ORM)
  • schemas - Zod schemas & TypeScript types for API and database
  • dal - Data Access Layer (database queries and CRUD operations)
  • core - Core business logic (data extraction, chat, workflows)
  • ai - AI/LLM integration (agents, tools, prompts)

Infrastructure & Utilities:

  • clients - External service clients (Azure, GCP, Hatchet)
  • cache - Caching utilities (Upstash Redis)
  • config - Shared configuration
  • util - Utility functions
  • validators - Validation logic

UI & Presentation:

  • ui - React UI components (shadcn/ui)
  • widget - Embeddable widget (React)
  • widget-ng - Angular widget (separate codebase)

Development:

  • lint - Shared ESLint/Prettier configuration

Package Dependency Flow

┌─────────────┐
│    apps/    │  Applications consume all libraries
└──────┬──────┘
       │
       ▼
┌─────────────────────────────────────────┐
│  @sea/core, @sea/ai (Business Logic)    │
└──────┬──────────────────────────────────┘
       │
       ▼
┌─────────────────────────────────────────┐
│  @sea/dal (Data Access Layer)           │
└──────┬──────────────────────────────────┘
       │
       ▼
┌──────┬──────────────────────────────────┐
│  @sea/db (Database Schema)              │
│  @sea/schemas (Types & Validation)      │
└──────┬──────────────────────────────────┘
       │
       ▼
┌─────────────────────────────────────────┐
│  @sea/util, @sea/config (Foundation)    │
└─────────────────────────────────────────┘

Key Principles:

  • Schemas and types live in @sea/schemas
  • Database definitions live in @sea/db
  • Database queries live in @sea/dal
  • Business logic lives in @sea/core or @sea/ai
  • UI components are in @sea/ui (reusable) or app-specific folders

For AI Assistants: See CLAUDE.md for detailed development guidelines including package responsibilities, type placement, and coding standards.

See /apps/main/README.md for detailed setup and development instructions for the React app.

Environment Variables

The project requires several environment variables to be set in a .env file at the root of the project. Key variables include:

Required for Core Functionality

  • DATABASE_URL - PostgreSQL connection string
  • BETTER_AUTH_SECRET - Secret for authentication
  • OPENAI_API_KEY - OpenAI API key for LLM features

Analytics (PostHog)

  • POSTHOG_URL - PostHog API host (e.g., https://app.posthog.com or https://eu.posthog.com)
  • POSTHOG_KEY - PostHog project API key

See the main .env file for a full list of required variables. The .env file is gitignored for security.