middy
vite
Our great sponsors
middy | vite | |
---|---|---|
22 | 784 | |
3,627 | 64,457 | |
0.6% | 1.6% | |
9.4 | 9.9 | |
5 days ago | 6 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
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.
middy
-
Testing Serverless Applications on AWS
Adding the is-test flag to our object metadata gave us our way of passing some kind of test context into our workload. The next step was to make the Lambda Function capable of discovering the context and then using that to control how it behaves under test. For this we used Middy.
-
Learn serverless on AWS step-by-step: Strong Types!
I also decided to use the middy library to add CORS management to our lambda function. This will allow us to call our lambda function from our frontend, without having to worry about CORS.
-
Implementing Magic Links with Amazon Cognito: A Step-by-Step Guide
This function uses the Middy middleware engine to handle unhandled errors and add CORS headers in the response.
-
Ask HN: What would be your stack if you are building an MVP today?
I mean I'm literally building an AWS lambda function that outputs HTML when it's called via API Gateway. So someone hits https://mydomain.com/mycoolpage, then the MyCoolPage AWS Lambda function is executed and outputs whatever.
If you're interested, I use https://middy.js.org/ as a middleware engine for my AWS lambda functions which I find helpful.
I use the open sourced serverless framework for doing deploys https://www.serverless.com/
-
tRPC: Build Full-Stack TypeScript Applications With Type Safety
middy for lambda-side middleware
-
How to Securely Use Secrets in AWS Lambda?
That is it from the CDK side. Now let us create the handler and retrieve that secret. I like to use middy which describes itself as "stylish Node.js middleware engine for AWS Lambda". It offers some helpful middlewares like ssm which will help us retrieve and cache values from SSM Parameter Store. (Middy provides various other official middlewares including one for Secrets Manager.) I prefer a middleware for this because it keeps the code for retrieving the secret out of your handler which should deal with actual business logic.
-
Lambda Powertools TypeScript is Generally Available
So what's changed in the beta? A glance at the CHANGELOG suggests the answer is that not very much has changed in six months. Lambda Powertools TypeScript still supports class decorators, middy, and a manual API. It still covers the core capabilities of logging, metrics and tracing, and no new capabilities have been added. Outside of some bug fixes and optimization, this is still very much the library I previewed back in January.
-
Your CORS and API Gateway survival guide
If you use Javascript, check out the Middy middleware engine for use with Lambda. It has a lot of nice middlewares that handle the boring boilerplate of your Lambda functions. One is the cors middleware, which automatically adds CORS headers to your functions.
-
First Look at Lambda Powertools TypeScript
I'm a big fan of TypeScript and in fact co-authored a book about it. I don't find myself using Java or Python much, so while I've been interested in Lambda Powertools, I never tried it out until now. Lambda Powertools TypeScript joins middy and DAZN Lambda Powertools in the Lambda tooling space for the Node.js runtime. Two things that differentiate Lambda Powertools TypeScript from comparable libraries are it is sponsored by AWS and it supports decorators.
-
Test Drive AWS Lambda Powertools for Typescript
The next natural step was to look at middleware such as Middy to decorate the main business logic, and allow these tasks to be defined once and used consistently. I remember listening to a Comic Relief talk about their Lambda wrapper back in 2019. Since then, I was introduced by Yan Cui to DAZN Lambda Powertools, which was the inspiration for this new project.
vite
-
RubyJS-Vite
Little confused as to why it has vite in it‘s name, it seems unrelated to https://vitejs.dev/
-
Deploy a react projects that are inside a subdirectories to GitHub Pages using GitHub Actions (CI/CD)
First you have to know that all those react projects are created using Vite, and for each of them, you need change the vite.config.ts file by adding the following configuration:
-
Collab Lab #66 Recap
JavaScript React Flowbite Tailwind Firebase - Auth, Database, and Hosting Vite
-
Use React.js with Laravel. Build a Tasklist app
For this full-stack single-page app, you'll use Vite.js as your frontend build tool and the react-beautiful-dnd package for draggable items.
-
Top 10 Tools Every React Developer Needs in 2024
Vite
-
Implementing SSO in React with GitHub OAuth2
Imagine a shiny new React app — that’s what we’ll build! We’ll use a cool tool called Vite to set it up.
-
Tutorial: React + Emailjs
If you want to learn more about the Vite build tool here is a link to the documentation.
-
Building a Fast, Efficient Web App: The Technology Stack of PromptSmithy Explained
We all know what React is at this point, but why use it with Vite and React Router DOM over something like NextJS?
-
Creating Nx Workspace with Eslint, Prettier and Husky Configuration
Vite [ https://vitejs.dev/ ]
-
Qilin: A Starter Project Template For Every Open Source Project
A great example of this is the introduction to the Vite project.
What are some alternatives?
Next.js - The React Framework
parcel - The zero configuration build tool for the web. 📦🚀
esbuild - An extremely fast bundler for the web
swc - Rust-based platform for the Web
astro - The web framework for content-driven websites. ⭐️ Star to support our work!
Rollup - Next-generation ES module bundler
Laravel Mix - The power of webpack, distilled for the rest of us.
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
turborepo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo]
SvelteKit - web development, streamlined
bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
nx - Smart Monorepos · Fast CI