Metadata-Version: 2.5
Name: griptape-nodes-editor-dist
Version: 0.126.0
Summary: Prebuilt Griptape Nodes editor: the editor iframe bundle and the loopback parent shell that hosts it.
Project-URL: Repository, https://github.com/griptape-ai/griptape-vsl-gui
License-Expression: LicenseRef-Griptape-Proprietary
License-File: LICENSE
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# griptape-nodes-editor-dist

Prebuilt Griptape Nodes editor, published from
[griptape-vsl-gui](https://github.com/griptape-ai/griptape-vsl-gui) so a Python
host can serve the editor without a Node toolchain.

The distribution carries two static builds in an importable package:

```
griptape_nodes_editor_dist/
  editor/
  local-parent/
```

## Install

```bash
pip install griptape-nodes-editor-dist
```

To locate the assets directly:

```python
import importlib.resources
import griptape_nodes_editor_dist

root = importlib.resources.files(griptape_nodes_editor_dist)
editor_dir = root / "editor"
shell_dir = root / "local-parent"
```

Serve `local-parent/` at the root and `editor/` one level down at `editor/`.
Visiting `editor/` on its own gives a page that waits forever: it has no parent
to hand it an engine connection.

`editor/` uses `BrowserRouter` and needs an SPA fallback. `local-parent/` has
no router but still needs `index.html` served for any path, since its static
host does not otherwise rewrite entries to it.

## Relationship to the npm package

The GitHub Packages npm distribution uses the same layout and version for
JavaScript hosts. Version `0.N.M` corresponds to the `vN.M` griptape-vsl-gui
release tag.
