tsx

⚡️ TypeScript Execute | The easiest way to run TypeScript in Node.js (by privatenumber)

Tsx Alternatives

Similar projects and alternatives to tsx

  1. TypeScript

    1,419 tsx VS TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  2. Civic Auth

    Auth in Less Than 5 Minutes. Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.

    Civic Auth logo
  3. node

    1,194 tsx VS node

    Node.js JavaScript runtime ✨🐢🚀✨

  4. Svelte

    702 tsx VS Svelte

    web development for the rest of us

  5. jest

    518 tsx VS jest

    Delightful JavaScript Testing.

  6. deno

    484 tsx VS deno

    A modern runtime for JavaScript and TypeScript.

  7. prettier

    481 tsx VS prettier

    Prettier is an opinionated code formatter.

  8. Prisma

    478 tsx VS Prisma

    Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  10. ESLint

    427 tsx VS ESLint

    Find and fix problems in your JavaScript code.

  11. bun

    369 tsx VS bun

    Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

  12. esbuild

    354 tsx VS esbuild

    An extremely fast bundler for the web

  13. vitest

    150 tsx VS vitest

    Next generation testing framework powered by Vite.

  14. Nodemon.io

    149 tsx VS Nodemon.io

    Monitor for any changes in your node.js application and automatically restart the server - perfect for development

  15. fresh

    134 tsx VS fresh

    The next-gen web framework.

  16. proposal-type-annotations

    ECMAScript proposal for type syntax that is erased - Stage 1

  17. dayjs

    109 tsx VS dayjs

    ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API

  18. Sequelize

    96 tsx VS Sequelize

    Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.

  19. esno

    10 tsx VS esno

    Alias to `tsx`

  20. ts-runtime-comparison

    Comparison of Node.js TypeScript runtimes

  21. ts-node

    23 tsx VS ts-node

    TypeScript execution and REPL for node.js

  22. tsc-esm-fix

    2 tsx VS tsc-esm-fix

    Make Typescript projects compatible with esm/mjs requirements

  23. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better tsx alternative or higher similarity.

tsx discussion

Log in or Post with

tsx reviews and mentions

Posts with mentions or reviews of tsx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-01-08.
  • How to Build a GenAI Bluesky Bot with Langflow, TypeScript,and Node.js
    4 projects | dev.to | 8 Jan 2025
    Add the following scripts to package.json, too. The build script will compile the TypeScript we're going to write into JavaScript, and the start script will run that JavaScript. Finally, to make development easier, the dev script will use tsx to run the TypeScript directly and restart when changes are detected.
  • Creating a TypeScript CLI for Your Monorepo
    2 projects | dev.to | 1 Dec 2024
    Using commander.js and tsx, we can create executable programs written in TypeScript that run from the command line like any other CLI tool.
  • NextJS + Drizzle -- 8 Things I Learned Spinning up a New Project
    2 projects | dev.to | 1 Nov 2024
    To test and iterate on backend code, I've started calling some modules (like OpenAI researches) from scripts I execute via the terminal. Copious console.debug and console.warn statements make this a kinda effective way to debug without having to craft a frontend. To execute these scripts, I use TSX resulting in commands like this one that extracts events from history books:
  • Setting up Subpath Import Aliases in a TypeScript Project
    5 projects | dev.to | 1 Sep 2024
    For other tools, you should check their documentation on custom conditions support. I've tried to run my project with tsx. As it supports all Node.js flags, I've just provided custom condition via -C flag:
  • TypeScript Execute (TSX)
    1 project | news.ycombinator.com | 25 Jul 2024
  • Effortless API Testing: Node.js Techniques for Next.js Route handlers
    8 projects | dev.to | 24 Jul 2024
    Luckily, this is a very common thing and Tsx, a can help us with this. We simply have to import this module and we'll be able to execute Typescript code with Node.js:
  • Using TypeScript in Node.js projects
    2 projects | dev.to | 8 Jul 2024
    Next, we need to set up a development script that will watch for changes in our TypeScript files and recompile them. Personally, I like to use tsx, as it provides a much faster development experience compared to the built-in TypeScript watcher or ts-node. First, install tsx:
  • Making Eleventy Data Traceable with TSX and Zod
    2 projects | dev.to | 14 May 2024
    At this point, you will have a setup which relies on tsx to understand TypeScript, and jsx-async-runtime to understand JSX/TSX templates.
  • Finally, a guide for Node.js and TypeScript and ESM that works
    18 projects | news.ycombinator.com | 21 Nov 2023
    I really enjoy frontend/node/typescript development. I roll my eyes whenever the HN-types complain about CSS or frontend development being a hellhole. Mostly the comments I see seem ignorant or impatient ("Why doesn't this thing work without be bothering to learn it?")

    However, the intersection of typescript, nodejs, and ES modules is consistently the most frustrating experience I ever have. Trying to figure out which magic incantation of tsconfig/esbuild/tsc/node options will let me just write code and run it is a fools errand. You might figure something out, and then you try to use Jest and then you descend into madness again.

    The biggest tip I can give people is to ditch ts-node and just use (the awkwardly named) tsx https://github.com/privatenumber/tsx, which pretty much just "mostly works" for running Typescript during dev for node.

    The problem mostly seems to stem for all the stakeholders being pretty dogmatic to whatever their goals are, rather than the pragmatic option of just meeting people where they are. I really wish the Node, Typescript, Deno/Bun, and maybe some bundler people would come together and figure out how to make this easier for people.

  • ERDIA: TypeORM entity specification documentation tool
    6 projects | dev.to | 28 Aug 2023
    If your TypeORM entity is written in TypeScript, you have to run ERDIA using ts-node or tsx as follows.
  • A note from our sponsor - Civic Auth
    www.civic.com | 21 Apr 2025
    Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today. Learn more →

Stats

Basic tsx repo stats
31
10,611
8.4
about 1 month ago

privatenumber/tsx is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of tsx is TypeScript.


Sponsored
Auth in Less Than 5 Minutes
Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
www.civic.com