24 repositorios
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 es un framework de middleware HTTP y servidor web multiplataforma diseñado para operar en Deno, Node.js, Bun y Cloudflare Workers. Proporciona un sistema unificado para construir APIs y servidores web utilizando una cadena secuencial de funciones de middleware y un motor de enrutamiento jerárquico que mapea rutas de URL a manejadores mediante una estructura de árbol anidado. El framework incluye un adaptador serverless agnóstico al runtime que traduce diversos eventos de proveedores de nube en una interfaz estándar de solicitud y respuesta. También cuenta con una implementación dedicada de servidor WebSocket para comunicación bidireccional en tiempo real y un gestor de sesiones web que utiliza firma de cookies asíncrona y almacenamiento persistente. El proyecto cubre una amplia gama de capacidades de servidor, incluyendo servicio de archivos estáticos, negociación de contenido y análisis de datos multipart. Su superficie de seguridad y observabilidad incluye herramientas para validar JSON Web Tokens, configurar cabeceras de seguridad, registrar tráfico HTTP y simular solicitudes de aplicaciones con fines de prueba.
Verifies that incoming request bodies and URL parameters follow required formats via middleware before processing.
Uploadthing es una herramienta para integrar la carga de archivos en aplicaciones web, proporcionando un sistema para aceptar y almacenar archivos mediante el manejo de archivos serverless. Gestiona el proceso de carga de principio a fin, desde la creación de endpoints de backend hasta la entrega de contenido a través de una red de entrega de contenido (CDN). El proyecto utiliza un flujo de trabajo de URL prefirmada para permitir que los clientes carguen archivos directamente al almacenamiento en la nube, reduciendo la entrada al servidor. Cuenta con un sistema de validación basado en rutas para imponer restricciones en los tipos y tamaños de archivos, junto con middleware para la autorización de solicitudes y webhooks de callback seguros tras la carga. La plataforma cubre una amplia gama de capacidades, incluyendo la gestión de almacenamiento en la nube para renombrar o eliminar archivos y la implementación de cargas reanudables para transferencias grandes. Proporciona un conjunto de componentes de UI, como botones de carga y zonas de arrastre, que pueden ser estilizados o reemplazados con interfaces personalizadas utilizando hooks componibles. El sistema está diseñado para el despliegue en entornos edge y serverless, con la configuración gestionada mediante variables de entorno.
Uses middleware to verify incoming request payloads and authenticate users before processing uploads.
Connexion es un framework web de Python centrado en especificaciones diseñado para derivar el comportamiento del servidor y la lógica de validación directamente de un contrato de API predefinido. Permite el desarrollo de servicios web utilizando una especificación OpenAPI para manejar automáticamente el enrutamiento, la validación de solicitudes y la serialización de respuestas. El framework se distingue al actuar como un validador de solicitudes OpenAPI y servidor mock. Puede simular el comportamiento de la API sirviendo respuestas de ejemplo basadas en esquemas de especificación, permitiendo el desarrollo frontend y la creación de prototipos antes de que se complete una implementación backend. Además, aloja una interfaz de documentación de API interactiva, proporcionando una consola para que los usuarios visualicen y prueben endpoints. El proyecto cubre una amplia gama de capacidades, incluyendo registro automático de rutas, inyección de parámetros y aplicación de seguridad basada en definiciones de contrato. También proporciona herramientas para la validación de esquemas tanto de solicitudes como de respuestas, así como la capacidad de mapear excepciones de la aplicación a respuestas de error estandarizadas legibles por máquina.
Provides middleware that verifies incoming headers, parameters, and bodies against an OpenAPI schema before reaching the handler.
Este proyecto es un framework de benchmarking de rendimiento y probador de estrés de protocolos de red diseñado para evaluar la estabilidad del sistema bajo condiciones de alta concurrencia. Funciona como una utilidad de línea de comandos que simula volúmenes masivos de solicitudes simultáneas para identificar cuellos de botella en la infraestructura y verificar la confiabilidad del servicio. La herramienta se distingue por su orquestación agnóstica al protocolo, lo que permite pruebas de carga a través de diversos estándares incluyendo HTTP, WebSocket, gRPC y Radius. Soporta configuraciones de solicitud complejas, permitiendo a los usuarios inyectar encabezados personalizados, datos binarios y payloads externos para replicar comportamientos de cliente variados. Para garantizar la integridad de los datos durante las pruebas de estrés, el framework utiliza middleware de validación conectable que ejecuta lógica personalizada contra las respuestas del servidor en tiempo real. Más allá de la generación de carga básica, la herramienta proporciona una observabilidad integral agregando métricas de rendimiento en flujos en vivo para monitorear el throughput, la latencia y las distribuciones de error. Genera informes estadísticos detallados y se integra con servicios de inteligencia externos para proporcionar análisis y puntuación automatizados del rendimiento del sistema. El software se configura y gestiona completamente a través de parámetros de línea de comandos, facilitando la integración en flujos de trabajo de pruebas automatizados.
Executes custom validation logic against server responses during high-load scenarios to verify data integrity and service reliability.
tsoa es un framework de API en TypeScript y generador de API REST OpenAPI. Convierte controladores y modelos de TypeScript en especificaciones OpenAPI y configuraciones de enrutamiento para servidores Node, asegurando que las definiciones de código y la documentación de la API permanezcan sincronizadas. La herramienta funciona como un generador de especificaciones OpenAPI y un validador de peticiones REST. Extrae rutas, esquemas de petición y modelos de respuesta del código fuente para producir documentos OpenAPI estándar y proporciona una capa de middleware para verificar que los payloads HTTP entrantes coincidan con los esquemas definidos en TypeScript. El proyecto cubre la gestión de rutas RESTful y la validación de peticiones de API. Utiliza análisis de tipos estáticos para convertir tipos de lenguaje en definiciones de esquema JSON y emplea generación basada en plantillas para mapear metadatos de controladores en rutas de servidor.
Provides middleware that intercepts incoming HTTP requests to verify payload integrity against generated schemas.