A web interface for exploring Shape queries to your Electric server. This tool provides a simple way to query Electric and visualize the results.
npx git-scaffold electric-sql/shape-explorer shape-explorer
- Simple Query Interface: Enter table names and WHERE clauses to query your data
- Real-time Results: See your query results instantly
- Keyboard Shortcuts: Submit queries quickly with Cmd/Ctrl + Enter
- Shareable URLs: Share queries easily with URL-based state
Copy .env.sample
to .env
and then add your SOURCE_ID
and SOURCE_SECRET
.
Electric SQL syncs subsets of your Postgres data into local apps and services. Here's what it solves:
- Replaces data fetching with data sync
- Simplifies your code
- Eliminates loading spinners
- Replaces TTLs and expiry policies with realtime sync
- Automated invalidation
- No more stale data
- Takes query workload off your database
- Reduces compute workload on your cloud
- Lowers cloud bills
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:3000 to start exploring your Electric database
- Enter a table name in the "Table Name" field
- Optionally add a WHERE clause to filter results
- Click "Query" or press Cmd/Ctrl + Enter to execute
- View results in the table below
ELECTRIC_URL
: Your Electric SQL service URLELECTRIC_SOURCE_SECRET
: Your Electric source secretELECTRIC_SOURCE_ID
: Your Electric source ID