PHPackages                             larabun/lara-bun - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. larabun/lara-bun

ActiveLibrary

larabun/lara-bun
================

A Laravel-to-Bun bridge via Unix sockets

v0.4.1(1mo ago)120—0%MITPHPPHP ^8.2

Since Feb 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/larabun/lara-bun)[ Packagist](https://packagist.org/packages/larabun/lara-bun)[ Docs](https://github.com/larabun/lara-bun)[ RSS](/packages/larabun-lara-bun/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (7)Versions (13)Used By (0)

LaraBun
=======

[](#larabun)

A bridge between Laravel and Bun for React Server Components, streaming HTML, PHP callables, and server actions — all over Unix sockets.

Features
--------

[](#features)

- **React Server Components** — Server-rendered React with zero client JS for server components
- **File-based routing** — Next.js App Router conventions (pages, layouts, route groups, dynamic segments)
- **PHP callables** — Call Eloquent, auth, sessions directly from server components via `php()`
- **Server actions** — `"use server"` functions for form mutations
- **Streaming HTML** — Suspense boundaries stream progressively over the wire
- **Partial Prerendering (PPR)** — Static shell cached at build time, dynamic content streamed at runtime
- **Parallel routes** — `@folder` convention for named layout slots
- **Route interception** — `(.)/(..)/(...)` convention for modals on SPA navigation
- **Typed routes** — Auto-generated type-safe `route()` helper
- **Inertia SSR** — Drop-in replacement for Inertia's Node SSR server
- **Sub-millisecond IPC** — Binary frame protocol over Unix sockets

Quick Start
-----------

[](#quick-start)

```
composer require larabun/lara-bun
bun add react react-dom react-server-dom-webpack
```

```
BUN_RSC_ENABLED=true
BUN_BRIDGE_SOCKET=/tmp/my-app-bridge.sock
```

```
// resources/js/rsc/app/page.tsx
export default async function Home() {
  const posts = await php('Posts.latest');
  return (

      {posts.map(p => {p.title})}

  );
}
```

```
php artisan bun:dev
```

Requirements
------------

[](#requirements)

- PHP 8.2+ with the `sockets` extension
- Laravel 11+
- [Bun](https://bun.sh) 1.0+
- React 19

Documentation
-------------

[](#documentation)

Full documentation, guides, and live demos at **[larabun.dev](https://larabun.dev)**

Performance
-----------

[](#performance)

AvgMinMax**LaraBun (Unix Socket)****2.39ms****1.73ms****4.75ms**Inertia HTTP SSR (Bun)3.36ms2.32ms19.47ms~30% faster with zero additional PHP memory overhead. Unix sockets skip the TCP stack entirely.

Support
-------

[](#support)

If this saved you time, consider supporting the project:

[![Buy Me A Coffee](https://camo.githubusercontent.com/22d76bbe3650fec8b480d33d188c120cf71353775a769fe88a8aadc837f9b4be/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275792532304d6525323041253230436f666665652d737570706f72742d79656c6c6f773f6c6f676f3d6275792d6d652d612d636f66666565266c6f676f436f6c6f723d7768697465)](https://buymeacoffee.com/ramonmalcolm)

License
-------

[](#license)

MIT

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance90

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

9

Last Release

51d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31fdb0bffa71db97c19c9bf4a3242c3e9bc7720a6048c4fb85b5684d4df1d5f9?d=identicon)[ramonmalcolm10](/maintainers/ramonmalcolm10)

---

Top Contributors

[![ramonmalcolm10](https://avatars.githubusercontent.com/u/36176996?v=4)](https://github.com/ramonmalcolm10 "ramonmalcolm10 (227 commits)")

---

Tags

laraveljavascripttypescriptinertiaSSRunix-socketbun

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/larabun-lara-bun/health.svg)

```
[![Health](https://phpackages.com/badges/larabun-lara-bun/health.svg)](https://phpackages.com/packages/larabun-lara-bun)
```

###  Alternatives

[laravel/wayfinder

Generate TypeScript representations of your Laravel actions and routes.

1.7k4.1M69](/packages/laravel-wayfinder)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[romegasoftware/laravel-schema-generator

Generate TypeScript Zod validation schemas from Laravel validation rules

288.2k](/packages/romegasoftware-laravel-schema-generator)[kiwilan/typescriptable-laravel

PHP package for Laravel to type Eloquent models, routes, Spatie Settings with autogenerated TypeScript. If you want to use some helpers with Inertia, you can install associated NPM package.

3920.9k](/packages/kiwilan-typescriptable-laravel)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
