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. [Utility &amp; Helpers](/categories/utility)
4. /
5. larabun/lara-bun

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

A Laravel-to-Bun bridge via Unix sockets

v0.8.3(3mo ago)160↓77.8%MITPHPPHP ^8.3

Since Feb 22Pushed 2mo 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 3w ago

READMEChangelog (8)Dependencies (13)Versions (26)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 86% of packages

Maintenance83

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~1 days

Total

22

Last Release

92d ago

PHP version history (2 changes)v0.1.0PHP ^8.2

v0.5.0PHP ^8.3

### 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 (273 commits)")

---

Tags

laraveljavascripttypescriptunix-socketbunrsc

###  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/ai

The official AI SDK for Laravel.

9782.1M162](/packages/laravel-ai)[livewire/flux

The official UI component library for Livewire.

9476.8M121](/packages/livewire-flux)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

984.0k](/packages/zidbih-laravel-deadlock)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

19253.0k3](/packages/interaction-design-foundation-laravel-geoip)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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