Back to Templates
TypeScript

TypeScript Starter with ESLint, Prettier, Jest & Docker

Node.js + TypeScript with ESLint, Prettier, and Jest

terminal
npx setupkaro init my-app --template typescript
Zero installNo telemetryMIT License

What's Included

  • Node.js 20+ with TypeScript 5 (strict mode)
  • ESLint with typescript-eslint and Prettier integration
  • Jest with ts-jest for unit testing
  • Husky + lint-staged for pre-commit hooks
  • GitHub Actions: typecheck, lint, test, build
  • Multi-stage Dockerfile (non-root, distroless-ready)
  • docker-compose.yml for local development
  • Generated README with scripts and folder structure

Generated Folder Structure

src/
index.ts
tests/
index.test.ts
.github/workflows/ci.yml
Dockerfile
docker-compose.yml
package.json
tsconfig.json
eslint.config.js
prettier.config.js
jest.config.js
README.md

Quick Start Commands

Generate Project

terminal
npx setupkaro init my-app --template typescript

Next Steps

cd my-app
npm install
npm run dev

Frequently Asked Questions

What Node.js version is required?
Node.js 18+ (uses native test runner and modern TypeScript features). The template specifies Node 20 in Dockerfile and CI.
Can I add Express/Fastify to this template?
Yes. The template is a minimal TypeScript setup. Add your framework of choice after generation: `npm install express @types/express` or `npm install fastify`.
Does it support ESM or CommonJS?
ESM by default ("type": "module" in package.json). For CommonJS, change the package.json and tsconfig.json module settings.

Generate Another Template

React + TypeScript

Vite + React + TS with Tailwind and React Router

terminal
npx setupkaro init my-app --template react-ts

Replace my-app with your project name.

Ready to generate your TypeScript project?

One command. Production-ready. Start building in seconds.

terminal
npx setupkaro init my-app --template typescript