---
title: "Modern alternatives to Express.js"
publication: "Node Weekly"
issue: 367
published_at: "2020-12-03"
canonical_url: "https://nodeweekly.com/issues/367"
---

Plus why npm 7 is so good, mining your CLI history, and deploying Node to Fargate |        

#367 — December 3, 2020 

[Read on the Web](https://nodeweekly.com/issues/367)   

Node Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/xqbmcmcbltvrbbu7fzfq.jpg)](https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/)  

[AWS Lambda Adds Container Image Support](https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/) — And AWS uses Node in this post to show off the new feature. AWS Lambda is a serverless platform where you upload code and then it can be executed on a ‘pay as you go’ basis. Supporting containers might feel better to many developers wary of Lambda’s usual ‘upload a ZIP file’ approach. Lambda also now bills in 1 millisecond increments [with a 1 millisecond minimum](https://aws.amazon.com/blogs/aws/new-for-aws-lambda-1ms-billing-granularity-adds-cost-savings/), so it may be worth another look. 

Danilo Poccia (AWS)   

[csv-parser 3.0: A Streaming CSV Parser Aimed at Maximum Speed](https://github.com/mafintosh/csv-parser) — Aiming to “be faster than everyone else”, use this to ingest CSV and get JSON in return. [neat-csv](https://github.com/sindresorhus/neat-csv) provides a Promise-based wrapper if you need it. 

Mathias Buus   [![\](https://copm.s3.amazonaws.com/3bb03502.png)](https://dashboard.redisgreen.net/nodeweekly) 

[Redis 6.0 on RedisGreen](https://dashboard.redisgreen.net/nodeweekly) — SSL encryption, key size tracking, memory mapping, online upgrades, and more. 

RedisGreen sponsor    

[npm 7: This Is What I Call An Update!](https://blog.bitsrc.io/npm-7-this-is-what-i-call-an-update-de17a34ab787) — [npm 7](https://blog.npmjs.org/post/631877012766785536/release-v700) came out in October, but here the author sings its praises and why workspaces and peer dependency management have meant to a lot to him. 

Fernando Doglio       

✨ Rising alternatives to Express 

A few alternative webapp libraries and frameworks have come up on our radar lately, if you're looking for a change from Express, Fastify, Koa, and more established options: 

- [Tinyhttp 1.0](https://thecarrots.io/blog/tinyhttp-1.0-replacement-of-express) is a modern 'Express replacement' that also goes the TypeScript route. Being _as minimal as possible_ while leaning on modern language features is its goal.
- [Foal TS](https://foalts.org/) is a TypeScript-oriented webapp framework that's just passed 1000 stars on GitHub. While simplicity is one of its goals, it comes with a lot built-in like auth, a CLI, job scheduling, etc.
- [pure-http](https://github.com/htdangkhoa/pure-http) has no dependencies, is lightweight, and has a very Express-like feel, while being faster. 

Of course, [Express.js](https://expressjs.com/) itself remains a fine choice!     

📗 **Tutorials and Stories**  

[Measuring Web Page Performance with Puppeteer or Playwright](https://theheadless.dev/posts/basics-performance/) — Puppeteer and Playwright are useful for remote controlling headless browsers, and you can use some new Web performance APIs with them to do remote or even automated performance measurement of Web pages. 

Giovanni Rago   

[Mining Your CLI History for Good `git` Aliases](https://httptoolkit.tech/blog/find-best-git-aliases/) — How a little shell magic can tell you a lot about your working habits and help you make things even more efficient. 

Tim Perry   

[How to Deploy a Node App to AWS Fargate with Auto-Scaling](https://matthewkindzerske.com/2020/11/19/node-js-web-app-deployed-to-aws-fargate-w-auto-scaling/) — If full on AWS Lambda isn’t for you, maybe AWS Fargate (basically a serverless compute engine for containers) could get you running serverlessly without a huge paradigm shift. 

Matthew Kindzerske   

[5 Ways Organizations Can Lean into Failure and Transform It into Success](https://launchdarkly.com/blog/5-ways-lean-into-failure/?utm_source=Cooperpress&utm_medium=Display&utm_campaign=Q4-Cooperpress) 

LaunchDarkly sponsor   

[How to Understand the `reduce` Function in Five Examples](http://thecodebarbarian.com/javascript-reduce-in-5-examples.html) — Summing, seeking, chaining, and generally bringing things together. 

Valeri Karpov   

[Malicious npm Packages Caught Installing Remote Access Trojans](https://www.zdnet.com/article/malicious-npm-packages-caught-installing-remote-access-trojans/) — Devs who installed the jdb.js and db-json.js packages were vulnerable to the njRAT malware. 

Catalin Cimpanu   

[What You Need To Know About npm Workspaces](https://hyperfoo.io/posts/npm-7-workspaces-1) 
Ruan Martinelli     

🛠 Code and Tools   

supported by [![Okta\](https://res.cloudinary.com/cpress/image/upload/v1602154330/de7dtktheistsfpqdem4.png)](https://developer.okta.com/?utm_campaign=newsletter_cooperpress_all_multiple_inc_dev_sponsored-section_null&utm_source=cooperpress&utm_medium=cpc)    

[DuckDB Gets a Node.js API](https://github.com/cwida/duckdb/pull/1112) — [DuckDB](https://duckdb.org/) is an interesting, embeddable SQL OLAP DBMS. Think SQLite, but more oriented towards analytics. More on [why you might use DuckDB.](http://bicortex.com/duckdb-the-little-olap-database-that-could-tpc-ds-benchmark-results-and-first-impressions/) 

CWI Database Architectures Group   

[auth.js 3.0: GitHub API Authentication Library for Node and Browser](https://github.com/octokit/auth.js) — An official library, no less, and it supports four auth strategies. 

GitHub   

[pg-mem: An Experimental In-Memory Postgres Instance for Tests](https://github.com/oguimbal/pg-mem) — I’m not sure about this approach for the long term as it’s a clone with its own SQL parser and will not behave identically to Postgres, but if you’re a Node developer maybe it’ll be of interest. There’s [a playground](https://oguimbal.github.io/pg-mem-playground/) if you want to experiment with what it can handle. 

Olivier Guimbal   

[Full-Featured API That Lets You Build Beautiful Video for Your Node App](https://get.mux.com/37h4v1X) 

Mux sponsor   

[Serverless-Postgres: Manage Postgres Connections at Serverless Scale in Node.js](https://github.com/MatteoGioioso/serverless-pg) — [RDS Proxy](https://aws.amazon.com/rds/proxy/) is one way to handle lots of simultaneous database connections but.. costs money. This doesn’t, and if you’re using a library built on top of `node-pg`, you might find it useful. 

Matteo Gioioso   

[npm v7.0.15 Released](https://blog.npmjs.org/post/635957977230213120/release-v7015) — A very minor release. 
The npm Blog   

[easy-soap-request: Small Library to Make SOAP Requests Easier](https://github.com/circa10a/easy-soap-request) — If you still have to work with SOAP.. 
Caleb Lemoine   

[Couchnode 3.1.0: The Official Couchbase Node.js Client Library](https://github.com/couchbase/couchnode) 
Couchbase, Inc.  

💻 **Jobs**  

[Node.js Developer at X-Team (Remote)](https://x-team.com/remote-nodejs-developer-jobs/?utm_source=cooperpress&utm_medium=email-ad&utm_campaign=node) — Join the most energizing community for developers and work on projects for Riot Games, FOX, Sony, Coinbase, and more. 

X-Team   

[Find a Job Through Vettery](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-nodeweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-88879) — Create a profile on Vettery to connect with hiring managers at startups and Fortune 500 companies. It's free for job-seekers. 

Vettery     

**Elsewhere:** In [this week's _StatusCode Weekly_](https://weekly.statuscode.com/issues/295), we covered the best announcements from _AWS re:Invent_, the 2020 'Advent of Code', a new release of _Homebrew_ and a lot more. If you want a broader range of developer news in our usual style, [check it out.](https://weekly.statuscode.com/issues/295)    

**Got a new email?** You can [change your address here](https://nodeweekly.com/edit_subscription/*|UID|*). 

--- 

**Bored of us?** [Click here to stop getting Node Weekly](https://nodeweekly.com/leave/*|UID|*). 

--- 

**Got a link for us?** Reply and tell us. We can't include everything but we'll look at anything you send. Thanks! 

--- 

**Want to sponsor?** Email `[kristina@cooperpress.com](mailto:kristina@cooperpress.com)` for details. 

--- 

Published by Cooper Press Ltd.
Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom 

[Stop getting this newsletter.](https://nodeweekly.com/leave/*|UID|*)
