GithubHelp home page GithubHelp logo

"middify" express/koa middleware about middy HOT 4 CLOSED

middyjs avatar middyjs commented on May 31, 2024 5
"middify" express/koa middleware

from middy.

Comments (4)

trongdong avatar trongdong commented on May 31, 2024 1

I saw the same idea already implemented in this repository: https://github.com/dougmoscrop/serverless-http
I was thinking about this at first, but then I realize that I prefer lean code base that fit to serverless/ lambda environment rather then reuse the existing middleware.

from middy.

lmammino avatar lmammino commented on May 31, 2024

It sounds as a very good idea, though it might not be super simple because of the different abstractions: request/event -> response. So the first issue would be to find a way to remap the data across them.

This repo might be a good starting point to figure out how to address this issue: https://github.com/awslabs/aws-serverless-express

from middy.

willfarrell avatar willfarrell commented on May 31, 2024

@techfort was there a specific middleware you needed to use?

from middy.

TAnas0 avatar TAnas0 commented on May 31, 2024

If I understand correctly what you guys are trying to achieve, then this would help also support Zeit Now serverless NodeJS functions (https://zeit.co/blog/now-node-helpers).

I wanted to refactor my crude middlewares into Middy, but the handler has a different signature.

from middy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.