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

hedhop

v1.0.0

Published

A React meta-framework with RSC support, file-based routing, and streaming SSR

Downloads

94

Readme

Hedhop

A React meta-framework with RSC (React Server Components) support, file-based routing, and streaming SSR.

Features

  • RSC Support: First-class support for React Server Components.
  • Streaming SSR: Built-in support for streaming server-side rendering.
  • File-based Routing: Intuitive routing based on file structure.
  • Vite Powered: Leverages the speed and ecosystem of Vite.

Installation

npm install hedhop

Usage

Update vite.config.ts

To start using Hedhop, add the plugin to your Vite configuration:

import { defineConfig } from 'vite';
import { hedhop } from 'hedhop/vite';

export default defineConfig({
  plugins: [hedhop()],
});

Hedhop Configuration

Create a hedhop.config.ts file in your root directory to customize framework behavior:

// hedhop.config.ts
import type { HedhopConfig } from 'hedhop';

const config: HedhopConfig = {
    debug: false,
    hmr: true,

    routing: {
        trailingSlash: false,
    },
};

export default config;

Application Entry Point

Create a src/app.tsx file to define your root layout and router configuration:

// src/app.tsx
import { type ReactNode } from 'react';
import { Head, type RouterConfig } from 'hedhop';
import '@/styles/globals.css';

// 1. Define Routes
const routes = [
    {
        layout: '@/layouts/app', // Optional nested layout
        children: [
            { path: '/', page: '@/pages/home' },
            { path: '/about', page: '@/pages/about' },
            { path: '/users', page: '@/pages/users' },
            // Mount external apps/routes
            { path: '/demo', mount: '@/pages/demo' },
        ]
    }
];

// 2. Configure Router
export const router: RouterConfig = {
    routes,
    notFound: '@/pages/404',
    error: '@/pages/500',
    debug: true,
};

// 3. Define Root Layout
export const RootLayout = ({ children }: { children: ReactNode }) => {
    return (
        <html lang="en" suppressHydrationWarning>
            <head>
                <Head />
            </head>
            <body suppressHydrationWarning>
                <div id="app-root">{children}</div>
            </body>
        </html>
    );
};

Folder Structure

Hedhop uses a file-based routing system. Create a src/pages directory:

src/
  pages/
    index.tsx       -> /
    about.tsx       -> /about
    blog/
      index.tsx    -> /blog/

Page Configuration

Pages can export a config object to define metadata like title and description.

// src/pages/home.tsx
import type { PageConfig } from 'hedhop';

const HomePage = () => {
    return (
        <div>
            <h1>Home page</h1>
        </div>
    );
};

export const config: PageConfig = {
    meta: {
        title: 'Home - Hedhop Framework',
        description: 'Welcome to the Hedhop Framework'
    }
};

export default HomePage;

Client Components

Server Components are the default. To use client-side features like useState or useEffect, add the "use client" directive.

// src/components/Counter.tsx
"use client";

import { useState } from 'react';

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

License

MIT © [qgave]