New:Socket for Asana Is Now Available.Learn more
Get Started

x-openapi-flow-nestjs-kit

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x-openapi-flow-nestjs-kit

NestJS integration helpers for x-openapi-flow runtime guard

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

x-openapi-flow-nestjs-kit

NestJS integration helpers for x-openapi-flow runtime guard.

Install

npm install x-openapi-flow x-openapi-flow-nestjs-kit

Middleware usage

const { createFlowMiddleware, MemoryAdapter } = require("x-openapi-flow-nestjs-kit"); const openapi = require("./openapi.flow.json");

const store = new MemoryAdapter(); const flowMiddleware = createFlowMiddleware({ openapi, ...store.forGuard() });

class FlowGuardMiddleware { use(req, res, next) { return flowMiddleware.use(req, res, next); } }

Guard usage (CanActivate)

const { createFlowGuard, MemoryAdapter } = require("x-openapi-flow-nestjs-kit"); const openapi = require("./openapi.flow.json");

const store = new MemoryAdapter(); const flowGuard = createFlowGuard({ openapi, ...store.forGuard() });

class FlowGuard { canActivate(context) { return flowGuard.canActivate(context); } }

Exports

  • createFlowMiddleware
  • createFlowGuard
  • createNestFlowMiddleware
  • createNestFlowCanActivate
  • MemoryAdapter
  • FileAdapter
  • RedisAdapter
  • GenericSQLAdapter

Keywords

nestjs

FAQs

Package last updated on 02 May 2026

Related posts