{"id":46166752,"url":"https://github.com/tsvillain/pglens","last_synced_at":"2026-03-02T13:03:09.306Z","repository":{"id":324087779,"uuid":"1095923740","full_name":"tsvillain/pglens","owner":"tsvillain","description":"A simple PostgreSQL database viewer tool with a modern web interface. Browse tables, view data, and explore your database with ease.","archived":false,"fork":false,"pushed_at":"2026-02-18T13:42:06.000Z","size":715,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-18T17:48:54.422Z","etag":null,"topics":["cli-tool","database-explorer","database-management","database-tool","database-viewer","postgres","postgresql","sql","web-interface"],"latest_commit_sha":null,"homepage":"https://pglens.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsvillain.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-13T17:40:54.000Z","updated_at":"2026-02-18T15:17:22.000Z","dependencies_parsed_at":"2026-01-01T20:08:46.017Z","dependency_job_id":null,"html_url":"https://github.com/tsvillain/pglens","commit_stats":null,"previous_names":["tsvillain/pglens"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tsvillain/pglens","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsvillain%2Fpglens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsvillain%2Fpglens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsvillain%2Fpglens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsvillain%2Fpglens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsvillain","download_url":"https://codeload.github.com/tsvillain/pglens/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsvillain%2Fpglens/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30003475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T12:19:43.414Z","status":"ssl_error","status_checked_at":"2026-03-02T12:19:02.215Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli-tool","database-explorer","database-management","database-tool","database-viewer","postgres","postgresql","sql","web-interface"],"created_at":"2026-03-02T13:03:06.721Z","updated_at":"2026-03-02T13:03:09.299Z","avatar_url":"https://github.com/tsvillain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pglens\n\nA simple PostgreSQL database viewer tool. Perfect to quickly view and explore your PostgreSQL database through a web interface.\n\n## Features\n\n- 🔌 **Connection Manager**: Manage multiple database connections from a single UI\n- 💾 **Connection Persistence**: Saved connections are restored when you reopen the app\n- 🚀 **Background Service**: Runs as a daemon process for persistent access\n- 🗂️ **Table Browser**: View all tables in your database in a clean, searchable sidebar\n- 🔎 **Spotlight Search**: Quick table search with `Cmd+K` / `Ctrl+K` for fast navigation\n- 📊 **Data Viewer**: Browse table rows with a modern, easy-to-read interface\n- 🔢 **Row Numbers**: Row numbers displayed for easier navigation and reference\n- 📋 **Table Schema**: View table structure and column definitions directly from the UI\n- 📝 **Cell Content Viewer**: Double-click any cell to view full content in a popup\n- 🎨 **JSON/JSONB Formatting**: Auto-formats JSON data with syntax highlighting\n- 🕒 **Timezone Support**: View timestamps in local, UTC, or other timezones\n- 📋 **Clipboard Support**: One-click copy for cell contents\n- 🪟 **Multiple Tabs**: Open multiple tables simultaneously in separate tabs\n- 🔄 **Server-Side Sorting**: Click column headers to sort data directly on the database server\n- 📄 **Pagination**: Navigate through large tables with Previous/Next buttons\n- 🔍 **Table Search**: Quickly find tables by name using the search bar\n- 👁️ **Column Visibility**: Show or hide columns to focus on what matters\n- 📏 **Column Resizing**: Resize columns by dragging the column borders\n- 🎨 **Theme Support**: Choose between light, dark, or system theme\n- ⚡ **Optimized Performance**: Uses cursor-based pagination for efficient large table navigation\n- 🔒 **SSL Support**: Configurable SSL modes (Disable, Require, Prefer, Verify CA/Full)\n- 🔄 **Auto-Updates**: Desktop app automatically checks for and installs updates\n- 🚀 **Easy Setup**: Install globally and run with a single command\n\n## Installation\n\n```bash\nnpm install -g pglens\n```\n\nOr install locally in your project:\n\n```bash\nnpm install pglens\n```\n\n## Usage\n\n### Start the Server\n\nStart pglens as a background service:\n\n```bash\npglens start\n```\n\nThis will start the server on `http://localhost:54321` (or the next available port if 54321 is busy).\nThe URL will be printed to the console. You can also check the running URL at any time with:\n\n```bash\npglens url\n```\n\n### Connect to a Database\n\n1. Open `http://localhost:54321` to see the **All Connections** landing page.\n2. Click the **Add Connection** card or the **+** icon in the grid.\n3. Enter your connection details using one of the tabs:\n   - **Parameters** (Default): Enter Host, Port, Database, User, and Password separately.\n   - **Connection URL**: Paste a standard PostgreSQL connection string (e.g., `postgresql://user:pass@localhost:5432/db`).\n4. Select the **SSL Mode** appropriate for your server.\n5. Click **Connect**. The server will be added to your grid.\n6. Click the server card to open the **Explorer**.\n\n### Stop the Server\n\nTo stop the background service:\n\n```bash\npglens stop\n```\n\n## How It Works\n\n1. **Start**: Run `pglens start` to launch the background service\n2. **Connect**: Add one or more database connections via the Web UI\n3. **Explore**:\n   - Use the sidebar to browse tables across different connections\n   - Double-click cells to view detailed content\n   - Use the \"Columns\" menu to toggle visibility\n   - Switch themes for comfortable viewing\n\n## Development\n\nTo develop or modify pglens:\n\n```bash\n# Clone the repository\ngit clone https://github.com/tsvillain/pglens.git\ncd pglens\n\n# Install dependencies\n# Install dependencies\nnpm install\n```\n\n### Run Desktop App\n\nTo run the application as a standalone desktop app during development:\n\n```bash\nnpm run electron:start\n```\n\n### Build Desktop App\n\nTo build the desktop application for your current platform:\n\n```bash\nnpm run dist\n```\n\nTo build for specific platforms (requires supported environment):\n\n```bash\nnpm run dist:mac    # Build for macOS\nnpm run dist:win    # Build for Windows\nnpm run dist:linux  # Build for Linux\n```\n\n### Run Server Locally\n\nTo run the server locally in foreground:\n\n```bash\nnode bin/pglens serve\n```\n\n## Contributing\n\nContributions are welcome! Please read our [Contributing Guidelines](CONTRIBUTING.md) for details on:\n\n- How to set up your development environment\n- Code style and guidelines\n- Pull request process\n- Issue reporting\n\n## Security Note\n\nThis tool is designed for local development use. While it supports SSL for database connections, the web interface itself runs on HTTP (localhost) and has no user authentication. **Do not expose the pglens port (54321) directly to the internet.**\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsvillain%2Fpglens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsvillain%2Fpglens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsvillain%2Fpglens/lists"}