-
-
Notifications
You must be signed in to change notification settings - Fork 7
Home
Angga7Togk edited this page Mar 19, 2026
·
11 revisions
The Universal Transport Layer for Your Logic. GamanJS is not just another REST API framework. It is a Data Transport Engine that allows your business logic to travel across multiple channels—HTTP, IPC (Unix Sockets), and Message Brokers—without changing a single line of code in your controllers.
| Protocol | Description |
|---|---|
| HTTP | Full support (Routing, Middleware, Context, Cookies). |
| IPC | Unix Socket, Accumulator Buffer, Newline Protocol. |
| MQ | Redis/RabbitMQ Message Queue Integration. |
| gRPC | High-performance ProtoBuf-based communication. |
| WebSocket | Real-time bi-directional streaming layer. |
GamanJS currently only supports Bun runtime.
bun install gamanimport { Gaman, type HTTP } from "gaman";
const app = Gaman<HTTP>();
app.get('/', (ctx) => {
return ctx.send({
name: 'Angga7Togk'
})
});
app.mountServer({
http: 3431
});import { Gaman, type IPC } from 'gaman';
const gaman = Gaman<IPC>(); // you can: Gaman<HTTP | IPC>()
gaman.ipc('/tmp/profile.sock', (ctx) => {
Log.info(ctx.json());
Log.info(ctx.text());
Log.info(ctx.body()); // raw data
return ctx.send({
name: 'Angga7Togk',
});
});
gaman.mountServer();visit our Wiki
New Contributing welcome! Check out our Contributing Guide for help getting started.
@7togkid