graphx-ai
v0.1.0
Published
GraphX.AI - generate and run read-only Gremlin queries against JanusGraph with an AI-assisted UI.
Maintainers
Readme

GraphX.AI
Web app for generating and running read-only Gremlin queries against JanusGraph, then visualizing results as an interactive graph.
Agentic Query Generation
Enter a prompt to retrieve the data you want to access.

Visualize the graph generated by the query

Inspect and run queries

What You Can Do
- Register one or more JanusGraph servers.
- Create sessions for each server.
- Ask questions in natural language.
- Let the agent generate Gremlin and run it.
- Re-run or edit queries and inspect the returned graph.
Requirements
- Node.js 20+
- Reachable JanusGraph Gremlin endpoint(s)
- OpenAI API key
Quick Start (Local Repo)
- Install dependencies.
pnpm install- Create local env file.
cp .env.example .env.local- Set required env var in
.env.local.
OPENAI_API_KEY=your_key_here- Start in development mode.
pnpm dev- Open
http://localhost:3000.
Quick Start (NPX)
- Export your API key.
export OPENAI_API_KEY=your_key_here- Start GraphX.AI directly:
npx graphx-ai- Open
http://localhost:3000.
By default, runtime files are created in your current directory under ./server and ./log.
Set GRAPHX_AI_HOME to store this data elsewhere.
Run Modes
- Development:
pnpm dev - Production build:
pnpm build - Production start:
pnpm start - Lint:
pnpm lint - Tests:
pnpm test
App Utilization Flow
- Add or select a server connection.
- Create a new session.
- Type a prompt describing the graph data you want.
- Review generated Gremlin + reasoning.
- Inspect the graph visualization and raw response data.
- Re-run or edit queries as needed.
Troubleshooting
- If query generation fails, confirm
OPENAI_API_KEYis set. - If query execution fails, verify server URL/credentials and traversal source.
- If a query is blocked, check
GREMLIN_REJECT_MUTATIONSin.env.local.
Documentation
Technical and development details were moved to DEVELOPMENT.md.
Publication Checklist
- Update version in
package.json. - Validate package contents:
pnpm pack:check- Publish to npm:
npm publish