ProxyManager is a PHP library for generating proxy classes at runtime. It provides implementations for several proxy patterns: lazy loading (ghost and value holder), access interceptors (with value holder or scope localizer), null objects, and remote objects. The library uses Laminas Code for code generation and reflection to dynamically create proxy classes that wrap or substitute real objects. It is designed as a standalone Composer package with a configuration-driven architecture: a central Configuration object manages autoloading, generator strategies (evaluating or file-writing), class name inflectors, and signature verification. Factories (e.g., LazyLoadingValueHolderFactory, NullObjectFactory) serve as the primary entry points for users, each producing proxies for a given class or interface. The generated proxies include methods for initialization control, interceptor callbacks, and property access simulation. The library is extensively tested with unit tests, functional tests, and mutation testing, and includes benchmarks for performance. External dependencies are limited to Laminas Code and Composer's installed versions API.
Rustler is a Rust library that provides safe and idiomatic bindings for writing Erlang Native Implemented Functions (NIFs). It replaces error-prone C NIFs with Rust code that cannot crash the BEAM virtual machine. The core library offers safe wrappers for the Erlang NIF API, including term construction and decoding (Encoder/Decoder traits), resource management for Rust-owned data, thread spawning with safe message passing, and an experimental serde integration for generic serialization. A companion proc-macro crate (rustler_codegen) automatically generates Encoder/Decoder implementations for user-defined types (structs, maps, tuples, records, enums) and handles NIF registration via the #[nif] attribute and init! macro. The project also includes an Elixir Mix compiler plugin (rustler_mix) that automates compilation of Rust NIFs within Elixir projects. Rustler supports multiple Erlang/OTP versions (NIF 2.14 through 2.18) via version-conditional FFI headers and dynamic symbol loading. It is widely adopted in the Elixir ecosystem for performance-critical code paths.
This is the Microsoft Open XML SDK, a production-grade .NET library for reading, writing, creating, and validating Office Open XML documents (Word, Excel, PowerPoint). It provides a strongly-typed DOM (OpenXmlElement hierarchy), LINQ-to-XML integration via generated XName constants, Flat OPC serialization, and a comprehensive validation framework based on the OOXML standard. The architecture combines hand-crafted foundations (OpenXmlElement, OpenXmlPart, OpenXmlPackage, FeatureCollection pattern) with schema-driven source generators that produce hundreds of typed classes, part definitions, and namespace constants from bundled JSON metadata. Key entry points are WordprocessingDocument, SpreadsheetDocument, and PresentationDocument, each with static factory methods (Open, Create, FromFlatOpc). The library is actively maintained by Microsoft, supports Office versions from 2007 through Microsoft365, and includes numerous samples, extensive xUnit tests, and performance benchmarks.
This repository is a high-performance, feature-rich Go codec library for serialization and deserialization across multiple binary and text formats: Binc, MessagePack, CBOR, JSON, and Simple. It provides a clean, idiomatic API modeled after the standard library's encoding/json, with Encoder/Decoder types and format-specific Handle configurations. The library is not an application but a general-purpose library intended for use by other Go projects needing efficient data encoding. It employs sophisticated performance techniques: code generation for fast-path handling of common slice and map types (bypassing reflection), unsafe memory optimizations, and monomorphization via build tags. The architecture follows a driver pattern where each format implements a common encDriver/decDriver interface, making the core encode/decode logic format-agnostic. Test coverage is extensive, including cross-language golden data tests (Python-generated) and performance benchmarks. The codebase is actively maintained, with support for Go 1.21-1.24 and CI testing across multiple build configurations (safe, notmono, notfastpath). It is not a data research repository; it is a pure software library.
SpacetimeDB is a real-time database system that enables developers to upload application logic directly into the database as modules, eliminating the need for traditional backend servers. Clients connect directly to the database using language-specific SDKs (Rust, C#, TypeScript, C++, Unreal) and receive real-time updates when data changes. The system features a Rust-based core server, WebSocket-based synchronization, ACID transactions, and a code generation system that creates language bindings from module definitions. Notable features include schema evolution capabilities, scheduled procedures, and row-level security. The entire backend of MMORPG BitCraft Online runs as a single SpacetimeDB module, demonstrating its capacity for complex, high-performance applications.
SwiftGen is a mature, production-grade Swift code generation tool that produces type-safe Swift (and Objective-C) code from project resource files. It parses asset catalogs, strings files, fonts, storyboards, JSON, YAML, plist, Core Data models, colors, and arbitrary files, then feeds the parsed context into Stencil templates to generate compile-time safe accessors. The tool is primarily a CLI executable (`swiftgen`) that can be integrated into Xcode build phases, but it also exposes a reusable framework (`SwiftGenKit`) for parsing and context generation. The architecture cleanly separates parsing (SwiftGenKit) from template rendering (Stencil) and CLI orchestration (SwiftGenCLI), with a YAML configuration file (`swiftgen.yml`) centralizing all inputs, outputs, and parameters. The codebase is well-tested with unit tests for each parser and template output comparison against extensive fixture files. It supports Swift 4 and 5 output variants, custom templates, and parameters like `publicAccess`, `bundle`, and `lookupFunction`. While the project has some deprecated features and a large fixture set, it is actively maintained with recent commits, a clear migration guide, and a robust release pipeline via GitHub Actions.
Fusion Transpiler (fut) is a self-hosting, multi-target transpiler that translates code written in the Fusion language into C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript, and OpenCL C. The repository contains the complete compiler implementation written in Fusion itself, including a lexer, parser, semantic analyzer, and a family of code generators organized via a visitor pattern. It also includes a comprehensive test suite, command-line interfaces for multiple host languages (C++, C#, Java, Node.js), editor integrations (VS Code, Vim, Sublime, Visual Studio, LSP server), and packaging for Debian, Windows, and RPM. The architecture follows a classic compiler pipeline with a clear separation of concerns, and the self-hosting bootstrap ensures the compiler is exercised on its own code. This is a pure application project with no data processing or research components; it is a production-quality compiler toolchain.
phpspec is a mature Behavior-Driven Development (BDD) testing framework for PHP, delivered both as a CLI tool (`bin/phpspec`) and an embeddable library. In production it runs executable specifications (spec files extending `ObjectBehavior`) via two Symfony Console commands: `describe` generates a spec skeleton from a class name, and `run` discovers spec files through PSR-0/PSR-4 locators, executes them through a layered runner stack (suite -> specification -> example), evaluates assertions through a pluggable matcher library (identity, comparison, throw, trigger, iterable, array, string, etc.), and renders results through swappable formatters (progress, pretty, dot, JUnit, TAP, TeamCity, HTML, JSON). A distinctive feature is listener-driven code generation: when a spec references a missing class, method, collaborator, or named constructor, listeners prompt the developer and generate real PHP source via token-based code writers, then transparently re-run the suite using platform-specific process re-runners (pcntl, proc_open, Windows passthru). The framework couples to Prophecy for mocking and rewrites type hints in spec files at load time using a tokenizer state machine so Prophecy doubles work with modern PHP union/intersection types.
XGo (formerly Go+) is a Go-superset programming language delivered as a complete compiler toolchain. The repository implements the full language pipeline: a custom scanner (scanner/), parser (parser/), extended AST (ast/), semantic compiler (cl/), and code generator that lowers XGo source to standard Go via the gogen code builder. The xgo CLI (cmd/xgo) exposes subcommands for build, run, test, fmt, go, install, mod, pack, serve, watch, and version, wrapping the Go toolchain after transpilation. The language extends Go with command-style calls, keyword arguments, tuples, list/map/select comprehensions, error-wrapping operators (expr!, expr?), overloaded functions and operators, enums, domain-text literals, and classfile frameworks for domain-specific applications (spx games, MCP servers, shell scripts). The architecture follows a classic compiler design: XGo source → scanner → parser → AST → cl semantic analysis/code generation → gogen → Go source → standard Go toolchain. The tool/ package orchestrates module loading, go.mod management, and delegation to go build/run/test. A language server (x/langserver) with a bundled JSON-RPC2 library (x/jsonrpc2) supports editor tooling. Two notable sub-systems ship alongside the compiler: DQL (dql/), a unified query language over HTML/XML/JSON/YAML/Go AST trees, and TPL (tpl/), a grammar-based DSL parser generator used for domain-text literals. Hundreds of golden-test pairs (in.xgo/out.go) validate compiler output across Go versions 1.18-1.27. External dependencies include github.com/goplus/gogen (code builder), github.com/goplus/mod (module handling), github.com/qiniu/x (errors/streams), and cobra for CLI construction. The codebase forks several Go standard library internals (scanner, printer, ast) to support extended syntax, creating ongoing maintenance burden as Go evolves. Some features remain incomplete (panic("TODO") in matrix literal compilation, fully commented-out ast/resolve.go), and legacy naming aliases (gop vs xgo, gop.mod vs gox.mod) coexist throughout.
Spoon is a comprehensive, open-source Java library for source code analysis, transformation, and generation. Developed at INRIA, it provides a complete AST metamodel covering all modern Java constructs (up to Java 25), along with powerful APIs for pattern matching, template-based code generation, static dataflow analysis (with Z3 integration), control flow graph construction, Javadoc parsing, and decompilation. The architecture is modular with submodules for specific tasks (e.g., spoon-dataflow, spoon-smpl for semantic patches, spoon-visualisation). Spoon is used both as a research platform for program analysis and as a practical tool for building custom code transformations, linters, and refactoring tools. The codebase demonstrates high engineering quality with clean separation of interfaces and implementations, extensive use of visitor and factory patterns, and a sophisticated query API.
PrimeFaces is a mature, widely adopted UI component library for Jakarta Faces (JSF). In production it provides server-side JSF components (DataTable, Tree, DatePicker, Menu, Dialog, etc.) paired with client-side JavaScript/TypeScript widgets, enabling AJAX-driven, themeable web UIs for Java enterprise applications. The architecture is a multi-module Maven project: the core `primefaces` module contains component classes, renderers, models, events, validators, and utilities; `primefaces-cdk` is a custom annotation-driven code generation kit that produces component base implementations and taglib metadata; `primefaces-showcase` is a demo web application; and `primefaces-integration-tests` plus `primefaces-selenium` provide a Selenium-based testing framework with reusable page-object components. The library is distributed as a JAR and consumed by embedding it in JSF web applications, with entry points being the JSF component tags and the `PrimeFaces` JavaScript API.
openacid/slim is a Go library for building memory-efficient, serializable trie indexes and sparse arrays, primarily designed for in-memory indexing of large on-disk key-value data. The core artifact is SlimTrie, a compressed trie that achieves roughly 11 bits per key while supporting fast Get, range queries, prefix scans, and versioned marshal/unmarshal. The repository also contains a standalone sparse-array package and a type-safe encoder framework, with extensive benchmarks comparing against Go maps and btree indexes. Its architecture is modular: the trie package defines the index structure, the array package provides bitmap-backed dense/sparse storage primitives, and the encode package abstracts value serialization with generated concrete implementations.
Prefire is a Swift developer tool that scans SwiftUI source files, extracts `#Preview` macros and `PreviewProvider` declarations, and generates automated snapshot tests plus an interactive "Playbook" component catalog. It is not a data project: it is a CLI/code generator with a runtime library and SwiftPM/Xcode build-tool plugins. The real pipeline is: a build plugin invokes the `prefire` binary with target/source/config arguments; the binary parses sources using SwiftSyntax for `#Preview` macro ranges and a Sourcery fork for `PreviewProvider` types; a fingerprint-based cache avoids re-parsing unchanged files; Stencil templates (one for snapshot tests, one for playbook models) render generated Swift code; snapshot tests run against swift-snapshot-testing and the bundled Prefire runtime, while `PlaybookView` renders the generated `PreviewModels` inside an app.
go-swagger is a long-lived CLI and library for OpenAPI/Swagger 2.0 tooling, centered on code generation. The `swagger` binary (cmd/swagger) exposes commands for validate, diff, expand, flatten, mixin, serve, init, version, and generate; `swagger generate` produces Go server, client, model, operation, markdown, and CLI code from a Swagger spec. The generation pipeline loads and validates a spec through the go-openapi stack, flattens it, builds an intermediate representation of models/schemas/operations, then renders `.gotmpl` templates into Go source, finishing with a custom lightweight Go formatter and import sorting. The generated servers and clients depend on go-openapi runtime packages and can embed the spec and serve API docs. The tool also shells out to the Go toolchain at runtime, which is why the Docker image includes Go.
SFSafeSymbols is a Swift library that provides type-safe, compile-time checked access to Apple's SF Symbols. Instead of using string literals like `Image(systemName: "arrow.left")`, developers use generated static properties like `._arrowLeft` on the `SFSymbol` type, eliminating runtime crashes from typos and ensuring correct availability across OS versions. The library is distributed as a Swift Package, CocoaPod, and Xcode project, supporting iOS, macOS, tvOS, watchOS, and visionOS. It includes convenience initializers for SwiftUI (`Image`, `Label`, `Button`, `Tab`, `ContentUnavailableView`, `MenuBarExtra`), UIKit (`UIImage`, `UIApplicationShortcutIcon`), AppKit (`NSImage`), and AppIntents. The core architecture consists of a base `SFSymbol` class with `Codable` conformance and dynamic localization via `@dynamicMemberLookup`, plus thousands of auto-generated static properties organized by SF Symbols version. A companion command-line tool, `SymbolsGenerator`, parses Apple's metadata files (plists, strings) and produces the Swift source files, ensuring the library stays in sync with each OS release. The codebase is well-tested with unit tests for all framework extensions and runs CI on multiple Xcode versions and platforms.
This repository is a comprehensive benchmarking suite for Rust serialization libraries. It compares over 20 serialization frameworks (e.g., bincode, capnp, flatbuffers, rkyv, prost, serde_json) across four synthetic datasets (log, mesh, minecraft_savedata, mk48) that model realistic data shapes. Benchmarks measure serialization/deserialization speed, payload size, compression (zlib, zstd), and zero-copy access. The codebase includes a deterministic data generation framework via the `Generate` trait, a tooling pipeline (bencher, parser, formatter) for running benchmarks and auto-updating the README with results, and an interactive Yew-based web page for visualizing throughput under bandwidth/CPU constraints. While primarily a research/benchmarking project, it also demonstrates high-quality patterns for conditional compilation, feature-gated code generation, and shared schema definitions across CLI and web frontend.
libfsm is a C library and toolchain for constructing, manipulating, and compiling finite state machines (FSMs) from regular expressions. It supports multiple regex dialects (PCRE, glob, SQL LIKE, literal, native) and compiles them into deterministic finite automata (DFAs) that guarantee linear-time matching. The library provides a rich set of FSM operations: determinisation, minimisation, union, intersection, complement, reversal, trimming, and more. It also includes a lexer generator (lx) that produces C lexers from specification files, and a pattern matcher builder (rx) that merges many patterns into a single DFA with conflict detection. The architecture is modular: an abstract data type (ADT) layer provides reusable data structures (sets, hash tables, priority queues, edge sets, interned state sets); the libfsm core implements FSM algorithms; libre handles regex parsing and AST analysis; and multiple code generation backends emit C, Rust, Go, LLVM IR, x86 assembly, awk, shell, JSON, and a custom VM bytecode. The build system uses BSD make (bmake) and the project is extensively tested with unit tests, property-based fuzzing (theft), and a cross-implementation test runner (retest) that compiles and runs generated code via dlopen. Key entry points include the fsm CLI tool for interactive FSM operations, the re CLI for regex compilation and code generation, the lx CLI for lexer generation, and the rx CLI for building pattern matchers. The library is designed for embedding in other applications, with allocator hooks and a clean public API. It is particularly suited for high-performance pattern matching, protocol parsing, and any domain requiring deterministic automata with guaranteed worst-case performance.
SwiftPoet is a Kotlin/Java library for programmatically generating Swift source code. It provides a fluent builder API to construct Swift files with classes, structs, enums, protocols, extensions, functions, properties, type aliases, imports, attributes, documentation, and more. The library handles type name resolution, import management, keyword escaping, and proper formatting including indentation and line wrapping. It is inspired by JavaPoet and designed for use in annotation processing, metadata-driven code generation, and similar scenarios. The architecture is a pure library with no runtime dependencies beyond Kotlin stdlib, making it lightweight and embeddable. The codebase demonstrates strong software craftsmanship with clean abstractions, extensive test coverage, and reusable utility components.
This repository is a GraphQL code generation library and build plugin suite. It parses GraphQL schemas (SDL or introspection JSON) and generates Java, Kotlin, and Scala source files for types, enums, interfaces, unions, resolvers, client request/response classes, and response projections. The architecture is a core codegen engine with language-specific adapters (JavaGraphQLCodegen, KotlinGraphQLCodegen, ScalaGraphQLCodegen) that use FreeMarker templates for output. It integrates with Gradle, Maven, and SBT via dedicated plugins. External dependencies include graphql-java for schema parsing, FreeMarker for templating, and Jackson for serialization in generated code. The system supports extensive configuration (naming conventions, annotations, custom type mappings, Relay support) and is designed for schema-first development on both server and client sides.
AutoCoder Nano is an AI-powered coding assistant that leverages large language models (LLMs) for code generation, understanding, and modification. It provides both a command-line interface (CLI) and a web-based gateway server for interactive coding support. The system enables users to generate code, edit files, and answer questions about their codebase through natural language interactions with LLMs. The architecture is modular, consisting of a core LLM client for provider interactions, an agent-based system for task execution, context management for conversation history and file indexing, a retrieval-augmented generation (RAG) mechanism for relevant code retrieval, and a code editing module using SEARCH/REPLACE blocks. Additional components include a skill-based extension system, file locking utilities, and configuration management. The system supports multiple LLM providers (OpenAI, Volcengine, etc.) and integrates with Git for version control operations. Key entry points are the CLI (`auto_coder_nano.py`) and the gateway server (`auto_coder_gateway.py`). Data flows involve user input processed by the agent system, which coordinates LLM interactions, tool usage (file operations, web search, RAG), and context updates. External dependencies include FastAPI, DuckDB with VSS extension, HuggingFace tokenizers, and various utility libraries. The project demonstrates active maintenance with recent commits and exhibits strong engineering practices in its modular design and reusable patterns.