serverless-express
bun
Our great sponsors
serverless-express | bun | |
---|---|---|
18 | 286 | |
5,051 | 70,251 | |
0.7% | 2.6% | |
8.4 | 10.0 | |
6 days ago | 4 days ago | |
JavaScript | Zig | |
Apache License 2.0 | - |
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.
serverless-express
-
[Open source] Serverless Express Starter Kit with CI/CD on AWS
After building out a GPT powered endpoint, I wanted a low cost way of hosting it. At the time, I came across the serverless-express project https://github.com/vendia/serverless-express/tree/mainline, but no actual starter kits that would allow me to deploy it.
-
Nest.js in Lambda
It’s all handled using https://github.com/vendia/serverless-express
-
EuroSquares: An AWS Amplify-Powered Game for Eurovision 2023
Amplify gives an option of using a template and linking the API Endpoint with the Lambda and a connected DynamoDB table. I selected the template, Serverless Espress, which provided a lot of code in the template, though the majority of it felt overly bloated for what was effectively CRUD functionality.
-
Moving from Apollo to Vanilla GraphQL
With that in mind, the goal of this library is to be as lightweight as possible. There are other libraries out there that can handle express -> serverless mutation. See Serverless Express for that. If you want to rewrite as little code as possible, that is your best solution. With that being said, if the sole purpose of express is middleware and is only hosting a one-endpoint GraphQL server, I recommend rewriting to utilize this library.
-
Porting Curveball to Bun
To get Express to run on AWS Lambda the Node http stack needs to be emulated, or a full-blown HTTP/TCP server needs to be started and proxied to. Each of these workarounds require a ton of code from libraries like serverless-express.
-
Serverless backend (AWS S3/API GW/Lambda) vs. Node/Express?
Express is a framework/software. Lambda is compute. You can run express in Lambda. Ive done this and it was great. Check out https://github.com/vendia/serverless-express. The cool thing is that it's portable - you can build for one compute environment, and move it to another if it doesnt suit
-
Using a Lambda function for a very early monolithic app?
Yea its fine use https://github.com/vendia/serverless-express since you are using express
- Deploy React and Node+Express application using AWS SAM Cli
-
Deploy a NestJS API to AWS Lambda with Serverless Framework
Serverless Express - library that makes our "plain" NestJS API play nicely with Serverless
-
AWS Lambda: Can you have too many? Or is it more nuanced than that?
Some people like the Unix philosophy of "Do one thing and do it well" for Lambdas, others would build a monolithic app using a single Lambda with built in "routes". Both designs have pros and cons.
bun
-
React Server Components Example with Next.js
At Node Conference 2023, Jarred Sumner (creator of Bun) showed a demo of server components in Bun, so there is at least partial support in that ecosystem. The Bun repo provides bun-plugin-server-components as the official plugin for server components. And while I haven’t looked at it in-depth, Marz claims to be a “React Server Components Framework for Bun”.
- Bun – A fast all-in-one JavaScript runtime
-
From Node to Bun: A New Dawn for JavaScript Engines?
Continuously evolving, Bun is currently optimized for MacOS and Linux, with ongoing efforts towards Windows compatibility. Tailored for resource-constrained environments like serverless functions, it emerges as an ideal solution. The Bun team is committed to achieving comprehensive Node.js compatibility and seamless integration with prevalent frameworks. For those intrigued by Bun's potential and want to give it a try, more information is available on its website at https://bun.sh/.
-
Bun - The One Tool for All Your JavaScript/Typescript Project's Needs?
Let’s say you are interested in learning more about Bun and probably give it a try. Bun has a website, where you can learn more about Bun and its features (including all the benchmark data captured in this issue), and here is the link.
-
Bun 1.1
Looks like it, it seems the 2% are mostly odd platform specific issues that the authors' did not deem very important (my assumption for the release happening anyway). AFAIK this[1] PR tries to fix them.
-
Bun-ify Your Project
Bun has a solution for it. First of all, it already has a list of trusted dependencies. For them, Bun will execute all necessary scripts by default. Otherwise, you can add it to trustedDependecies in your package.json file. In Bun community usage of trustedDependencies is a hot topic. There are several suggestions on how to improve it.
-
I have created a small anti-depression script
Install Node.js (or Bun, or Deno, or whatever JS runtime you prefer) if it's not there
-
JSR: The JavaScript Registry
I think maybe I was unclear. I'm talking about writing libraries that abstract across these differences and provide a single API, as sibling describes. I already know it's possible. I made a simple filesystem abstraction here[0] and a very simple HTTP library that uses it here[1]. They both work in Node/Deno and the browser. Unfortunately I ran into issues with Bun's slice implementation[2]. But I suspect there's a much better way of detecting and using the different backends.
[0]: https://github.com/waygate-io/fs-js
-
SelectorHound: The tool for Sniffing out CSS Selectors
For, for more speed (requires installing bun first):
-
OpenCommit: feature-rich CLI to generate meaningful git commit messages now supports local models via Ollama 🤯🔫
OpenCommit is a CLI to generate commit messages, you can try it right now by running npx opencommit in any repo you have changed code in. I suggest you use bunx opencommit (install Bun) or install OpenCommit globally npm i -g opencommit and then run oco which is a shorthand.
What are some alternatives?
aws-lambda-fastify - Insipired by aws-serverless-express to work with Fastify with inject functionality.
vite - Next generation frontend tooling. It's fast!
dynamoose - Dynamoose is a modeling tool for Amazon's DynamoDB
GORM - The fantastic ORM library for Golang, aims to be developer friendly
passport-apple - Apple authentication strategy for Passport and Node.js.
nvm - Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
fastify - Fast and low overhead web framework, for Node.js
TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.
go-pg - Golang ORM with focus on PostgreSQL features and performance
arc.codes - The Architect web site! 🌩
deno - A modern runtime for JavaScript and TypeScript.