Skip to content

First Step

GamanJS is specifically designed to work with modernTypeScript using the ECMAScript Module (ESM) system. This means all modules must be written using import and export syntax—CommonJS (require, module.exports) is not supported. If you’re building a project with GamanJS, make sure your environment and codebase are fully ESM-compatible.

Please make sure that Node.js (version >= 18.x) is installed on your operating system.


GamanJS is a framework for backend applications, You can create it using your favorite package manager:

Terminal window
npm create gaman@latest

After creating a new project, your file structure will look like this:

  • Directorysrc
    • Directorymodule
    • index.d.ts
    • index.ts
    • main.block.ts
    • main.routes.ts
    • main.service.ts
  • package.json
  • tsconfig.json
Filedescription
index.d.tsType declaration file for the app entry point. It defines global types.
main.block.tsModule for registers routes, services, and middleware..
main.routes.tsDefines HTTP routes handler
main.services.tsContains the business logic.