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

astro-integration-gea

v0.1.1-beta.0

Published

Astro integration for Gea components with full support for islands architecture and native slots.

Readme

Astro + Gea

A powerful, minimal, and compiled-reactivity integration for Astro.
Build fast apps with Astro's Islands architecture and Gea's lightning-fast reactive model.

[!WARNING] Status: Beta / Experimental
This integration is currently in beta. It is not production-ready and has not been battle-tested in large-scale applications. APIs may change before the 1.0 release. Use with caution in critical projects.

Features

  • 🚀 Island Architecture: Full support for Astro's hydration directives (e.g., client:load, client:visible).
  • ⚡ Compiled Reactivity: Powered by @geajs/vite-plugin for fine-grained updates without a heavy virtual DOM.
  • 🧩 Native Slot Support: Use standard <slot /> and <slot name="footer" /> tags directly in your Gea components.
  • 🌏 Global State: Seamlessly share reactive stores between components using standard Gea patterns.
  • 🛠️ Minimalist API: High-performance UI without the boilerplate.

Compatibility

This integration is tested and fully compatible with:

  • Astro: ^4.0.0, ^5.0.0, and ^6.0.0
  • Gea ^1.0.0
  • Node.js: >=22.0.0

Installation

npm install astro-integration-gea @geajs/core @geajs/vite-plugin

Configuration

Add the integration and the Gea Vite plugin to your astro.config.mjs:

import { defineConfig } from "astro/config";
import geaIntegration from "astro-integration-gea";

export default defineConfig({
    integrations: [
        geaIntegration()
    ]
});

The integration automatically configures both the server-side renderer and the client-side hydrator.

Usage

1. Create a Gea Component

Create your component as a .tsx (or .jsx) file:

import { Component } from "@geajs/core";
import "./style.css";

export default class MyComponent extends Component {
    declare props: { title: string };

    template(props: this["props"]) {
        return (
            <div class="card">
                <h2>{props.title}</h2>
                <slot />
                <div class="footer">
                    <slot name="footer" />
                </div>
            </div>
        );
    }
}

2. Use in Astro Page

Import and use your component with any Astro hydration directive:

---
import MyComponent from "../components/MyComponent.jsx";
---

<MyComponent client:visible title="Hello From Astro!">
  <p>This goes into the default slot!</p>
  <div slot="footer">
      This goes into the named 'footer' slot.
  </div>
</MyComponent>

How It Works

  • SSR: The integration uses linkedom as a lightweight DOM on the server to render Gea components to static HTML.
  • Hydration: On the client, the integration preserves your slot content from the server rendered HTML, hydrates the Gea component, and seamlessly restores the slots exactly where you placed your <slot /> tags.
  • Reactivity: Data binding is compiled at build-time by the Gea Vite plugin, ensuring only the exact DOM nodes that need updating are touched when state changes.

Development

To run the provided example project:

cd example
npm install
npm run dev

Known Issues

  • Prototype Getters in Stores: In Gea Store classes, methods and getters defined on the prototype are not reactive. Only class fields are automatically converted into reactive properties. If you need a reactive derived value, use a class field and keep it updated (e.g., by using this.observe in the constructor).

License

MIT