awesome-repositories.com
المدونة
MCP
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعخادم MCPحولكيفية ترتيب النتائجالصحافة
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

31 مستودعات

Awesome GitHub RepositoriesAPI Request Mocking

Tools that intercept network requests to simulate server responses or verify application behavior during testing.

Explore 31 awesome GitHub repositories matching testing & quality assurance · API Request Mocking. Refine with filters or upvote what's useful.

Awesome API Request Mocking GitHub Repositories

اعثر على أفضل المستودعات باستخدام الذكاء الاصطناعي.سنبحث عن أفضل المستودعات المطابقة باستخدام الذكاء الاصطناعي.
  • microsoft/playwrightالصورة الرمزية لـ microsoft

    microsoft/playwright

    91,074عرض على GitHub↗

    Playwright is a comprehensive browser automation framework designed for end-to-end testing and web workflow automation. It provides a unified API to drive web applications across multiple browser engines, enabling developers to simulate complex user interactions, perform web scraping, and validate application behavior in consistent, isolated environments. The framework distinguishes itself through a web-first testing paradigm that prioritizes stability and resilience. By utilizing an auto-waiting actionability engine and accessibility-tree-based locators, it eliminates common sources of test

    Intercepts network requests to return custom responses, allowing for isolated testing without external network dependencies.

    TypeScriptautomationchromechromium
    عرض على GitHub↗91,074
  • laravel/laravelالصورة الرمزية لـ laravel

    laravel/laravel

    84,489عرض على GitHub↗

    Laravel 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 orch

    Simulates internal application requests to verify behavior and inspect responses without triggering actual network calls.

    Bladeframeworklaravelphp
    عرض على GitHub↗84,489
  • square/okhttpالصورة الرمزية لـ square

    square/okhttp

    46,971عرض على GitHub↗

    OkHttp is an HTTP client for the JVM and Android that enables network communication via synchronous and asynchronous requests. It provides a core identity as a comprehensive networking toolkit featuring a WebSocket client for bidirectional data synchronization, a TLS security toolkit for encrypted communication, and a programmable HTTP mock server for simulating backend responses. The project distinguishes itself through a specialized security and performance architecture. It implements mutual TLS, certificate pinning, and DNS over HTTPS to secure data in transit, while utilizing connection p

    Directs incoming mock requests to specific responses based on custom logic like the request path.

    Kotlinandroidgraalvmjava
    عرض على GitHub↗46,971
  • afnetworking/afnetworkingالصورة الرمزية لـ AFNetworking

    AFNetworking/AFNetworking

    33,433عرض على GitHub↗

    AFNetworking is an Objective-C networking library for Apple platforms, including iOS, macOS, watchOS, and tvOS. It functions as an HTTP client that manages remote server communication by wrapping the system loading framework to handle requests and responses. The library provides specialized security and identity tools, featuring SSL certificate pinning for server trust validation and the implementation of standardized OAuth authentication flows. It further distinguishes itself with network reachability monitoring to track interface availability and request mocking capabilities to simulate ser

    Intercepts outgoing network traffic to simulate server responses for comprehensive application testing.

    Objective-C
    عرض على GitHub↗33,433
  • didi/doraemonkitالصورة الرمزية لـ didi

    didi/DoraemonKit

    20,420عرض على GitHub↗

    DoraemonKit is a mobile frontend development toolset designed to optimize the lifecycle of web and hybrid mobile applications. It functions as a comprehensive suite of productivity tools, providing specialized utilities for mobile UI inspection, web view debugging, and on-device performance monitoring. The toolset distinguishes itself through several targeted simulation and interception capabilities. It includes a network traffic interceptor for mocking API responses without modifying source code, a device state simulator for overriding GPS coordinates, and a mobile web debugging bridge that

    Intercepts network requests to simulate API responses without modifying application source code.

    Java
    عرض على GitHub↗20,420
  • elysiajs/elysiaالصورة الرمزية لـ elysiajs

    elysiajs/elysia

    18,531عرض على GitHub↗

    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

    Allows programmatic server request simulation to verify route behavior without network connections.

    TypeScriptbunframeworkhttp
    عرض على GitHub↗18,531
  • mswjs/mswالصورة الرمزية لـ mswjs

    mswjs/msw

    17,977عرض على GitHub↗

    MSW is a JavaScript API mocking library and integration testing tool designed to intercept network requests at the network level. It allows for the definition of mock data and status codes using routing syntax to simulate server responses without requiring changes to the application source code. The project utilizes a service worker to proxy API calls in the browser, providing a mechanism for isolated frontend development and testing. It employs platform-specific network adapters to maintain a consistent mocking interface across both browser and Node.js environments. The library covers a ran

    Provides a mechanism to restrict request interception to specific closures to prevent global mock leakage.

    TypeScriptapiapi-mockingdevtools
    عرض على GitHub↗17,977
  • sindresorhus/kyالصورة الرمزية لـ sindresorhus

    sindresorhus/ky

    16,943عرض على GitHub↗

    🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API

    Replaces the fetch function with a custom implementation to return predefined responses without network calls.

    TypeScriptfetchhttp-clienthttp-request
    عرض على GitHub↗16,943
  • jasmine/jasmineالصورة الرمزية لـ jasmine

    jasmine/jasmine

    15,824عرض على GitHub↗

    Jasmine is a JavaScript testing framework and test runner designed for behavior-driven development. It provides a comprehensive toolset for writing and executing descriptive test suites that verify code behavior in both web browsers and Node.js environments. The framework is distinguished by its integrated mocking library, which allows for dependency isolation through spies and stubs, as well as the ability to simulate time and timing functions to test asynchronous logic synchronously. It also includes a mechanism to enforce test uniqueness, preventing duplicate names for tests and suites. I

    Supports intercepting and stubbing HTTP client calls to isolate tests from external networks.

    JavaScript
    عرض على GitHub↗15,824
  • moya/moyaالصورة الرمزية لـ Moya

    Moya/Moya

    15,364عرض على GitHub↗

    Moya is a network abstraction layer for Swift that provides a structured framework for defining and executing REST API requests. It functions as a type-safe API client that decouples network endpoint definitions from the underlying implementation details to prevent configuration errors and URL typos. The project distinguishes itself by using protocol-based endpoint definitions and a provider-coordinated execution model. It includes a system for mapping network responses to strongly typed objects and features a dedicated tool for generating type-safe network interface files from external REST

    Simulates server responses for testing by intercepting requests and returning pre-defined mock data.

    Swift
    عرض على GitHub↗15,364
  • encode/httpxالصورة الرمزية لـ encode

    encode/httpx

    15,090عرض على GitHub↗

    This project is a comprehensive Python network request framework designed for both synchronous and asynchronous HTTP communication. It provides a high-performance client capable of executing non-blocking requests within event-driven applications, while also supporting standard blocking calls for simpler scripts. The library is built to operate natively across diverse asynchronous runtimes, automatically detecting and utilizing the underlying event loop for concurrency. What distinguishes this library is its modular architecture, which decouples request construction from network execution thro

    Intercepts outgoing network requests to return pre-defined responses for testing without performing actual network operations.

    Pythonasynciohttppython
    عرض على GitHub↗15,090
  • wanghongenpin/proxypinالصورة الرمزية لـ wanghongenpin

    wanghongenpin/proxypin

    13,357عرض على GitHub↗

    Proxypin is a cross-platform HTTP and HTTPS proxy debugger designed to capture, inspect, and modify network traffic. It functions as a man-in-the-middle interceptor, allowing developers to analyze application data flows and validate network communication during development and testing. The tool distinguishes itself through its focus on mobile and remote device integration, utilizing QR-code-based configuration synchronization to simplify the setup of proxy settings and security certificates. It includes an event-driven scripting engine that enables programmatic manipulation of requests and re

    Modifies request headers and response bodies in real-time to test application behavior and simulate server conditions.

    Dartcapture-trafficcharlesfiddler
    عرض على GitHub↗13,357
  • pgte/nockالصورة الرمزية لـ pgte

    pgte/nock

    13,108عرض على GitHub↗

    Nock is a Node.js HTTP mocking library used to intercept outgoing network requests and return predefined responses. It functions as a network request interceptor and HTTP mock server, allowing developers to simulate external API behavior for automated testing without making live network calls. The project includes an API fixture recorder to capture real network interactions and save them as reusable data files for playback. It also features a network latency simulator that introduces artificial delays to outgoing HTTP responses to verify timeout handling and race conditions. The library prov

    Provides tools to intercept network requests and simulate server responses to mimic external API behavior.

    JavaScript
    عرض على GitHub↗13,108
  • nock/nockالصورة الرمزية لـ nock

    nock/nock

    13,103عرض على GitHub↗

    nock is a Node.js HTTP mocking library and request interceptor. It captures outgoing network traffic to specific hosts and paths, returning predefined responses to decouple applications from external servers during automated testing. The project functions as an API expectation framework to verify that specific calls were made with correct parameters. It includes a traffic recorder that captures real network interactions as fixtures for playback and a network simulation tool to introduce artificial latency or trigger network errors. Its capabilities cover request matching via hostnames, paths

    Intercepts network requests to simulate server responses and decouple code from external dependencies.

    JavaScripthttpjavascriptmock
    عرض على GitHub↗13,103
  • zyronon/douyinالصورة الرمزية لـ zyronon

    zyronon/douyin

    11,473عرض على GitHub↗

    This project is a mobile-first web interface built with Vue 3 that replicates the layout and interaction patterns of a short-form video platform. It is designed as a responsive web application focused on high-performance mobile rendering and short-video workflows. The application features a vertical video carousel with infinite scrolling and a vertical-slide view orchestration system for seamless content playback. It employs a responsive layout using viewport-relative units to ensure consistent rendering across various mobile screen sizes and aspect ratios. The project incorporates Pinia for

    Intercepts network requests to return local JSON data for backend simulation during development.

    Vue
    عرض على GitHub↗11,473
  • vuecomponent/ant-design-vue-proالصورة الرمزية لـ vueComponent

    vueComponent/ant-design-vue-pro

    10,937عرض على GitHub↗

    This project is an enterprise-grade admin dashboard boilerplate and starter kit built on Ant Design Vue. It provides a complete administrative interface with pre-designed pages, navigation patterns, and a professional design system to accelerate the development of business applications. The toolkit features a centralized visual theme configuration system for modifying style variables to meet specific brand requirements. It also includes a multi-language interface system for internationalization and a dedicated development kit for mocking API data using local JSON files. The scaffolding cover

    Provides an interception layer to return local JSON files instead of real API responses during development.

    Vueadminant-designantd
    عرض على GitHub↗10,937
  • sinonjs/sinonالصورة الرمزية لـ sinonjs

    sinonjs/sinon

    9,753عرض على GitHub↗

    Sinon is a JavaScript test double library and mocking framework used to isolate code and verify behavior during unit testing. It provides a collection of spies, stubs, and mocks that replace real function implementations and object methods with controlled substitutes. The project includes a specialized fake timer library for overriding the system clock, allowing the simulation of time progression to trigger timeouts and intervals without waiting for real-time delays. It also features a test sandbox mechanism to group multiple fakes together, ensuring the original state is restored between tes

    Mocks server responses and inspects outgoing requests by simulating a network environment.

    JavaScript
    عرض على GitHub↗9,753
  • eternnoir/pytelegrambotapiالصورة الرمزية لـ eternnoir

    eternnoir/pyTelegramBotAPI

    8,684عرض على GitHub↗

    pyTelegramBotAPI is a Python framework and API wrapper designed for building bots that interact with the Telegram Bot API. It provides a toolkit for managing bot lifecycles through both synchronous and asynchronous request patterns. The framework is distinguished by a routing system that uses custom filters and middleware pipelines to direct incoming updates to specific handlers. It includes a finite state machine manager to track user progress through multi-step conversations and a retry-based system to handle server-side rate limiting. The library covers a broad range of capabilities, incl

    Allows replacing the HTTP client with a mock to simulate API responses during testing.

    Pythonbot-apipython-apitelegram
    عرض على GitHub↗8,684
  • alexreisner/geocoderالصورة الرمزية لـ alexreisner

    alexreisner/geocoder

    6,446عرض على GitHub↗

    This is a Ruby toolkit for converting addresses to geographic coordinates and performing reverse geocoding via multiple external API providers. It provides a library for integrating location services into Ruby applications, including an IP geolocation tool to translate IP addresses into coordinates, city names, and country data. The project includes a command line interface for bulk geocoding of database records with integrated rate limiting and a geospatial query engine for calculating distances and performing radius or bounding box searches. It also features a mocking framework that provide

    Intercepts network calls during testing to return predefined responses and eliminate external API dependencies.

    Ruby
    عرض على GitHub↗6,446
  • openai-php/clientالصورة الرمزية لـ openai-php

    openai-php/client

    5,805عرض على GitHub↗

    هذا المشروع عبارة عن عميل PHP API و SDK لدمج خدمات OpenAI في تطبيقات PHP. يعمل كمكتبة تكامل وغلاف للتفاعل مع النماذج اللغوية الكبيرة لإنشاء نصوص، وصور، وصوت عبر استدعاءات REST API. توفر المكتبة تنسيقاً متخصصاً لمساعدي الذكاء الاصطناعي، وإدارة سلاسل المحادثات ومخازن المتجهات. كما تتضمن أدوات لضبط النموذج المخصص، وتنفيذ البحث الدلالي من خلال تضمينات النصوص، ومعالجة الصوت للنسخ والتركيب. يغطي سطح الإمكانات اعتدال المحتوى، وإدارة الملفات، والتعامل مع الدردشة وإكمال النصوص. ويدعم تسليم البيانات في الوقت الفعلي عبر بث أحداث مرسلة من الخادم، والمعالجة المجمعة غير المتزامنة، والتحقق من توقيعات webhook.

    Simulates server behavior with a fake client to test application logic without sending network requests.

    PHP
    عرض على GitHub↗5,805
السابق12التالي
  1. Home
  2. Testing & Quality Assurance
  3. General Testing Utilities
  4. Test Utilities & Assertions
  5. Network and API Mocking
  6. API Request Mocking

استكشف الوسوم الفرعية

  • Contract Mocks1 وسم فرعيMocks API contracts by intercepting network requests with type-safe service workers to simulate backend behavior. **Distinct from API Request Mocking:** Distinct from API Request Mocking: mocks entire API contracts with type safety, not just individual network requests.
  • Fetch Function Mocking1 وسم فرعيReplacing the fetch function with a custom implementation to return predefined responses without making network calls. **Distinct from API Request Mocking:** Distinct from API Request Mocking: focuses on mocking the fetch function itself, not general network interception.
  • Interception ScopingMechanisms to restrict network interception to specific execution contexts or closures. **Distinct from API Request Mocking:** Focuses on the scoping and isolation of mocks rather than the general act of mocking requests
  • Mock Rule EnforcementEnsures all network requests are covered by a mock rule, failing the test if an unmocked request is made. **Distinct from API Request Mocking:** Distinct from general API mocking by specifically enforcing that no unmocked network calls occur.