13 repository-uri
Objects that wrap other objects to intercept and redefine fundamental runtime operations.
Distinct from Method Interception Proxies: Candidates focus on AOP method interception or API proxies rather than the JS Proxy primitive.
Explore 13 awesome GitHub repositories matching programming languages & runtimes · Proxy Objects. Refine with filters or upvote what's useful.
This project is a comprehensive reference guide and technical documentation for the features, syntax updates, and APIs introduced in ECMAScript 6. It serves as a language specification and overview for modern JavaScript development. The guide covers a wide range of language enhancements, including the implementation of classes and prototype-based inheritance, the use of arrow functions for lexical scope binding, and the introduction of block-scoped variables. It details the module system for organizing independent code components via import and export statements. The documentation extends to
Documents the use of proxies to trap and customize runtime-level meta-operations.
Mockito is a Java mocking framework and JUnit testing library used to create simulated objects and stub method calls to isolate components during unit tests. It functions as a dynamic proxy generator and bytecode instrumentation tool, allowing for the creation of runtime substitutes that mimic the behavior of real classes. The framework distinguishes itself by providing the ability to mock final classes and methods, bypassing standard language restrictions through bytecode modification. This capability enables the testing of legacy code that lacks interfaces. The toolset covers behavioral mo
Generates runtime proxy objects that intercept and redefine method operations to mimic real classes.
q is a JavaScript promise library and asynchronous flow controller designed to manage non-blocking operations. It serves as a system for coordinating parallel tasks and sequencing asynchronous workflows through task chaining and error propagation. The library distinguishes itself with specialized debugging tools that capture long stack traces across asynchronous jumps and monitor unhandled rejections to prevent silent failures. It also functions as a remote object proxy, forwarding method calls to remote targets and routing responses back through promises. The project provides comprehensive
Allows asynchronous manipulation of proxied object properties and methods using promise-based getters and setters.
Comlink is a remote procedure call library that transforms message-based communication into asynchronous function calls between the main thread and web workers. It provides a proxy-based interface that allows multiple threads to interact with a single object instance without manual message handling. The project enables the execution of functions across separate browser windows, iframes, and web workers, making external calls behave like local asynchronous operations. It supports the transfer of non-cloneable data through custom serialization handlers and allows for the movement of ownership f
Manages memory by explicitly detaching proxies from remote objects to trigger garbage collection.
Android Tech Frontier is a project that periodically translates high-quality English Android development articles into Chinese for the developer community. Its core identity is as a translation pipeline that covers topics including Android internals, open-source libraries, software architecture, and testing methodologies. The project distinguishes itself by providing Chinese translations of technical content that spans Android view hierarchy analysis, HTTP request execution patterns, proxy creation techniques, and image loading configuration. It also covers UI layout solutions such as nesting
Wraps a real object inside a proxy that adds extra behavior before or after method calls.
Goja is a JavaScript engine and ECMAScript compliant interpreter implemented entirely in Go. It serves as an embedded scripting engine that allows Go applications to execute JavaScript code and integrate a programmable scripting layer without relying on Cgo or external native dependencies. The project functions as a bridge between Go and JavaScript, enabling bidirectional data exchange and function invocation. It allows Go hosts to expose native structs, slices, and maps as JavaScript objects and arrays, while providing mechanisms to export script values and functions back into native Go type
Implements proxy objects that wrap target objects to intercept and redefine operations like property access.
Draper este un framework pentru stratul de prezentare și o bibliotecă de decoratori pentru Ruby on Rails care implementează pattern-ul view-model. Acesta servește ca un sistem bazat pe proxy pentru a separa logica de prezentare de modelele de business, permițând izolarea transformărilor de date specifice view-ului de datele subiacente. Framework-ul oferă capabilități specializate pentru gestionarea modului în care sunt afișate datele, inclusiv posibilitatea de a împacheta obiecte individuale sau colecții întregi. Suportă decorarea recursivă pentru modelele asociate și injectarea contextului de view și a stării cererii în decoratori pentru a permite prezentarea condiționată. Funcționalitățile suplimentare includ delegarea metodelor și a căutătorilor (finders) la nivel de clasă către modelul împachetat, integrarea cu view helpers pentru formatarea datelor și utilizarea identificatorilor globali pentru a menține starea decorării în timpul serializării joburilor de fundal. Este inclus un instrument de linie de comandă pentru generarea fișierelor de tip decorator.
Uses a proxy-based system to intercept and extend the behavior of model objects for presentation.
ProxyManager este o bibliotecă de tip wrapper proxy JavaScript și un utilitar orientat pe obiecte pentru interceptarea și modificarea comportamentului obiectelor. Acesta funcționează ca un interceptor de comportament al obiectelor care înfășoară obiectele țintă pentru a monitoriza, restricționa sau modifica apelurile de metode și accesul la proprietăți în timpul execuției. Biblioteca oferă mecanisme pentru inițializarea leneșă (lazy initialization) și încărcarea leneșă (lazy loading), amânând crearea obiectelor care consumă multe resurse până când o proprietate sau o metodă este accesată pentru prima dată, pentru a reduce consumul de memorie. Utilizează o structură orientată pe obiecte pentru a gestiona aceste wrappere proxy și obiectele țintă asociate. Instrumentul acoperă capabilități pentru controlul accesului dinamic și optimizarea gestionării resurselor. Permite încapsularea obiectelor brute pentru a implementa logică de execuție personalizată și control centralizat al accesului.
Wraps target objects in proxies to intercept and redefine fundamental runtime operations.
Radash este o bibliotecă de utilitare funcționale TypeScript concepută pentru transformarea datelor, validare și gestionarea fluxurilor de lucru. Oferă o colecție de funcții helper tipizate pentru a manipula array-uri, obiecte și șiruri de caractere. Proiectul dispune de un toolkit de flux de lucru asincron pentru gestionarea promisiunilor, reîncercărilor și limitelor de concurență, alături de o suită de validatoare booleene pentru verificarea tipurilor primitive, obiectelor și promisiunilor. De asemenea, implementează modele de programare funcțională, cum ar fi compunerea funcțiilor, aplicarea parțială și modele de răspuns de tip error-first. Biblioteca acoperă o arie largă de capabilități, inclusiv gestionarea stării obiectelor cu deep cloning și merging, manipulări complexe de array-uri și formatarea șirurilor. În plus, oferă instrumente pentru optimizarea execuției, cum ar fi limitarea ratei (rate limiting) și caching-ul rezultatelor.
Simplifies the creation of proxy objects to intercept and redefine property access and function calls.
Workerize este un încărcător de module web worker și un instrument de offloading pentru thread-ul principal. Funcționează ca un wrapper proxy asincron care permite modulelor JavaScript să ruleze în background workers, prevenind înghețarea UI-ului browserului prin delegarea sarcinilor computaționale costisitoare către thread-uri separate. Proiectul utilizează o interfață bazată pe proxy pentru a apela funcții în interiorul unui background worker ca și cum ar fi apeluri asincrone locale. Acest mecanism permite execuția modulelor în worker-i paraleli pentru a menține responsivitatea thread-ului principal. Sistemul acoperă execuția asincronă a modulelor și integrarea web worker, concentrându-se pe optimizarea thread-ului principal prin mutarea logicii grele în afara thread-ului de execuție primar.
Provides a proxy-based interface that allows worker functions to be called as if they were local asynchronous calls.
This project is an ECMAScript 2015 reference guide and JavaScript language cheat sheet. It provides a concise summary of the language specifications, syntax updates, and new features introduced in the 2015 standard. The guide serves as a technical overview of modern language patterns used to manage modular code structures and asynchronous operations. It functions as a reference for implementing current coding standards and studying core updates to the language. The content covers a wide range of capabilities, including asynchronous programming, object modeling, and module management. It deta
Provides a reference for using Proxy objects to intercept and redefine object operations.
This project is an instructional repository and learning resource providing a comprehensive collection of study notes, programming guides, and runnable source code examples. It serves as a guide for Java SE and Java web development, featuring a library of code samples that demonstrate common algorithms and technical implementations. The repository focuses on language core and runtime analysis, with detailed tutorials on multithreading and concurrency. It provides practical implementations of software architecture and design patterns, such as the singleton and strategy patterns, as well as exp
Provides proxy objects that wrap target objects to intercept and redefine runtime operations for preprocessing or filtering.
vm2 is a Node.js JavaScript sandbox and runtime virtualizer designed to execute untrusted code. It functions as a secure code evaluator and module isolator that protects the host process by creating an isolated execution environment with restricted access to the Node.js runtime. The system distinguishes itself through a security framework that utilizes object proxying and deep freezing to prevent sandboxed scripts from modifying the host global context or shared objects. It implements strict module access control using allow-lists and path restrictions to govern which built-in or external dep
Wraps host objects in proxies to intercept property access and prevent unauthorized mutations or leaks.