TypeScript Middleware

Open-source TypeScript projects categorized as Middleware Edit details

Top 23 TypeScript Middleware Projects

  • http-proxy-middleware

    :zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more

    Project mention: What libraries should I use to map multiple ports into a single one with node.js? | reddit.com/r/node | 2022-06-08

    Actually I'm receiving errors like The resource from “http://localhost:8090/Sidebar/Sidebar.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)... Both my css and js files are gettings "text/html" on their headers and changing the http-proxy-middleware options doesn't seem to change it... On their GitHub there's an issue about it: https://github.com/chimurai/http-proxy-middleware/issues/580 ... And they say that it's a webpack issue: https://github.com/froala/angular-froala/issues/170 ... But these solutions on the second page don't work for me.

  • helmet

    Help secure Express apps with various HTTP headers

    Project mention: CSP nonce with Node.js and EJS | dev.to | 2022-07-03

    Imagine, not necessarily because it happens when you are creating an app, having a reasonable amount of scripts and styles to whitelist. The CSP middleware function in the main server file will grow and become sort of ugly and hard to maintain. An excellent alternative would be to use Helmet if you're using Express.

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • telegraf

    Modern Telegram Bot Framework for Node.js (by telegraf)

    Project mention: Telegram Bots for Begginers | dev.to | 2022-08-14

    Of course, it's good to write API requests yourself. It reduces the dependency on third-party libraries and allows you to control the behavior of the code more. But when there are more such methods than twenty, it already increases the size of the code. It becomes difficult to manage all the logic. This is where third-party libraries(frameworks) come to the rescue. After choosing a language, you can consider the options of different libraries from the list here, on the official Telegram page. For JavaScript I recommend using node-telegram-bot-api and telegraf. For Python you can take pyTelegramBotAPI and aiogram(highly recommended).

  • Ts.ED

    :triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone.

    Project mention: The Case for C# and .NET | reddit.com/r/csharp | 2022-07-25

    I'd also love to shout out Ts.ED which is another great Typescript framework that I've written production applications with. It's a natural fit for anyone who loves .NET applications, it's why I chose it.

  • next-connect

    The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2

    Project mention: rtk query with mongodb | reddit.com/r/reduxjs | 2022-02-21

    import { getMongoClient } from 'lib/mongodb'; async function createHandler(req, res) { const { text } = req.body; const createdAt = new Date(); if (!text) { res.status(400).json({ message: 'Validation errors', errors: { text: ['Please add a text value'], }, }); return; } const goals = (await getMongoClient()).db.collection('goals'); const { insertedId: _id } = await goals.insertOne({ text, createdAt, }); res .status(201) .json({ _id, text, createdAt }); } async function listHandler(req, res) { const goals = (await getMongoClient()).db.collection('goals'); const list = []; const cursor = goals.find({}, { sort: { createdAt: 1 }, }); if ((await goals.estimatedDocumentCount()) === 0) { res.status(204).send(undefined); return; } while (await cursor.hasNext()) { const goal = await cursor.next(); list.push(goal); } res.json(list); } // Instead of this you should use https://github.com/hoangvvo/next-connect export default function handler(req, res) { if (req.method === 'POST') { createHandler(req, res); } else { listHandler(req, res); } }

  • redux-dynamic-modules

    Modularize Redux by dynamically loading reducers and middlewares.

    Project mention: Improve React App Performance - Redux/Saga Code Splitting-[ Part 2 ] | dev.to | 2022-04-25

    We came across the redux-dynamic-modules library. This library introduces the concept of a 'Redux Module', which is a bundle of Redux (reducers, middleware) that should be dynamically loaded. It is not actively maintained by Microsoft team though stable enough to use in production.

  • axios-auth-refresh

    Library that helps you implement automatic refresh of authorization via axios interceptors. You can easily intercept the original request when it fails, refresh the authorization and continue with the original request, without user even noticing.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • express-openapi-validator

    🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification

    Project mention: Automatically validate requests, responses, and auth with OpenAPI 3 and ExpressJS | reddit.com/r/node | 2022-03-15
  • Rill

    🗺 Universal router for web applications.

  • next-session

    Simple promise-based session middleware for Next.js, micro, Express, and more

    Project mention: Auth: What do do with a returned jwt | reddit.com/r/nextjs | 2021-11-19

    You can store JWT in localStorage or cookies, as well as you can store next-session. But If you want to use JWT in localStorage or cookies in safe way by encrypting key and value both. For encryption you can use any type of encryption method.

  • graphql-armor

    🛡️ The missing GraphQL security security layer for Apollo GraphQL and Yoga / Envelop servers 🛡️

    Project mention: The-Guild.dev x Escape.tech – Make secure GraphQL accessible to everyone | reddit.com/r/opensource | 2022-08-26

    Link direct to the GitHub repo, to save others clicking on LinkedIn links or reading through the marketing fluff.

  • diary

    📑 Zero-dependency, fast logging library for Node, Browser and Workers (by maraisr)

  • zundo

    🍜 undo/redo middleware for zustand. <1kB

  • dashport

    Local and OAuth authentication middleware for Deno

  • parsec 🌌

    🌌 Tiniest body parser in the universe. Built for modern Node.js

  • next-joi

    Validate NEXT.js API Routes with joi

    Project mention: Best way/tool to validate request body nextjs? | reddit.com/r/node | 2022-01-21

    JS: Joi

  • oauth2-client

    Fetch middleware for OAuth2 support (by badgateway)

    Project mention: A new OAuth2 client for Javascript | reddit.com/r/javascript | 2022-06-25

    Github link to docs: https://github.com/badgateway/oauth2-client

  • malibu

    🏄 Framework-agnostic CSRF middleware for modern Node.js (by tinyhttp)

  • cloudflare-worker-router

    A super lightweight router (2.30 KiB) with middleware support and ZERO dependencies for CloudFlare Workers.

  • compose-middleware

    Compose an array of middleware into a single function for use in Express, Connect, router, etc

    Project mention: Working on GoDaddy Terminus | dev.to | 2021-12-09

    While trying to solve this problem I tried to add middleware with compose-middleware. While trying to implement it I had troubles with integrating the middleware with the server. Since the middleware wasn't working I attempted to allow users to write headers instead.

  • http-server

    🚦 AdonisJS HTTP Server along with its Router (by adonisjs)

  • zoic

    A RESTful API-caching middleware library for Oak/Deno

    Project mention: Zoic - REST API-caching middleware for Oak/Deno | reddit.com/r/Deno | 2022-07-06

    Zoic is lightweight and fast middleware library for caching RESTful API responses in Deno HTTP framework, Oak. It provides an LRU in-memory cache, as well as support for Redis caches. Developers can use Zoic to easily cache HTTP responses with one simple middleware function that automatically handles both caching response data in the event of a cache miss, and sending responses on cache hits. Checkout our project on github, or deno.land, and our medium article to learn more!

  • browser

    A HAL browser middleware for node.js (by curveball)

    Project mention: How To Present Backend Demos | reddit.com/r/node | 2022-09-05
  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

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 2022-09-05.

TypeScript Middleware related posts

Index

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

Project Stars
1 http-proxy-middleware 9,386
2 helmet 9,177
3 telegraf 6,045
4 Ts.ED 2,246
5 next-connect 1,206
6 redux-dynamic-modules 1,033
7 axios-auth-refresh 804
8 express-openapi-validator 674
9 Rill 563
10 next-session 273
11 graphql-armor 217
12 diary 190
13 zundo 174
14 dashport 148
15 parsec 🌌 116
16 next-joi 106
17 oauth2-client 102
18 malibu 98
19 cloudflare-worker-router 95
20 compose-middleware 91
21 http-server 68
22 zoic 65
23 browser 34
Find remote jobs at our new job board 99remotejobs.com. There are 5 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Download talent.io’s Tech Salary Report
Median salaries, most in-demand technologies, state of the remote work... all you need to know your worth on the market by tech recruitment platform talent.io
www.talent.io