24 个仓库
Tools and utilities for verifying incoming request payloads against defined schemas before processing.
Distinguishing note: Focuses on the middleware layer of request validation rather than general data validation.
Explore 24 awesome GitHub repositories matching web development · Request Validation Middleware. Refine with filters or upvote what's useful.
This project is a high-performance web framework designed for building scalable server-side applications with minimal resource consumption. It provides a type-safe runtime environment that leverages static analysis to ensure consistent data structures across request handlers and server configurations, facilitating reliable API development. The framework distinguishes itself through a schema-driven validation layer that enforces strict data integrity for incoming requests and outgoing responses using standardized definitions. It utilizes an encapsulated plugin architecture that organizes appli
Verify incoming data and outgoing responses against defined schemas while executing custom logic through hooks to guarantee data integrity before your route handlers process any information.
go-zero is a toolkit for building cloud-native distributed services in Go. It functions as a microservices framework that provides built-in support for RPC, web APIs, and service discovery. The project includes a microservices code generator that produces production-ready server and client boilerplate from API descriptions. This automation is supported by a domain-specific language and pattern libraries designed to ensure compatibility with AI assistants. The framework incorporates a resilience suite for distributed system reliability, utilizing adaptive circuit breakers, rate limiting, and
Ships request validation middleware that verifies incoming payloads against schemas before they reach the business logic.
Sanic is an asynchronous Python web framework designed for building high-performance APIs and services. It operates as a production-ready ASGI web server, utilizing a non-blocking event loop to handle concurrent requests and maximize throughput. The framework is built to support scalable architectures, offering built-in worker process management to distribute traffic across available CPU cores. What distinguishes Sanic is its focus on modularity and developer-centric tooling. It features a blueprint-based system for organizing complex applications into pluggable components, alongside a robust
Wraps route handlers to inspect incoming requests and perform authorization checks before executing primary logic.
Elysia is a high-performance TypeScript web framework designed for building type-safe backend services. It provides a modular, plugin-based architecture that allows developers to compose server logic, middleware, and validation schemas into scalable application instances. By leveraging native web standards, the framework ensures portability across diverse JavaScript runtimes, including Node.js, Deno, and various edge computing environments. The framework distinguishes itself through its focus on end-to-end type safety, automatically synchronizing request and response definitions between the s
Validates incoming request bodies and parameters against schemas, rejecting invalid input automatically.
Awesome GraphQL is a curated directory and resource collection for the GraphQL ecosystem. It serves as a central index for developers to discover libraries, tools, and specifications required for building, testing, and managing data layer implementations across various programming languages. The repository provides access to a comprehensive range of utilities that support the entire GraphQL lifecycle. This includes resources for server-side API development, client-side integration, and schema management. It also highlights tools for security enforcement, such as rate limiting and input valida
Provides middleware components for validating incoming GraphQL requests and enforcing security policies.
This project is a full stack project generator and boilerplate for the MEAN stack, combining MongoDB, Express, Angular, and Node.js. It provides a pre-configured architecture and scaffolding tools to bootstrap JavaScript applications with a database, backend server, and frontend framework. The project includes a Dockerized application template to ensure consistent deployment and local development across different hardware configurations. It features a Node.js API scaffold that integrates token-based security, request validation, and interactive API documentation. The codebase covers broader
Integrates schema-checking middleware to ensure request data integrity before it reaches business logic.
Encore is a distributed systems framework designed to unify backend development, infrastructure provisioning, and observability. It functions as an infrastructure-as-code platform that allows developers to define cloud resources, databases, and messaging topics directly within their application code. By analyzing these declarations at compile-time, the system automatically manages the deployment of cloud resources and security policies, ensuring parity between local development and production environments. The platform distinguishes itself through its integrated development experience, which
Executes high-performance request decoding and schema validation in a middleware layer before processing.
gqlgen is a schema-first Go library designed to build type-safe GraphQL servers. It functions as a code generation engine that transforms declarative GraphQL schema definitions into strongly-typed Go source code, ensuring strict alignment between the API contract and the underlying implementation. The framework distinguishes itself through its deep integration with the Go type system and its highly extensible build pipeline. By using schema-first development, it automates the creation of server boilerplate and resolver stubs, allowing developers to map schema fields directly to Go structs and
Extracts user identity from incoming requests and attaches it to the request context for resolver access.
oapi-codegen is a suite of generators that converts OpenAPI 3 specifications into type-safe Go client libraries, server boilerplate, and data models. It provides tools for producing production-ready HTTP clients and server-side interfaces to ensure that Go implementations remain compliant with defined API contracts. The tool supports server generation across various web frameworks and allows for extensive customization via template overrides, specification overlays, and custom type definition mappings. It handles complex API requirements through external reference resolution to organize code
Provides middleware to verify that incoming HTTP requests match the API specification schemas.
oapi-codegen is an OpenAPI specification compiler and code generator for Go. It transforms OpenAPI definitions into type-safe Go client libraries, server boilerplate, and data models to facilitate contract-first API development. The tool distinguishes itself through a flexible customization system that allows users to override generated types and imports via specification extensions. It supports the use of custom text templates to redefine the final source code structure and provides a specification overlay mechanism to modify or remove endpoints without altering the original source file. Th
Provides automated middleware to verify that incoming HTTP requests strictly adhere to the OpenAPI specification.
This project is a production-ready template for building RESTful APIs using Node.js and the Express web framework. It provides a pre-configured structure for backend services, integrating a MongoDB Mongoose ODM framework for data modeling and a token-based security system for managing user identity. The boilerplate distinguishes itself through automated API documentation generated via Swagger by parsing code comments. It implements a layered controller architecture and a middleware-based request pipeline to separate routing logic from business logic and security processing. The system covers
Implements middleware to verify that incoming request payloads match predefined schemas before reaching controllers.
Provides middleware hooks for injecting shared data into the request context and page response.
TanStack Form is a cross-framework form state management library that provides typed fields, validation, and submission across React, Vue, Angular, Solid, Lit, Svelte, and Preact. It uses a shared form model that adapts to different UI frameworks while preserving the same validation and submission logic, and offers headless form controls that impose no UI markup, letting developers bring their own inputs and design system. The library distinguishes itself through granular state subscription, where components subscribe to narrow slices of form or field state using reactive primitives, so only
Runs middleware on requests and responses to inject shared context and data into the page lifecycle.
express-validator is a server-side input validation library designed specifically for Express.js applications. It provides middleware that validates and sanitizes incoming HTTP request data against developer-defined rules, collecting all validation failures into a single array for simultaneous error reporting rather than failing on the first error. The library offers a chainable validation API where rules are built by chaining methods on a validation chain object, enabling declarative specification of multiple validators and sanitizers for a single request field. Each validation chain operate
Integrates validation logic as Express.js middleware to check request data before route handlers execute.
This is a demonstration application built with React and Redux that implements a full-featured article publishing platform with user authentication and social interactions. The application serves as a reference implementation showing how to structure a real-world CRUD application using these technologies, covering the complete workflow from user registration through content creation and community engagement. The application implements a complete JWT-based authentication system that persists tokens in browser local storage and attaches them to API requests, alongside a structured approach to m
Manages page-specific data by dispatching load and unload actions on component mount and unmount.
Oak 是一个跨运行时的 HTTP 中间件框架和 Web 服务器,旨在跨 Deno、Node.js、Bun 和 Cloudflare Workers 运行。它提供了一个统一的系统,通过中间件函数的顺序链和分层路由引擎来构建 API 和 Web 服务器,该引擎通过嵌套树结构将 URL 路径映射到处理程序。 该框架包括一个与运行时无关的无服务器适配器,可将不同的云提供商事件转换为标准的请求和响应接口。它还具有专用的 WebSocket 服务器实现,用于双向实时通信,以及一个利用异步 Cookie 签名和持久存储的 Web 会话管理器。 该项目涵盖了广泛的服务器功能,包括静态文件服务、内容协商和多部分数据解析。其安全和观测能力包括用于验证 JSON Web Token、配置安全标头、记录 HTTP 流量以及模拟应用程序请求以进行测试的工具。
Verifies that incoming request bodies and URL parameters follow required formats via middleware before processing.
Uploadthing 是一个用于将文件上传集成到 Web 应用中的工具,提供了一个通过无服务器文件处理来接收和存储文件的系统。它管理从创建后端端点到通过内容分发网络(CDN)交付内容的端到端上传过程。 该项目利用预签名 URL 工作流,允许客户端直接将文件上传到云存储,从而减少服务器入口流量。它具有基于路由的验证系统,用于强制执行文件类型和大小限制,以及用于请求授权和安全上传后回调 Webhook 的中间件。 该平台涵盖了广泛的功能,包括用于重命名或删除文件的云存储管理,以及为大文件传输实现可恢复上传。它提供了一套 UI 组件(如上传按钮和拖放区),可以使用可组合的 Hook 进行样式化或替换为自定义界面。 该系统专为跨边缘运行时和无服务器环境部署而设计,配置通过环境变量处理。
Uses middleware to verify incoming request payloads and authenticate users before processing uploads.
Connexion 是一个规范优先(Spec-first)的 Python Web 框架,旨在直接从预定义的 API 契约中派生服务器行为和验证逻辑。它通过使用 OpenAPI 规范自动处理路由、请求验证和响应序列化,从而实现 Web 服务的开发。 该框架通过充当 OpenAPI 请求验证器和 Mock 服务器而脱颖而出。它可以通过基于规范模式提供示例响应来模拟 API 行为,从而允许在后端实现完成之前进行前端开发和原型设计。此外,它还托管一个交互式 API 文档界面,为用户提供可视化和测试端点的控制台。 该项目涵盖了广泛的功能,包括基于契约定义的自动路由注册、参数注入和安全性实施。它还提供了用于请求和响应模式验证的工具,以及将应用异常映射到标准化机器可读错误响应的能力。
Provides middleware that verifies incoming headers, parameters, and bodies against an OpenAPI schema before reaching the handler.
这是一个性能基准测试框架和网络协议压力测试器,旨在评估高并发条件下的系统稳定性。它作为一个命令行实用程序,模拟海量并发请求,以识别基础设施瓶颈并验证服务可靠性。 该工具通过其协议无关的编排脱颖而出,允许跨包括 HTTP、WebSocket、gRPC 和 Radius 在内的多种标准进行负载测试。它支持复杂的请求配置,使用户能够注入自定义头部、二进制数据和外部有效载荷,以复制多样的客户端行为。为了确保压力测试期间的数据完整性,该框架利用可插拔的验证中间件,实时针对服务器响应执行自定义逻辑。 除了基本的负载生成外,该工具还通过将性能指标聚合到实时流中以监控吞吐量、延迟和错误分布,提供了全面的可观测性。它生成详细的统计报告,并与外部智能服务集成,以提供系统性能的自动化分析和评分。该软件完全通过命令行参数进行配置和管理,促进了集成到自动化测试工作流中。
Executes custom validation logic against server responses during high-load scenarios to verify data integrity and service reliability.
tsoa 是一个 TypeScript API 框架和 OpenAPI REST API 生成器。它将 TypeScript 控制器和模型转换为 Node 服务器的 OpenAPI 规范和路由配置,确保代码定义与 API 文档保持同步。 该工具作为 OpenAPI 规范生成器和 REST 请求验证器运行。它从源代码中提取路径、请求模式和响应模型以生成标准的 OpenAPI 文档,并提供中间件层来验证传入的 HTTP 负载是否符合 TypeScript 定义的模式。 该项目涵盖了 RESTful 路由管理和 API 请求验证。它利用静态类型分析将语言类型转换为 JSON 模式定义,并采用基于模板的生成方式将控制器元数据映射为服务器路由。
Provides middleware that intercepts incoming HTTP requests to verify payload integrity against generated schemas.