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

@ments/web

v1.14.0

Published

A lightweight, islands-architecture web framework for Bun with Next.js-style routing.

Readme

Melina.js 🦊

A lightweight, islands-architecture web framework for Bun

npm version Bun

Melina.js is a Next.js-compatible framework with a radically simpler architecture. Built specifically for Bun, it eliminates the need for external bundlers by leveraging Bun's native build APIs.

✨ Features

  • 🏝️ Islands Architecture — Only hydrate what needs to be interactive
  • 📁 File-based Routing — Next.js App Router style (app/page.tsx/)
  • In-Memory Builds — No dist/ folder, assets built and served from RAM
  • 🔄 Partial Page Swaps — SPA-like navigation without the SPA complexity
  • 🎨 Tailwind CSS v4 — Built-in support for CSS-first configuration
  • 🌐 Import Maps — Browser-native module resolution, no vendor bundles

🚀 Quick Start

# Install
bun add @ments/web

# Create app structure
mkdir -p app/components

# Create a page
cat > app/page.tsx << 'EOF'
export default function Home() {
  return <h1>Hello Melina! 🦊</h1>;
}
EOF

# Create layout
cat > app/layout.tsx << 'EOF'
export default function Layout({ children }) {
  return (
    <html>
      <body>
        <main id="melina-page-content">{children}</main>
      </body>
    </html>
  );
}
EOF

# Start dev server
bunx melina start

Open http://localhost:3000 🎉

🏝️ Creating Islands (Client Components)

// app/components/Counter.tsx
'use client';

import { useState } from 'react';
import { island } from '@ments/web/island';

function CounterImpl({ initialCount = 0 }) {
  const [count, setCount] = useState(initialCount);
  return (
    <button onClick={() => setCount(c => c + 1)}>
      Count: {count}
    </button>
  );
}

export const Counter = island(CounterImpl, 'Counter');

Use in pages:

// app/page.tsx
import { Counter } from './components/Counter';

export default function Home() {
  return (
    <div>
      <h1>My App</h1>
      <Counter initialCount={10} />
    </div>
  );
}

📖 Documentation

🔧 CLI

melina init <name>  # Create new project
melina start        # Start dev server

📦 Project Structure

my-app/
├── app/
│   ├── layout.tsx       # Root layout
│   ├── page.tsx         # Home page (/)
│   ├── about/
│   │   └── page.tsx     # /about
│   ├── api/
│   │   └── hello/
│   │       └── route.ts # API route
│   ├── components/
│   │   └── Counter.tsx  # 'use client' component
│   └── globals.css      # Global styles
└── package.json

🤔 Why Melina?

| Traditional SPA | Melina.js | |-----------------|-----------| | Bundle everything | Islands hydrate selectively | | Full page refresh or client routing | Partial page swaps | | Complex Webpack/Vite config | Zero config, Bun-native | | 100KB+ vendor chunks | Browser-native import maps |

License

MIT © Mements