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

elm-ssr

v0.5.0

Published

Elm-first SSR library and framework for Cloudflare Workers (and Bun): file-based routes/islands, backend-neutral effect adapters (KV/D1/Redis/Postgres), background tasks (waitUntil/Queues), SQL-file migrations, CLI scaffold + build.

Readme

elm-ssr

Elm-first SSR library and framework for Cloudflare Workers (and Bun locally). One package, three pieces:

  • A CLI (elm-ssr build|new|migrate|dev) that scans your routes/islands, generates the router + manifest, and runs elm make.
  • A Worker runtime (createWorkerApp, renderApp, effect adapters, background tasks, SQL migrations, middleware) exported via subpaths.
  • A set of Elm authoring modules under elm-src/ElmSsr/ (Route, Loader, Action, Html, Svg, Island, Page, Document, Runtime) which the build syncs into each app's .elm-ssr/src/ElmSsr/.

Install

bun add elm-ssr

Then use the CLI as elm-ssr <command> (or bun elm-ssr <command> in a workspace) and import the runtime via subpaths.

CLI commands

  • elm-ssr build — scans each configured app's src/<Namespace>/Routes/ and Islands/, generates .elm-ssr/Main.elm (the router with file-based routes + dynamic segments) and the islands manifest, syncs the Elm authoring modules into the app's .elm-ssr/src/ElmSsr/, and compiles via elm make (one combined island bundle exposing Elm.<App>.Islands.<Name>).
  • elm-ssr new <name> — scaffold a new app and register it in elm-ssr.config.json.
  • elm-ssr devbuild then wrangler dev.
  • elm-ssr compress — pre-compress generated bundles with gzip.
  • elm-ssr migrate <up|down|status> — apply / revert / inspect SQL-file migrations. --db postgres://…, sqlite://path, or a plain SQLite file path; --dir <path> (default ./migrations); --count N (for down, default 1). Reads DATABASE_URL if --db is omitted.

Configuration lives in elm-ssr.config.json at the repo root:

{
  "apps": [
    { "name": "basic", "root": "examples/basic", "module": "Example.Basic" }
  ]
}

Runtime exports

import { createWorkerApp } from "elm-ssr";
import { renderApp, type CompiledElmModule } from "elm-ssr/render";
import type { RouteCatalog } from "elm-ssr/http";
import { inMemoryEffects, cloudflareEffects } from "elm-ssr/effects";
import { withCache, redisCache, postgresSql } from "elm-ssr/backends";
import { withTasks, withQueueProducer, createQueueConsumer } from "elm-ssr/tasks";
import { runMigrations, revertMigrations, listMigrations } from "elm-ssr/migrations";
import { composeMiddleware } from "elm-ssr/middleware";

See the top-level README for end-to-end usage and the authoring guide.

License

MIT.