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

ui-plugin-template

v0.81.0

Published

A template for building custom UI plugins for Vertesia

Readme

Vertesia Custom App Sample

A sample project demonstrating how to build a custom app/plugin for the Vertesia platform using React, TypeScript, and Vite.

Overview

This project serves as a template for building Vertesia plugins that can be integrated into the Vertesia platform. It includes:

  • React 19 with TypeScript for type-safe component development
  • Tailwind CSS for styling
  • Vite for fast development and optimized builds
  • Dual build modes: standalone app and plugin library

Project Structure

src/
├── app.tsx          # Main app component with router
├── plugin.tsx       # Plugin entry point for Vertesia integration
├── routes.tsx       # Application route definitions
├── pages.tsx        # Page components
└── main.tsx         # Dev mode entry point

Getting Started

Installation

pnpm install

Development

Run the app in development mode with hot module replacement:

pnpm dev

The app will be available at https://localhost:5173.

Building

Build both standalone app and plugin library:

pnpm build

Or build individually:

# Build standalone app
pnpm build:app

# Build plugin library
pnpm build:lib

The plugin library will be output to the dist/lib/ directory.

Deployment

Since this is a standard web application, you can deploy it to any static hosting provider (Vercel, Netlify, Cloudflare Pages, AWS S3, etc.).

Deploying to Vercel

Vercel is a practical deployment option with a generous free tier. You can very simply deploy your standalone app using the Vercel CLI.

Setup

Install the Vercel CLI globally:

npm i -g vercel

Deployment Steps

  1. Login to Vercel:

    vercel login
  2. Deploy to preview:

    vercel

    This will create a preview deployment and provide you with a URL to test your app.

  3. Deploy to production:

    vercel --prod

For more information, visit the Vercel CLI documentation.

Update App Manifest with Deployment URL

After deploying to Vercel, update your app manifest to point to the deployed URL using the vertesia CLI:

vertesia apps update <appId> --manifest '{
  "name": "my-app",
  "title": "My App",
  "description": "A sample app",
  "publisher": "your-org",
  "private": true,
  "status": "beta",
  "ui": {
    "src": "https://your-app.vercel.app/lib/plugin.js",
    "isolation": "shadow"
  }
}'

Replace appId by the actual ID and https://your-app.vercel.app with your actual Vercel deployment URL.

Key Features

Dual Build Modes

  • App Mode: Builds a standalone application for development and testing
  • Library Mode: Builds a plugin that can be integrated into the Vertesia platform

External Dependencies

When building as a plugin, React and Vertesia dependencies are externalized to prevent duplication:

  • react / react-dom
  • @vertesia/common
  • @vertesia/ui

Tech Stack

  • React 19 - UI framework
  • TypeScript - Type safety
  • Vite - Build tool and dev server
  • Tailwind CSS 4 - Styling
  • @vertesia/ui - Vertesia UI components
  • @vertesia/plugin-builder - Plugin build utilities

Development Notes

  • The dev server uses HTTPS (via @vitejs/plugin-basic-ssl)
  • CSS can be inlined in the plugin bundle or kept separate (configured in vite.config.ts)
  • For debugging Vertesia UI sources, set VERTESIA_UI_PATH in vite.config.ts

License

See package.json for license information.