ts-node-dev

Restarts your TypeScript app on file changes without full recompilation

Tool
npm
v2.0.0
3,437stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
44/100Fair
Development Activity0
Maintenance20
Community56
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
67/100Good
Architecture65
Code Quality68
Innovation55
Learning Curve80

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
86%
MIT

ai-toolkit

AI Development · AI Design Tools

11,757

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
77
Repo Health
66
Technical
75
Dependency
Built with
Python86%
TypeScript13%
Updated 2 days ago
TypeScript
92%
MIT

Dittofeed

Marketing · Automation

2,903

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
63
Dependency
Built with
TypeScript92%
Updated 4 months ago
TypeScript
67%
MIT

Hoppscotch

Developer Tools

80,055

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
66
Dependency
Built with
TypeScript67%
Vue23%
Updated 3 days ago
TypeScript
61%
EPL-2.0

Huly Platform

Project Management · Team Chat · Collaboration

27,384

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
64
Dependency
Built with
TypeScript61%
Svelte34%
Updated 1 weeks ago
TypeScript
99%
Other

NocoBase

No Code Platforms · Low Code Platforms

23,696

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
65
Dependency
Built with
TypeScript99%
Updated today
TypeScript
27%
AGPL 3.0

Omnivore

Knowledge Management · Bookmarks Archiving · Note Taking

16,221

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

View details
78
Repo Health
74
Technical
66
Dependency
Built with
TypeScript27%
JavaScript24%
HTML19%
Updated 2 days 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

Search