- Type-safe D3 visualizations in PureScript
- Better fit for functional programming while retaining D3 performance in the browser
- Declarative Tree API - describe what you want, library renders it
- Same tree can render to DOM (D3), Mermaid diagrams, or English descriptions
- Preserves D3's flexibility while adding compile-time safety
- Attributes are type-checked per element (can't put
cxon aRect)
- No runtime coercion/casting of data in bindings
- Compiler catches attribute mismatches
- Multiple interpreters from single visualization definition
- Pure PureScript layout algorithms (Sankey, tree, pack) - no D3 layout dependency
- Much better suited to re-use, library creation, complex apps, data viz as control surface
- Higher-level abstractions for graphs and networks using simulation with updates
psd3-selection- Core selection system, Tree API, type-safe attributespsd3-simulation- Force-directed graphs, simulation enginepsd3-layout- Layout algorithms (tree, treemap, pack, Sankey, cluster)
- Tree API - declarative, for static charts (bar, line, tree, Sankey)
- PSD3 API - lower-level, for simulations and interactive viz
- Getting Started - installation and first visualization
- How-To - step-by-step guides
- API Reference - module documentation
- Understanding - architecture deep-dives
- Tour - simple examples with code side-by-side
- Showcase - real-world examples
spago install psd3-selection psd3-layout psd3-simulationSee the Acknowledgements page.
MIT