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

elysia-solid

v0.0.4

Published

Full-stack framework: **Elysia** (server) + **Solid.js** (client islands) + **Vite** (dev/build).

Downloads

456

Readme

elysia-solid

Full-stack framework: Elysia (server) + Solid.js (client islands) + Vite (dev/build).

Write your server with Elysia and JSX. Mark interactive components with "use client". The framework handles SSR, hydration, and production builds automatically.

Install

bun add elysia-solid elysia solid-js vite vite-plugin-solid

Quick Start

vite.config.ts

import { defineConfig } from "vite";
import { elysiaSolid } from "elysia-solid/vite";

export default defineConfig({
  plugins: [
    elysiaSolid({
      entry: "./app.tsx",
    }),
  ],
});

app.tsx — Elysia server with JSX

import { Elysia } from "elysia";
import { solid } from "elysia-solid";
import Counter from "./islands/Counter";

function Layout(props: { title: string; children?: any }) {
  return (
    <html lang="en">
      <head>
        <title>{props.title}</title>
      </head>
      <body>{props.children}</body>
    </html>
  );
}

export default new Elysia()
  .use(solid())
  .get("/", () => (
    <Layout title="Home">
      <h1>Hello from Elysia</h1>
      <Counter initial={0} />
    </Layout>
  ));

islands/Counter.tsx — Interactive island

"use client";

import { createSignal } from "solid-js";

export default function Counter(props: { initial: number }) {
  const [count, setCount] = createSignal(props.initial);
  return (
    <div>
      <p>Count: {count()}</p>
      <button onClick={() => setCount((c) => c + 1)}>+</button>
    </div>
  );
}

Development

bunx --bun vite

The dev server starts with HMR. Server file changes trigger a page morph (no full reload). Island changes use Solid's fast refresh.

Production Build

vite build        # builds client assets + server bundle
bun dist/server/app.js  # run production server

The plugin handles both build phases automatically via Vite's environment API. The output is a self-contained server that serves static assets and renders SSR HTML with hydration scripts.

How It Works

Islands Architecture

Any component file with "use client" at the top becomes an island:

  1. SSR — The component renders to HTML on the server inside a <div data-island> wrapper with serialized props
  2. Hydration — The client runtime finds [data-island] elements and hydrates them with Solid's hydrate(), reusing the server-rendered DOM
  3. Lazy loading — Each island is code-split and loaded on demand

Server Rendering

Routes return JSX directly. The solid() plugin auto-detects HTML responses and sets proper headers/DOCTYPE. For explicit control, use the html() helper:

import { html } from "elysia-solid";

app.get("/", () => html(<Layout><Page /></Layout>));

HTMX Support

Islands inside HTMX-swapped fragments hydrate automatically via a MutationObserver. No extra configuration needed.

API

elysiaSolid(options) — Vite Plugin

import { elysiaSolid } from "elysia-solid/vite";

| Option | Type | Description | |--------|------|-------------| | entry | string | Path to the Elysia app entry file |

solid() — Elysia Plugin

Registers a mapResponse hook that converts Solid SSR output to proper HTML responses.

html(input) — Response Helper

Renders JSX to an HTML Response with DOCTYPE and content-type headers.

License

MIT