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

@geajs/vite-plugin

v1.0.1

Published

Vite plugin for Gea framework - JSX/TSX transform, reactivity, HMR

Readme

@geajs/vite-plugin

npm version License: MIT

Vite plugin that powers Gea's compile-time JSX transforms, reactive binding generation, event delegation wiring, and hot module replacement.

Installation

npm install -D @geajs/vite-plugin

Requires vite ^7.3.1 as a peer dependency.

Configuration

// vite.config.ts
import { defineConfig } from 'vite'
import { geaPlugin } from '@geajs/vite-plugin'

export default defineConfig({
  plugins: [geaPlugin()]
})

That's it. No configuration options are needed — the plugin handles everything automatically.

What It Does

JSX to HTML String Compilation

The plugin transforms JSX in your .jsx and .tsx files into HTML template strings at build time. This means there is no createElement call at runtime — templates compile down to plain strings that are inserted into the DOM.

  • className is automatically converted to class
  • React-style event names are converted to Gea's lowercase attributes (onClick becomes click)
  • Component tags are converted to kebab-case custom elements with data-prop-* attributes

Reactive Binding Generation

The plugin analyzes which state paths your template reads (e.g., counterStore.count) and generates observe() calls that surgically update only the DOM nodes that depend on changed state. No virtual DOM diffing required.

Event Delegation Wiring

Event handlers declared in JSX (click={fn}, input={fn}, etc.) are compiled into an events getter that uses event delegation — a single global listener per event type on document.body, rather than individual listeners on each element.

Function-to-Class Conversion

Function components are automatically converted to class components at build time. You write simple functions; the plugin handles the rest:

// What you write
export default function Greeting({ name }) {
  return <h1>Hello, {name}!</h1>
}

// What the plugin produces (conceptually)
class Greeting extends Component {
  template({ name }) {
    return `<h1>Hello, ${name}!</h1>`
  }
}

Conditional and List Rendering

  • Conditional expressions (cond && <X />) are compiled into <template> markers with efficient swap logic
  • .map() calls with key props are compiled into applyListChanges calls that handle adds, deletes, reorders, and swaps without touching unchanged items

Hot Module Replacement

The plugin injects HMR support that preserves component state across edits. When you save a file, only the changed components are updated — no full page reload.

TypeScript Setup

When a tsconfig.json is present, the plugin automatically adds gea-env.d.ts to the compilerOptions.types array, providing JSX type definitions for Gea.

Virtual Module

The plugin provides a virtual:gea-reconcile module used internally for keyed list reconciliation.

Related Packages

License

MIT — Copyright (c) 2017-present Armagan Amcalar