Search by

atannex / bridge

Atanga1920

Expose explicitly registered, validated and authorized Laravel operations to JavaScript and TypeScript clients over a small versioned protocol, with generated TypeScript contracts, pluggable authentication, tenant context and standard errors.

Package info

github.com/atannex/bridge

pkg:composer/atannex/bridge

Statistics

Installs: 122

Dependents: 1

Suggesters: 1

Stars: 0

Open Issues: 0

v1.0.0 2026-10-31 07:39 UTC

This package is auto-updated.

Last update: 2026-10-31 07:41:28 UTC


README

Lets JavaScript and TypeScript apps (web, React Native, Expo) call Laravel actions you register explicitly, over one small versioned HTTP endpoint. Every call is validated and authorized on the server, deny by default, and returns only the fields you declare. A generated TypeScript contract gives the client full types through the @atannex/bridge SDK. Works with Sanctum cookie sessions or mobile bearer tokens, Fortify two-factor, tenants, file uploads and signed downloads. The wire format is described in PROTOCOL.md.

Install

composer require atannex/bridge
php artisan bridge:install