{"id":26540,"library":"tsr-node","title":"tsr-node","description":"A minimal TypeScript runner for Node.js (version 0.1.1), built on esbuild for fast transpilation. Unlike ts-node which uses the TypeScript compiler (tsc), tsr leverages esbuild's speed for instant execution. Ideal for quick scripts and development, but lacks type-checking. Release cadence is unknown.","status":"active","version":"0.1.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typescript","esbuild","node","nodejs","ts-node"],"install":[{"cmd":"npm install tsr-node","lang":"bash","label":"npm"},{"cmd":"yarn add tsr-node","lang":"bash","label":"yarn"},{"cmd":"pnpm add tsr-node","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CLI tool; no programmatic API. Used via command line.","wrong":"const tsr = require('tsr-node')","symbol":"default","correct":"import {} from 'tsr-node'"}],"quickstart":{"code":"# install\nnpm i -g tsr-node\n# create a file\necho 'const greet = (name: string) => `Hello, ${name}!`; console.log(greet(\"World\"));' > hello.ts\n# run\ntsr hello.ts\n","lang":"typescript","description":"Install the CLI globally and run a TypeScript file directly."},"warnings":[{"fix":"Run `tsc --noEmit` separately for type checks.","message":"No type-checking at runtime","severity":"gotcha","affected_versions":"all"},{"fix":"Check esbuild's compatibility for your features.","message":"Uses esbuild, which may not support all TypeScript features like decorators or const enums","severity":"gotcha","affected_versions":"all"},{"fix":"Use `npx tsr-node hello.ts` to avoid global installation.","message":"Global install may conflict with other Node.js tools","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm i -g tsr-node`.","cause":"Package not installed or not in PATH","error":"tsr: command not found"},{"fix":"Install esbuild: `npm i -g esbuild` or reinstall tsr-node.","cause":"Missing esbuild dependency (it's a peer dependency?)","error":"Error: Cannot find module 'esbuild'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}