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

@useavalon/avalon

v0.5.7

Published

Multi-framework islands architecture for the modern web

Readme

@useavalon/avalon

Core framework package for Avalon — a multi-framework islands architecture for the modern web.

Features

  • Islands architecture with zero JavaScript by default
  • Multi-framework support (React, Preact, Vue, Svelte, Solid, Lit, Qwik)
  • Selective hydration (on:client, on:visible, on:idle, on:interaction)
  • File-system routing with nested layouts
  • API routes and middleware
  • MDX support with rehype/remark plugins
  • SSR with streaming support
  • Edge deployment via Nitro (Node, Deno, Bun, Cloudflare, Vercel, etc.)
  • Vite 8 powered with HMR

Quick start

bun create avalon my-app

Or install manually:

bun add @useavalon/avalon

Usage

// pages/index.tsx
import Counter from '../components/Counter.tsx';

export default function Home() {
  return (
    <div>
      <h1>Hello Avalon</h1>
      <Counter island={{ condition: 'on:visible' }} />
    </div>
  );
}

Scheduled jobs (cron)

Run serverless functions on a schedule. Drop a task file in tasks/ and map a schedule to it — Avalon wires up the right runner for your deployment preset (Vercel Cron, Cloudflare Triggers, or the built-in scheduler for the node server), built on Nitro's native task system.

// tasks/cleanup.ts
import { defineCronJob } from '@useavalon/avalon/cron';

export default defineCronJob({
  meta: { description: 'Purge expired sessions' },
  async run() {
    await db.sessions.deleteExpired();
    return { result: 'ok' };
  },
});
// vite.config.ts
avalon({
  nitro: {
    cron: [
      // Point at a task file (name is derived from the path -> "cleanup")
      { schedule: '0 * * * *', handler: 'tasks/cleanup.ts' },
      // Or schedule an auto-discovered task by name, with a named alias
      { schedule: '@daily', task: 'reports:digest' },
    ],
  },
});

Schedules accept standard 5- or 6-field cron expressions or aliases like @hourly and @daily. Trigger a job on demand with runCronJob(name) from @useavalon/avalon/cron.

Links

Bundle size tools

The root export is a Node/Vite build-time framework (Nitro, node:fs, native parsers). Tools like Bundlephobia target browser webpack bundles and often return BuildServiceError or build failures for this package — that is expected, not a sign of a broken publish. For shipped browser bytes, measure @useavalon/avalon/client/main-slim in your app build instead.

Published tarballs include main / module pointing at ./dist/mod.js for tools that require a legacy entry field alongside exports.

License

MIT