This repository is a production-grade, canvas-based WYSIWYG rich text document editor published as the npm package `@hufe921/canvas-editor`. It is a monolithic library that provides a fully self-contained document editing experience, rendering text, tables, images, LaTeX, and form controls entirely on an HTML `<canvas>` element. The architecture is a well-structured layered design featuring a Command pattern facade (`Command`/`CommandAdapt`), a custom particle-based rendering engine (`Draw`), a pub/sub event system (`EventBus`), and a plugin system. The editor supports a wide array of features including pagination, headers/footers, watermarks, change tracking (trace mode), macros, spell checking, accessibility, multi-column layouts, and a sophisticated cascade expression engine for dynamic form control behavior. It is specifically designed for high-fidelity document editing in domains like Electronic Medical Records (EMR), contracts, and official documents, as evidenced by the mock data and feature set. The codebase demonstrates strong engineering craftsmanship. Several components are genuinely reusable, including a custom Myers O(ND) diff algorithm, a standalone LaTeX-to-SVG renderer using Hershey fonts, a fully featured DSL expression evaluator for control cascading, and a clean event bus implementation. The project is actively maintained with a comprehensive test suite (Cypress E2E, Vitest unit tests), modern tooling (Vite, TypeScript), and a rich plugin ecosystem. While some core files like `Draw.ts` and `CommandAdapt.ts` are large and exhibit tight coupling, the overall architecture, separation of concerns, and quality of the reusable components are well above average.
Veil is a client-side Minecraft modding library for Fabric and NeoForge that provides advanced rendering capabilities to mod developers. In production it implements a custom shader pipeline: GLSL preprocessing and injection into vanilla and Sodium shaders, dynamic buffer outputs for deferred-style rendering, JSON-defined shader programs, and a caching shader compiler. It also manages advanced framebuffers, post-processing pipelines (bloom, composite, first-person), custom render types, and GPU light renderers for point, area, spot, and directional lights. Beyond core rendering, Veil ships data-driven effects: the Quasar particle system with modular init/update/render/force modules, Flare shell-based effects with controller/modifier properties, Necromancer skeletal animation, and screen shake. It includes developer tooling such as ImGui inspectors, resource editors, and hot reload, plus a resource management layer that treats shaders, framebuffers, render types, and textures as first-class reloadable assets. The project is structured as a common API/impl core with separate Fabric and NeoForge loader modules, service-loaded event platforms, and codec-based resource serialization. This is not a data research repository; although it uses JSON assets and codec-driven definitions, it is fundamentally an application library for game rendering. The code is actively maintained on the 1.21 branch, with the main risks being the large mixin surface into Minecraft/Sodium/Iris internals and duplicated platform-specific compatibility code.