MCPcopy Index your code
hub / github.com/GamanJS/gaman

github.com/GamanJS/gaman @v2.1.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.1.5 ↗ · + Follow
460 symbols 1,120 edges 185 files 96 documented · 21%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

A lightweight, composable framework on Bun.

"Complexity doesn't have to be heavy.

Built on Bun, designed for Logic, optimized for Scale."

Disocrd npm version npm download Commit Activity Commit Activity npm license github stars


The Lean Manifesto

  • Zero Magic: All data flows are transparent (Logic-first).
  • Native Speed: Maximizing Bun & Gaman Wire.
  • Opt-in Complexity Go enterprise scale only when you need it.

Create a New Project

GamanJS currently only supports Bun runtime.

bun create gaman@latest <name>

GamanJS Project Structure 🏗️

GamanJS embraces the Feature-Based Modularity philosophy. This structure is designed to keep applications clean, easy to test, and scalable as your business expands.

Enterprise Project Architecture

In a production scale or Enterprise project, the GamanJS folder structure will look like this:

src/
├── index.ts                 # The Orchestrator (Entry Point)
├── console/                 # Helper tool for adding custom commands
├── database/                # Database Configuration
│   ├── models/              # Global model and schema databases
│   ├── migrations/          # Database migration files
│   └── seeders/             # Database seeders files
└── modules/                 # Powerhouse of your Application
    ├── app/                 # Infrastructure Module (Global/Shared)
    │   ├── controllers/     # Handlers for Global Requests (Health, Index)
    │   │   └── AppController.ts
    │   ├── services/        # Shared Utilities & System Services
    │   │   └── AppService.ts
    │   └── AppRouter.ts     # Global Middleware & Base Routing
    │
    └── user/                # Feature Module (Example: User Management)
        ├── controllers/     # Request Handlers (Login, Register, Profile)
        │   └── UserController.ts
        ├── services/        # Business Logic (Auth Logic, User CRUD)
        │   └── UserService.ts
        ├── models/          # Data Access Layer (Powered by @gaman/db)
        │   └── UserModel.ts
        └── UserRouter.ts    # Scoped Routes & Feature Middleware

Documentation

visit our https://gaman.js.org/

Star History

Star History Chart

All contributors ✨

A table of avatars from the project's contributors A table of avatars from the project's contributors

Contributing

New Contributing welcome! Check out our Contributing Guide for help getting started.

Links

Extension points exported contracts — how you extend this code

StaticFileOptions (Interface)
(no doc)
packages/static/src/index.ts
CorsOptions (Interface)
(no doc)
packages/cors/src/index.ts
ParsedInput (Interface)
(no doc)
packages/kame/src/input-parser.ts
BaseTypeColumn (Interface)
(no doc)
packages/db/src/column/type-column.ts
HttpContext (Interface)
(no doc)
benchmark/adonis-app/providers/api_provider.d.ts
Env (Interface)
(no doc)
src/global.ts
IResponseOptions (Interface)
(no doc)
src/responder.ts
Requester (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

json
called by 89
src/responder.ts
html
called by 39
src/responder.ts
set
called by 36
src/context/formdata/index.ts
get
called by 30
packages/db/src/where.ts
get
called by 28
src/context/formdata/index.ts
toString
called by 23
src/context/formdata/file/index.ts
string
called by 16
packages/db/src/column/schema-column-builder.ts
text
called by 16
src/responder.ts

Shape

Method 196
Function 134
Class 94
Interface 35
Enum 1

Languages

TypeScript100%

Modules by API surface

src/responder.ts50 symbols
packages/db/src/model.ts18 symbols
src/context/formdata/index.ts15 symbols
packages/db/src/column/schema-column-builder.ts15 symbols
src/context/formdata/file/index.ts14 symbols
packages/kame/src/commands/registry.ts14 symbols
packages/db/src/where.ts14 symbols
packages/db/src/migration/migration-column-builder.ts14 symbols
src/context/index.ts12 symbols
src/context/header/index.ts12 symbols
src/gaman.ts10 symbols
packages/db/src/migration/migration-builder.ts10 symbols

For agents

$ claude mcp add gaman \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact