TypeScript Esmodules

Open-source TypeScript projects categorized as Esmodules

Top 6 TypeScript Esmodule Projects

  • cloudflare-worker-jwt

    A lightweight JWT implementation with ZERO dependencies for Cloudflare Workers.

    Project mention: A lightweight JWT implementation with ZERO dependencies for Cloudflare Workers | news.ycombinator.com | 2023-09-12
  • top-level-await-in-aws-lamba-with-typescript

    🚀 Using top-level await in AWS Lambda with TypeScript, esbuild and Serverless Framework

  • Appwrite

    Appwrite - The open-source backend cloud platform. The open-source backend cloud platform for developing Web, Mobile, and Flutter applications. You can set up your backend faster with real-time APIs for authentication, databases, file storage, cloud functions, and much more!

  • ts-type-module-example

    Turning your TypeScript package into "type": "module"

  • typescript-esm-packager

    A collection of tools to build ESM packages with TypeScript.

    Project mention: Things to keep in mind when publishing a JavaScript library in 2023 | news.ycombinator.com | 2023-04-29

    The rumors are true! Luxury housing is in development, and it’s taking place in Hell’s most gentrified neighborhood. Sources close to the project are calling it ES Modules, and everybody who’s anybody wants in on this high-end horror show.

    Honestly, I love the new module syntax compared to the old `require` song and dance. They fit nicely with promises and ensure some level of behavioral consistency in the browser and other runtimes. We could even drop the need for bundling for small enough projects, and get back to the simpler times of dropping a script tag in your HTML. I just don’t understand why Node can’t get its story straight.

    Let’s just talk about the file extension thing first. The brain trust at the lab decided that ES module files should have a .mjs extension to indicate the contents of the file. Fair enough. But .js also works sometimes, depending on the configuration set in the package.json file? We’ll chock this up to gradual adoption.

    There’s also some fun caveats about module resolution to keep things interesting. ES Modules need either a fully qualified path, or a relative path — both must include file extensions. Again, that’s also fine. I actually prefer it! So there’s the mystery factor of what happens to all the current NPM packages that aren’t compliant. Simple! We just have a special flag to make those work.

    So how do we get this ball of tape running in the browser exactly? A bundler…the very thing we were trying to avoid in the first place! Remember the dream of isomorphic code? Not debugging a Webpack build with shoddy source maps? We’re right back where we started but with a whole new set of meta problems.

    The most entertaining part of this game is telling your coworkers the difference between an import map and a package.json exports declaration. God help you if have TypeScript holding up this paper shack. Try building a ES module compatible library that includes TSX files just using the TypeScript compiler. Remember that it’s gotta be .mjs files that get output, and all your imports have to be fully qualified.

    If you’re nostalgic for the DMV, I recommend that you visit the TypeScript repo and check out how this module thing is going. You see, there are two developers at Microsoft. One tells truths, and the other plugs their ears and shouts, “LALALALALALA! TypeScript doesn’t and won’t ever rewrite modules!”

    It’s been like this for years and will take some additional years to complete. And don’t get me wrong, I’m sympathetic to the difficulties of this affair. But it’s becoming more like a sudden urge to vomit when the someone in the room starts heaving at your table.

    And finally, I’m so spoiled that I expect free stuff from the community. I built a tool to make ES modules and TypeScript play nice. It’s my greatest wish that it gets deprecated before I’m sent to live on a farm upstate…

    https://github.com/sister-software/typescript-esm-packager

  • cynic

    simple async run-anywhere js testing framework

  • esm-polyfills

    ESM module polyfills for nodejs

    Project mention: Automatic CommonJS polyfills for ES modules | /r/node | 2023-02-21

    Would love to hear your feedback on the library, please check it out at - https://github.com/subbu963/esm-polyfills

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-09-12.

TypeScript Esmodules related posts

Index

What are some of the best open-source Esmodule projects in TypeScript? This list will help you:

Project Stars
1 cloudflare-worker-jwt 420
2 top-level-await-in-aws-lamba-with-typescript 21
3 ts-type-module-example 8
4 typescript-esm-packager 5
5 cynic 4
6 esm-polyfills 3
Tired of breaking your main and manually rebasing outdated pull requests?
Managing outdated pull requests is time-consuming. Mergify's Merge Queue automates your pull request management & merging. It's fully integrated to GitHub & coordinated with any CI. Start focusing on code. Try Mergify for free.
blog.mergify.com