9 个仓库
Plugins for modifying source code and template processing.
Explore 9 awesome GitHub repositories matching part of an awesome list · Code Transformers. Refine with filters or upvote what's useful.
GoGoCode is an AST-based code transformation toolkit that enables developers to query, match, and rewrite JavaScript source code using jQuery-style selectors and wildcard patterns. At its core, it provides a programmatic code refactoring library that manipulates parsed AST nodes, allowing precise structural modifications without worrying about formatting differences. The toolkit also functions as a JavaScript AST query engine, finding code patterns through snippet-based matching with wildcards that capture unknown or variable-length fragments. What distinguishes GoGoCode is its callback-drive
Adds new statements before, after, or inside matched code blocks using positional insertion methods.
ComponentKit is a declarative UI framework for building iOS interfaces through composition of small, reusable components. It provides a structured approach to constructing user interfaces where each component is defined as an immutable, pure function of its inputs, enabling predictable rendering and state management. The framework supports both stateless and stateful components, with controllers that can be attached to manage persistent state across component updates. The framework distinguishes itself through its component architecture that emphasizes explicit data flow and compile-time safe
Tracks insertion positions from component state to avoid race conditions with the list view.
Farm is a Rust-based web build tool and development server that compiles JavaScript, TypeScript, CSS, HTML, and static assets into optimized bundles. It uses a module-graph-based bundling approach with persistent module-level caching, enabling near-instant builds and sub-20ms hot module replacement during development. The tool processes assets based on file extensions, handling CSS, Sass, Less, PostCSS, HTML, and images as first-class modules without requiring JavaScript transformation. Farm distinguishes itself through its Vite-compatible plugin system, accepting Vite, Rollup, and Unplugin p
Modifies final bundled code of a resource pot, such as replacing placeholder strings before output.
Pyarmor 是一个通过源代码混淆、字节码保护和二进制编译来保护 Python 软件的工具集。它作为一个代码混淆器、字节码保护器和二进制编译器,旨在防止对 Python 脚本和包的逆向工程和未经授权的访问。 该项目通过提供一个支持硬件绑定许可的综合软件许可证管理器而脱颖而出。这允许开发者将脚本执行锁定到特定的物理设备或虚拟机,并通过加密的运行时密钥强制执行严格的过期日期。 其更广泛的功能涵盖通过生成混淆的 Wheel 和多平台独立可执行文件进行安全分发。安全层面包括运行时完整性检查,例如防止调试器附加、内存级保护以及将 Python 函数转换为编译后的 C 扩展。 该工具包含一个命令行界面,并支持集成到持续集成(CI)流水线中,以在构建过程中自动化混淆过程。
Employs specialized transformation modes to harden scripts and restrict execution environments.
本项目是 Visual Studio Code 的 AI 助手,利用大语言模型生成代码并回答编程查询。它作为一个代码生成器和助手,能够将 AI 生成的代码片段直接插入到活跃的源文件中,并通过侧边栏聊天提供对话界面。 该扩展通过自然语言提示促进所选代码块的结构重构、优化和调试。它还为复杂的代码段生成自然语言解释和技术文档,无需用户离开开发环境。 该工具管理对话状态以提供后续查询的短期记忆,并通过命令面板和上下文菜单与编辑器交互。它检索高亮文本以提供转换上下文,并修改活跃编辑器缓冲区以在光标位置插入内容。 该界面使用编辑器侧边栏中的基于 Webview 的聊天环境进行渲染。
Calculates active cursor coordinates to inject AI-generated content directly into the source file.
Cherry Markdown 是一个基于 Web 的 Markdown 编辑器和解析引擎,将标记文本转换为带有实时同步预览窗格的净化 HTML。它作为一个富文本界面和 WYSIWYG 工具,提供了一套将标记字符串转换为 HTML 文档或便携格式的系统。 该项目以高性能渲染和灵活的扩展模型脱颖而出。它使用虚拟 DOM diff 和部分渲染来保持大型文档的响应速度,并允许通过插件系统创建自定义解析规则和专门的 HTML 组件。 该编辑器的能力涵盖了数学公式、图表和富媒体的全面内容管理,以及诸如多光标编辑和 Vim 风格模态导航等高级输入控制。它还具有强大的文档导出工作流,以及用于编辑器和预览区域深度视觉自定义的设计令牌(Design Token)系统。 该系统包含一个安全层,使用基于白名单的 HTML 净化来防止注入攻击。
Inserts specific text or formatted Markdown syntax directly at the user's active cursor position.
This is a collection of official extensions for the Rollup bundling process. These plugins serve as module transformers, resolution managers, and bundle optimizers designed to modify how JavaScript modules are processed, resolved, and optimized. The suite provides specialized capabilities for modern web transpilation, converting TypeScript, JSX, Flow, and GraphQL into compatible JavaScript. It distinguishes itself through extensive non-JavaScript asset integration, allowing the import of JSON, YAML, CSV, and image files as JavaScript modules or data URIs, and providing support for bundling We
Applies code transformations to final bundled chunks to handle auto-generated code or target compatibility levels.
A vite plugin for processing html. It is developed based on lodash template
Minifies and adds EJS support to HTML files.
Give Vite the ability to resolve 'nameof' calls in TypeScript
Listed in the “Code Transformers” section of the Awesome Vite awesome list.