5 repos
Middleware — Web Development
We curate 5 GitHub repositories matching web development · Middleware. Refine with filters or upvote what's useful.
Middleware — Web Development
- fastapi/fastapi
fastapi/fastapi
95,356FastAPI is a web framework for building APIs with Python. It leverages standard language type hints to provide automatic data validation, request parsing, and interactive API documentation generation. The framework supports asynchronous request handling and manages execution contexts to prevent blocking the main event loop. The project includes a dependency injection system that allows for the resolution and injection of reusable components into request handlers. This system supports request-scoped caching, lifecycle management, and integration with security mechanisms like OAuth2 and JSON Web Tokens. Developers can organize applications into modular routers and mount sub-applications to manage complex routing logic. Infrastructure features include middleware support for cross-origin resource sharing, background task management, and static file serving. The framework automatically generates OpenAPI specifications for defined endpoints, which can be customized through metadata and schema extensions. Testing utilities are provided to simulate HTTP and WebSocket connections, allowing for isolated verification of application behavior.
Pythonapiasyncasyncio - gin-gonic/gin
gin-gonic/gin
88,134Gin is a web framework designed for building high-performance web services and APIs. It functions as a middleware-oriented engine that processes incoming HTTP requests through a sequential chain of handlers, allowing for the modular management of cross-cutting concerns such as authentication and logging. The framework utilizes a radix tree data structure to perform request routing, ensuring high-speed path matching with minimal memory overhead. It distinguishes itself by employing a zero-reflection dispatch mechanism that invokes handler functions through static type assertions, avoiding the performance costs typically associated with runtime type inspection. Furthermore, it provides a type-safe data binding layer that maps incoming request payloads directly into structured objects using declarative metadata tags, which simultaneously enforces validation rules to maintain data integrity. Developers can organize complex API surfaces by grouping related endpoints into logical segments that share common path prefixes and middleware configurations. The framework manages the request lifecycle by passing a single mutable context object through the handler chain, which helps minimize memory allocations during request processing.
Goframeworkgingo - django/django
django/django
86,891Django is a full-stack web framework designed for rapid backend development. It provides an integrated environment for building data-driven applications by combining an object-relational mapping layer for database management with a modular request-response pipeline for handling HTTP traffic. The framework emphasizes security and maintainability, offering a suite of tools to protect against common web vulnerabilities while decoupling site structure from implementation through a centralized URL routing system. A defining characteristic of the framework is its ability to generate production-ready administrative dashboards automatically. By inspecting model definitions and field metadata, it creates secure interfaces for managing application data without requiring custom frontend development. This is complemented by a declarative template engine that separates presentation logic from backend code, and a robust form validation system that handles data sanitization and type conversion through class-based schemas. The framework includes a wide range of built-in capabilities to support complex web development, including internationalization and localization tools, performance optimization utilities like caching, and a signal-based observer pattern for decoupling application components. It also provides comprehensive support for testing, static file management, and specialized database features. Extensive documentation is available to guide users through the framework's various components, including its middleware hooks, security policies, and administrative tools.
Pythonappsdjangoframework - laravel/laravel
laravel/laravel
83,758Laravel is a comprehensive full-stack web framework designed for building scalable server-side applications. It provides an integrated development environment that centers on an object-relational mapper for database abstraction, a robust routing system, and a sophisticated service container for dependency injection. The framework is built to handle complex application requirements through a modular architecture that emphasizes convention over configuration. What distinguishes Laravel is its deep integration of background processing and event-driven communication. It features a task queue orchestrator that manages asynchronous job execution, retries, and worker lifecycles, allowing developers to offload resource-intensive operations from the main request cycle. This is complemented by an event-driven observer pattern that decouples application logic, enabling components to trigger and listen for asynchronous events across the system. The framework also provides a complete suite of tools for maintaining data integrity and application reliability. This includes a fluent schema migration system for version-controlled database evolution, a layered middleware pipeline for intercepting HTTP requests, and extensive testing utilities that support everything from database state assertions to simulated HTTP request cycles. These features are supported by a command-line interface that facilitates scaffolding, database management, and test suite execution.
Bladeframeworklaravelphp - nestjs/nest
nestjs/nest
74,685Nest is a server-side framework for building scalable and maintainable enterprise-grade applications using TypeScript. It provides a modular architecture that organizes code into encapsulated, reusable modules, utilizing a dependency injection container to manage object lifecycles and resolve component dependencies through declarative metadata. The framework distinguishes itself through a platform-agnostic abstraction layer that decouples core logic from underlying HTTP servers, allowing for flexible implementation choices. It employs a middleware-based request pipeline that processes traffic through interceptors, guards, and pipes, and uses reflective metadata programming to automate routing and dependency resolution. Developers can manage complex application lifecycles and project scaffolding through an integrated command-line interface. Beyond core request handling, the framework supports the development of RESTful and GraphQL services, as well as distributed systems through microservices communication patterns. It facilitates modular scaling by allowing for the programmatic generation of module configurations at runtime, enabling the integration of third-party libraries and services within a unified TypeScript environment.
TypeScriptframeworkhacktoberfestjavascript