{"id":29619240,"url":"https://github.com/cakeofpain/openvgraph","last_synced_at":"2025-07-21T03:01:57.986Z","repository":{"id":302263960,"uuid":"1009289803","full_name":"CakeOfPain/openVGraph","owner":"CakeOfPain","description":"OpenVGraph is an Electron-based desktop application that lets you connect to a JanusGraph database, run arbitrary Gremlin queries, and visualize the results as an interactive D3 force-directed graph. It also features an integrated Monaco-based Gremlin editor with autocomplete and a JSON viewer pane.","archived":false,"fork":false,"pushed_at":"2025-07-01T12:31:25.000Z","size":1855,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-01T12:39:11.600Z","etag":null,"topics":["desktop-app","electron","graph","graphdatabase","gremlin","janusgraph"],"latest_commit_sha":null,"homepage":"https://github.com/CakeOfPain/openVGraph","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CakeOfPain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-26T22:22:09.000Z","updated_at":"2025-07-01T12:31:28.000Z","dependencies_parsed_at":"2025-07-01T12:41:09.092Z","dependency_job_id":"d343bca9-f8aa-426e-8ec0-064058378cda","html_url":"https://github.com/CakeOfPain/openVGraph","commit_stats":null,"previous_names":["cakeofpain/openvgraph"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CakeOfPain/openVGraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CakeOfPain%2FopenVGraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CakeOfPain%2FopenVGraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CakeOfPain%2FopenVGraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CakeOfPain%2FopenVGraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CakeOfPain","download_url":"https://codeload.github.com/CakeOfPain/openVGraph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CakeOfPain%2FopenVGraph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266231764,"owners_count":23896473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["desktop-app","electron","graph","graphdatabase","gremlin","janusgraph"],"created_at":"2025-07-21T03:01:05.928Z","updated_at":"2025-07-21T03:01:57.969Z","avatar_url":"https://github.com/CakeOfPain.png","language":"HTML","readme":"# OpenVGraph\n\n![Query](/docs/res/OpenVGraph-Query.png)\n![Homescreen](/docs/res/OpenVGraph-Home.png)\n![Connect](/docs/res/OpenVGraph-Connect.png)\n\n**OpenVGraph** is an Electron-based desktop application that lets you connect to a JanusGraph database, run arbitrary Gremlin queries, and visualize the results as an interactive D3 force-directed graph. It also features an integrated Monaco-based Gremlin editor with autocomplete and a JSON viewer pane.\n\n---\n\n## Features\n\n- **Live Gremlin querying** against JanusGraph over WebSocket  \n- **Monaco Editor** for your Gremlin scripts (Java mode)  \n  - Single-line input  \n  - Autocomplete for common Gremlin steps (Ctrl+Space)  \n- **D3 Force-Directed Graph**  \n  - Pan \u0026 zoom  \n  - “Zoom-to-fit” on query completion  \n  - Node and edge tooltips showing full property maps  \n- **Raw JSON viewer** using Monaco in JSON mode  \n- **Bootstrap**-powered responsive UI with tabs for Graph / JSON  \n- **Auto-fetch** of all vertices \u0026 edges when your query returns only vertices\n\n---\n\n## Prerequisites\n\n- **Node.js** ≥ 14  \n- **npm** (bundled with Node.js)\n- A running **JanusGraph** instance with WebSocket/Gremlin Server enabled\n\n---\n\n## Installation\n\n1. Clone the repo:  \n   ```bash\n   git clone https://github.com/your-org/OpenVGraph.git\n   cd OpenVGraph\n   ```\n2. Install dependencies:  \n   ```bash\n   npm install\n   ```\n   This pulls in:\n   - `electron`  \n   - `gremlin` (Gremlin-JS)  \n   - `d3`  \n   - `bootstrap`  \n   - `monaco-editor`\n\n---\n\n## Configuration\n\nBefore running the app, configure your JanusGraph connection in the UI:\n\n1. Launch the **Connection** form on first run (or via the menu).  \n2. Fill in:\n   - **Host** (e.g. `localhost`)  \n   - **Port** (e.g. `8182`)  \n   - **Use SSL** toggle  \n   - **Path** (e.g. `/gremlin`)  \n   - **Username** / **Password** (if your server requires authentication)  \n3. Click **Save**. Connection settings are persisted in `localStorage`.\n\n---\n\n## Running the App\n\n### Development\n\n```bash\nnpm run start\n```\n\nThis will launch the Electron app in development mode. Any changes to renderer files will require a reload.\n\n### Production Build\n\n```bash\nnpm run build\nnpm run package\n```\n\nDepending on your platform, this generates installers or executables under `dist/`.\n\n---\n\n## Usage\n\n1. Enter a Gremlin query in the single-line editor (e.g. `g.V().limit(20).bothE().bothV().path()`).  \n2. Press **Run** or hit `Ctrl+Enter`.  \n3. The **Graph** tab will render the force-directed layout.  \n   - Drag nodes, pan \u0026 zoom with mouse.  \n   - Hover for full property tooltips.  \n4. Switch to the **Raw JSON** tab to inspect the exact payload returned by JanusGraph.  \n5. To delete data, run Gremlin `drop()` queries (e.g. `g.V(123).drop().iterate()`).\n\n---\n\n## Architecture\n\n```\n├── main.js           # Electron main process\n├── preload.js        # Context-isolated API bridge (Gremlin client)\n├── index.html        # Renderer entry\n├── renderer.js       # Renderer logic (D3 + Monaco + IPC)\n└── package.json\n```\n\n- **`preload.js`** uses `contextBridge` to expose `window.api.executeQuery()`  \n- **Renderer** loads D3, Monaco, Bootstrap and implements:\n  - Query submission → Gremlin over WebSocket  \n  - Flattening of GraphSON / Path results  \n  - Auto-fetch of all vertices for full graph  \n  - Force simulation, zoom/pan, auto-fit  \n\n---\n\n## Gremlin Tips\n\n- To see _only_ vertices:  \n  ```groovy\n  g.V().toList()\n  ```\n- To include edges \u0026 endpoints:\n  ```groovy\n  g.V().bothE().bothV().path()\n  ```\n- To delete a vertex (and its incident edges):\n  ```groovy\n  g.V(4176).drop().iterate()\n  ```\n\n---\n\n## Troubleshooting\n\n- **“Query error”** → Check your JanusGraph server logs, verify WebSocket endpoint \u0026 credentials.  \n- **Empty graph** → Ensure your query returns both vertices \u0026 edges (or let the app auto-fetch edges).  \n- **Monaco not loading** → Confirm `monaco-editor` is installed and `vs/loader.js` is present under `node_modules/monaco-editor/min/vs`.\n\n---\n\n## License\n\nMIT © Your Name / Your Organization  \nFeel free to adapt, extend, or contribute back via pull requests!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakeofpain%2Fopenvgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakeofpain%2Fopenvgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakeofpain%2Fopenvgraph/lists"}