This repository contains research and examples for creating custom nodes and interactive widgets in LiteGraph.js.
| File | Description |
|---|---|
| research-summary.md | Comprehensive summary of findings and recommendations |
| litegraph-summary.md | Overview of LiteGraph.js library features and capabilities |
| custom-nodes-guide.md | Detailed guide on creating custom nodes with widgets |
| custom-widget-examples.js | JavaScript examples of various custom nodes and widgets |
| examples-index.md | Index and categorization of the example nodes |
LiteGraph.js is a JavaScript library for creating node-based graphs with a visual editor, similar to Unreal Blueprints or Pure Data. This project focuses specifically on creating custom nodes with interactive controls (widgets), an essential aspect for building sophisticated node-based applications.
This research covers:
- Built-in widget types and their usage
- Creating custom interactive controls
- Handling mouse interactions for custom widgets
- Data visualization within nodes
- Event-based interactions between nodes
- Best practices for node design and implementation
The repository includes several complete examples demonstrating different widget types and interaction patterns:
- Basic widgets (number, slider, combo, toggle, button)
- Custom interactive elements (buttons, knobs, graphs)
- Data visualization techniques
- Event handling and triggering
To use these examples in your own LiteGraph.js project:
- Review the research-summary.md for an overview
- Study the custom-nodes-guide.md for implementation details
- Copy code from custom-widget-examples.js as needed
- Uncomment the node registration lines to make them available in your graph editor
For more information about LiteGraph.js:
Research conducted on: April 8, 2025
