A desktop application for viewing and editing SQLite databases in WordPress Studio installations. Built with Electron and React.
- Features
- Screenshots
- Prerequisites
- Development Setup
- Building Executables
- Creating Releases
- Usage
- Technical Stack
- License
- WordPress Studio Integration
- Automatic detection of WordPress Studio installations
- Finds SQLite database in wp-content/database/.ht.sqlite
- Recent directories support for quick access
- Database Viewing
- View all tables in the database
- Browse table data with pagination (50 rows per page)
- View table schema with primary key indicators
- Search/filter within table data by specific columns or all columns
- Data Editing
- Edit existing rows with modal editor
- Delete rows (with confirmation)
- Automatic data type detection
- Primary key protection
- Clean, modern UI with real-time updates
- Cross-platform support (macOS, Windows, Linux)
- Node.js 18.x or higher
- npm 9.x or higher
- A WordPress Studio installation for testing (GitHub)
- Clone the repository:
git clone https://github.com/jonathanbossenger/wp-sqlite.git
cd wp-sqlite- Install dependencies:
npm install- Start the development server:
npm run devThis will:
- Generate application icons
- Start webpack in watch mode for the renderer process
- Launch Electron in development mode
- Enable hot reloading for React components
The project uses Electron Forge for building platform-specific executables.
npm run makeThis will create executables in the out/make directory for:
- macOS (.dmg)
- Windows (.exe)
- Linux (.deb, .rpm)
For macOS:
npm run make -- --platform=darwinFor Windows:
npm run make -- --platform=win32For Linux:
npm run make -- --platform=linuxThe repository includes a GitHub Actions workflow that automatically builds the application for all platforms when a new release is created.
- Update the version in
package.json - Commit the version change
- Create and push a new git tag:
git tag v1.0.0
git push origin v1.0.0- Create a new release on GitHub:
- Go to the repository's Releases page
- Click "Draft a new release"
- Select the tag you just created
- Add release notes
- Click "Publish release"
The GitHub Actions workflow will automatically:
- Build the application for Windows, macOS, and Linux
- Upload the following artifacts to the release:
- Windows:
.exeinstaller (Squirrel),.msiinstaller (WiX) - macOS:
.dmginstaller,.ziparchive - Linux:
.debpackage,.rpmpackage,.ziparchive
- Windows:
Users can then download and install the appropriate version for their operating system directly from the GitHub release page.
- Launch the application
- Select your WordPress Studio installation directory
- The app will automatically:
- Detect the SQLite database at wp-content/database/.ht.sqlite
- Load the list of tables
- Select a table to view its data
- Use pagination controls to navigate through rows
- Edit or delete rows as needed
- Use the column dropdown and search box to filter data by specific columns
- Click "Edit" on any row to open the edit modal
- Modify the values (primary key fields are read-only)
- Click "Save Changes" to update the row
- Changes are immediately saved to the database
- Click "Delete" on any row
- Confirm the deletion
- The row is permanently removed from the database
- Select a column from the dropdown menu (or "All Columns" to search across all fields)
- Type your search query in the search box
- The table will automatically filter to show only matching rows
- The search is case-insensitive and matches partial text
- Electron - Desktop application framework
- React - UI framework
- Tailwind CSS - Styling and responsive design
- better-sqlite3 - SQLite database interface
- Sharp - Image processing for icons
npm run dev- Start the application in development modenpm run build- Build the renderer processnpm run generate-icons- Generate application iconsnpm run generate-all- Generate all iconsnpm run package- Package the application without creating installersnpm run make- Create platform-specific distributables
GPL-2.0-or-later



