modglot VS tsx

Compare modglot vs tsx and see what are their differences.

tsx

⚡️ TypeScript Execute: Node.js enhanced to run TypeScript & ESM (by privatenumber)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
modglot tsx
2 24
0 7,841
- 5.2%
2.7 9.2
10 months ago 3 days ago
Shell TypeScript
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

modglot

Posts with mentions or reviews of modglot. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-21.
  • Disillusioned with Deno
    1 project | news.ycombinator.com | 26 Feb 2024
    I started a small hobby project. First with TypeScript and Modern Web Dev Server (https://modern-web.dev/guides/dev-server/getting-started/). I don't want bundling and for a while life was good. But then I had some npm packages that didn't support EcmaScript modules. I found a workaround but suddenly I lost motivation. I then thought, okay, perhaps time to change to Deno.

    Half a year later I changed to vanilla Rust, trunk, Webassembly and some JavaScript glue code and suddenly a lot of things got easier. Of course as a Rust programmer it is easy for me. But I am also a JavaScript programmer.

    This is just anecdotal but it really seems to me that the JavaScript ecosystem is so deeply flawed to burn out people. Let me list two main points which are broken:

    - Types are wonky. TypeScript does a huge work to "fix" JavaScript and I love TypeScript. But TypeScript cannot fix the soundness holes in JavaScript. There will be always things that don't work out of the box.

    - The missing dependency story. Node introduced CommonJS, but it didn't work on browsers. Browser just added objects to the browser's Window object. Later there are EcmaScript modules but too late. I wrote a hacky polyglot which does both UMD and EcmaScript modules, but I feel the polyglot to be brittle. https://github.com/nalply/modglot

    I am still thinking about it, but I feel JavaScript could go the way of PHP. Still important, but too much a mess to be taken seriously. Perhaps in about ten years. I don't know.

  • Finally, a guide for Node.js and TypeScript and ESM that works
    18 projects | news.ycombinator.com | 21 Nov 2023
    One problem I encountered with ESM TypeScript development on the browser without bundling: many Node packages aren't set up for that.

    You might ask why without bundling?

    Sometimes you just want to start something simple on the browser and compile to JavaScript on the fly.

    I tried the dev server from Modern Web [0], and I liked it. I program in TypeScript and the browser reloads whenever I save a file. Of course I could set up a bundler and for a small program waiting times are negligible. But I hate bundlers. I know it's irrational, but nowadays I program for fun so I think I should have the choice to reject bundlers.

    This fails for many Node dependencies. There is a conflict between CommonJS and ESM. I am not 100% sure that what I want to achieve is impossible without forking dependencies and making a small change.

    I even found a way to have a CommonJs and ESM polyglot, but this hack is extremely ugly, so my intellectual curiosity is satisfied. I named the hack modglot [1]. I don't think this is a good idea and I don't understand enough to propose something. I am somewhat dejected about the current state of TypeScript development for the browser and paused development.

    Now I am programming in Rust again just for fun, but if I return to TypeScript, probably I will try out Deno.

    [0]: https://modern-web.dev/guides/dev-server/getting-started/

    [1]: https://github.com/nalply/modglot

tsx

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 2023-11-21.
  • 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.
  • xtsz - a TS / JS file runner with support for HTTP/S imports
    5 projects | /r/node | 22 Apr 2023
    Want to import a package / file conveniently from esm.sh or unpkg or directly from a GitHub repo for a one-off script (for example). To do this I created a custom ESBuild plugin to handle HTTP imports - that worked for ,js files. To support running both ESM and CJS, I use tsx.
  • What is your must have npm package on any given project?
    15 projects | /r/webdev | 5 Apr 2023
    I prefer tsx honestly. Nodemon will detect that your using TypeScript and switch from node to ts-node but tsx is a no config necessary version of ts-node that also runs faster. Of course you can configure ts-node to use swc to be faster but then you're playing with config files to get things working.
  • Question about debugging TypeScript
    1 project | /r/typescript | 3 Apr 2023
    I highly recommend you give this a shot over ts-node
  • Jsx as a general templating language?
    1 project | /r/reactjs | 8 Mar 2023
    Dude I just worked on a PoC a few hours ago. What I did was use ReactDOM's renderToStaticMarkup and tsx to execute the script so I get jsx transpilation on the fly.
  • Thoughts about Deno?
    3 projects | /r/typescript | 25 Feb 2023
    I’ve been trying to adopt Deno into new projects, but I find Node through tsx good enough.
  • Will nodeJs ever have out of the box typescript support?
    6 projects | /r/node | 22 Feb 2023
    try tsx. it has support for watch mode and works great with esm module projects.
  • Why is this so hard to do? Help
    3 projects | /r/typescript | 19 Feb 2023
    This is the answer: https://github.com/esbuild-kit/tsx
  • <3 Deno
    11 projects | news.ycombinator.com | 12 Feb 2023
    Have a look at https://github.com/esbuild-kit/tsx

    _tsx is a CLI command (alternative to node) for seamlessly running TypeScript & ESM, in both commonjs & module package types.

    It's powered by esbuild so it's insanely fast._

What are some alternatives?

When comparing modglot and tsx you can also consider the following projects:

esyes - Run your TypeScript files quickly and with more positivity

esbuild-runner - ⚡️ Super-fast on-the-fly transpilation of modern JS, TypeScript and JSX using esbuild

tsconfig - Shared TypeScript config for my projects

ts-node - TypeScript execution and REPL for node.js

node_monorepo

ts-runtime-comparison - Comparison of Node.js TypeScript runtimes

documentation-framework - "The Grand Unified Theory of Documentation" (David Laing) - a popular and transformative documentation authoring framework

esno - Alias to `tsx`

prepackage-checks

esbuild-node-tsc - Build your Typescript Node.js projects using blazing fast esbuild

deno-arm64 - ARM64 builds for Deno

vite - Next generation frontend tooling. It's fast!