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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@a7mdmo74/bun-react-ssr

v2.0.1

Published

A full-stack Bun framework combining React SSR, backend APIs, middleware, and Tailwind CSS with shadcn UI components

Readme

@a7mdmo74/bun-react-ssr

A full-stack Bun framework for building modern web applications. Combines server-side rendering (SSR) with React, backend APIs, middleware support, Tailwind CSS, and shadcn UI components - all powered by the lightning-fast Bun runtime.

Repository: github.com/a7mdmo74/Bun-React-SSR

Features

Frontend

  • ⚛️ React 19 - Latest React for SSR and interactive UIs
  • 🎨 Tailwind CSS - Utility-first CSS framework
  • 🧩 shadcn/ui - High-quality, accessible component library built on Radix UI
  • 🎭 Lucide Icons - Beautiful, consistent icon library

Backend & Full-Stack

  • Bun Runtime - Lightning-fast, all-in-one JavaScript runtime
  • 🔌 Middleware System - Built-in logger and static file serving
  • 📡 API Ready - Perfect for building REST APIs and backend logic
  • 🛠️ Utilities - Pre-configured utilities and helpers

Developer Experience

  • 📝 TypeScript - Full type-safe development
  • 🔄 Hot Reload - Watch mode for instant feedback
  • 📦 Zero Config - Pre-configured and ready to use

Installation

npm install @a7mdmo74/bun-react-ssr

Or with Bun:

bun add @a7mdmo74/bun-react-ssr

Getting Started

Install dependencies

bun install

Development

Run the development server with hot reload:

bun run dev

Or run once:

bun run start

Build for Production

Bundle everything for production deployment:

bun run build

Tailwind CSS Development

Build and watch Tailwind CSS:

bun run tailwind:build

What's Included

  • Full-stack foundation - Backend API routes, server logic, and frontend all in one
  • Production-ready middleware - Logger and static file serving out of the box
  • Page routing - Example pages (Home, About) demonstrating SSR
  • Component library - Pre-built UI components with shadcn/ui and Tailwind
  • Styling - Global styles with Tailwind CSS integration
  • Type safety - Everything written in TypeScript

Project Structure

.
├── src/
│   ├── components/       # Reusable React components
│   │   └── ui/          # UI components (Button, etc.)
│   ├── pages/           # Page components for routing
│   ├── assets/          # Static assets (CSS, images)
│   ├── Layout.tsx       # Main application layout
│   ├── Main.tsx         # Main component
│   └── styles.css       # Global styles
├── lib/
│   └── utils.ts         # Utility functions and helpers
├── middleware/
│   ├── logger.ts        # Request logging middleware
│   └── static.ts        # Static file serving middleware
├── hydrate.tsx          # Client-side hydration setup
├── index.ts             # Server entry point
├── dist/                # Build output (generated)
└── package.json         # Dependencies and scripts

Use Cases

  • 🌐 Full-stack web applications
  • 🚀 Server-side rendered React apps
  • 📱 Progressive web applications (PWAs)
  • 🛍️ E-commerce platforms
  • 📊 Content-heavy websites
  • 🔌 REST APIs with React frontends
  • 🎯 Real-time applications

License

MIT @a7mdmo74