ts-node-dev

Restarts your TypeScript app on file changes without full recompilation

Tool
npm
v2.0.0
3,433 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
44 /100 Fair
Development Activity 0
Maintenance 20
Community 56
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
67 /100 Good
Architecture 65
Code Quality 68
Innovation 55
Learning Curve 80

ts-node-dev is a CLI that combines ts-node’s on-the-fly TypeScript compilation with nodemon-style file watching and process restarting, while reusing the TypeScript compiler instance across restarts so type-checking isn’t redone from scratch on every change. Running ts-node-dev (or its tsnd alias) in place of ts-node gives a fast development loop for Node.js TypeScript apps.

It supports options like --respawn to keep the watcher alive after a fatal error, --deps to also watch changed dependencies, --transpile-only to skip type-checking for even faster restarts, and standard ts-node compiler flags, making it a common dev script dependency in Node/TypeScript projects before native watch modes became widespread.

What You Get

  • A ts-node-dev/tsnd CLI binary that wraps ts-node with file-watching and automatic process restarts
  • A cached TypeScript compiler instance shared across restarts, avoiding a full recompile/type-check on every file change
  • Flags like --respawn (keep watching after a crash), --deps (watch changed dependencies too), and --transpile-only (skip type-checking for faster restarts)
  • Compatibility with standard ts-node/tsconfig.json compiler options, so existing TypeScript configuration is respected

Common Use Cases

  • Running a Node.js/Express/API server in development with automatic restarts on source file changes
  • Speeding up local iteration on TypeScript backend code compared to a plain ts-node + nodemon combination
  • Watching both application source and its local dependencies (via --deps) in a monorepo-style backend setup
  • Keeping a dev server alive across uncaught exceptions during active development via --respawn

Under The Hood

Architecture — The CLI entry point (src/bin.ts) parses arguments via minimist and spawns a wrapped Node process (src/wrap.ts) that installs a ts-node-based require hook (src/child-require-hook.ts, src/hook.ts) so TypeScript files are compiled on demand; a chokidar-backed watcher (referenced from src/index.ts) tracks file changes and triggers tree-kill-based process restarts communicated over src/ipc.ts, while src/compiler.ts caches the underlying TypeScript program across restarts to avoid full recompilation. Tech Stack — Node.js/TypeScript CLI built on ts-node for compilation, chokidar for cross-platform file watching, resolve/tsconfig for module and config resolution, tree-kill for reliably terminating child process trees, and dynamic-dedupe to avoid duplicate module instances across restarts. Code Quality — The src/ directory (~1,480 lines across 14 focused modules) separates concerns cleanly (watching, compiling, IPC, logging, resolving), and test/tsnd.test.ts plus a test/fixture directory exercise the CLI end-to-end with Mocha; however the GitHub repository is now archived with no commits since 2024, meaning newer TypeScript/Node versions receive no further compatibility fixes. API Design — Usage is a drop-in CLI replacement for ts-node (ts-node-dev ./src/index.ts instead of ts-node ./src/index.ts), requiring no code changes and only a handful of documented flags, which kept its adoption curve low even as the project stopped receiving updates.

Used by 6 apps in this directory

Python
85%
MIT

ai-toolkit

AI Design Tools · AI Development

12,143

An all-in-one open-source training suite for finetuning diffusion models—FLUX, SDXL, Wan video, and audio—on consumer GPU hardware via CLI or web UI.

View details
79
Repo Health
66
Technical
72
Dependency
Built with
Python 85%
TypeScript 14%
Updated 1 weeks ago
TypeScript
92%
MIT

Dittofeed

Automation · Marketing

2,968

Open-source omni-channel customer engagement platform for automating transactional and marketing messages via email, SMS, WhatsApp, Slack, and mobile push.

View details
54
Repo Health
75
Technical
62
Dependency
Built with
TypeScript 92%
Updated 6 months ago
TypeScript
67%
MIT

Hoppscotch

Developer Tools

80,529

A lightweight, offline-capable API development ecosystem for testing HTTP, GraphQL, WebSocket, MQTT, and SSE endpoints across web, desktop, and CLI.

View details
91
Repo Health
83
Technical
65
Dependency
Built with
TypeScript 67%
Vue 25%
Updated 1 weeks ago
TypeScript
61%
EPL-2.0

Huly Platform

Collaboration · Project Management · Team Chat

27,797

Open-source all-in-one workspace that replaces Linear, Jira, Slack, and Notion for product and engineering teams.

View details
90
Repo Health
86
Technical
62
Dependency
Built with
TypeScript 61%
Svelte 34%
Updated 1 weeks ago
TypeScript
99%
Other

NocoBase

Low Code Platforms · No Code Platforms

24,377

Open-source AI + no-code platform that lets coding agents and people collaborate to build business systems fast on proven infrastructure.

View details
94
Repo Health
81
Technical
63
Dependency
Built with
TypeScript 99%
Updated 1 weeks ago
JavaScript
26%
AGPL 3.0

Omnivore

Bookmarks Archiving · Knowledge Management · Note Taking

16,265

Self-hosted read-it-later platform with highlights, newsletters, PDFs, and seamless Obsidian and Logseq integration.

View details
90
Repo Health
74
Technical
65
Dependency
Built with
JavaScript 26%
TypeScript 25%
HTML 19%
Updated 1 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers