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
![Image](https://private-user-images.githubusercontent.com/71047/407506474-dd59fb1b-a212-46c1-a1d1-e2ae3dcc3cc1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDAwMTgsIm5iZiI6MTczOTE5OTcxOCwicGF0aCI6Ii83MTA0Ny80MDc1MDY0NzQtZGQ1OWZiMWItYTIxMi00NmMxLWExZDEtZTJhZTNkY2MzY2MxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE1MDE1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0Yjg3Y2VmYTIxYjQ0MzVlZmIxZjg2YThmZWQwMjFhYTg4MzM5YTg5ZmEyYmRhMDkzYzk4NTA4NWU3OTRkMDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qeuo6Uc1mG45e3evVEoXWHWeq79yCxM2dGaY_pa2GQg)
- 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