Skip to content

flq/peltzer

Repository files navigation

Peltzer icon

Peltzer

Randall Peltzer was the dude that found Mogwai, who was then father to many gremlins. See what I did there?

Prerequisites

  • Node.js 20+
  • Rust / Cargo (install)
  • Docker (for local TinkerPop server)

Tech Stack

  • Desktop: Tauri v2
  • Frontend: Svelte 5, TypeScript
  • Backend: Rust, gremlin-rs

How to run the app in development

1. Start the database

npm run db:start

This starts a TinkerPop Gremlin Server in Docker on port 8182.

2. Start the app

npm run tauri dev

3. Create a connection

In the app, create a new connection with these parameters:

Parameter Value
Host localhost
Port 8182
SSL Off
Authentication None

4. Try a query

Once connected, try a simple query:

g.V().limit(5)

The TinkerPop server starts with an empty graph, so you can add some test data:

g.addV('person').property('name', 'Alice')
g.addV('person').property('name', 'Bob')
g.V().hasLabel('person').values('name')

Debugging the Rust backend

Tauri apps have two parts: the frontend (WebView) and the Rust backend. When you debug just the Rust binary without the frontend running, you get an empty window.

To debug the Rust backend with your IDE:

1. Start the frontend dev server

npm run dev

This starts Vite on http://localhost:1420.

2. Configure your IDE

In your IDE's run/debug configuration, set the environment variable:

TAURI_DEV_SERVER_URL=http://localhost:1420

3. Debug the Rust binary

Now run/debug the Rust binary (src-tauri/src/main.rs). The app will load the frontend from the dev server, and you can set breakpoints in the Rust code.

For quick debugging without an IDE, add println! or dbg! macros to your Rust code - output appears in the terminal running npm run tauri dev.

Build OSX app

npm run tauri build -- --bundles app

About

A UI to run gremlin queries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •