{"id":18265,"library":"dbgate","title":"DbGate","description":"DbGate is an open-source database administration tool with a web interface, supporting multiple databases including MySQL, PostgreSQL, SQLite, MSSQL, and MongoDB. The current stable version is 7.1.9, with frequent releases addressing bugs and security issues. It stands out for its AI features, export capabilities, and cloud integration. As of v7.1.9, the npm package 'dbgate' is deprecated; use 'dbgate-serve' instead.","status":"deprecated","version":"5.5.7-alpha.33","language":"javascript","source_language":"en","source_url":"https://github.com/dbgate/dbgate","tags":["javascript","sql","dbgate","web"],"install":[{"cmd":"npm install dbgate","lang":"bash","label":"npm"},{"cmd":"yarn add dbgate","lang":"bash","label":"yarn"},{"cmd":"pnpm add dbgate","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only; requires ES module system.","wrong":"const dbgate = require('dbgate')","symbol":"default","correct":"import dbgate from 'dbgate'"},{"note":"Named export for server functionality.","wrong":"const { DbGateServer } = require('dbgate')","symbol":"DbGateServer","correct":"import { DbGateServer } from 'dbgate'"},{"note":"Named export, not default.","wrong":"import DbGateClient from 'dbgate'","symbol":"DbGateClient","correct":"import { DbGateClient } from 'dbgate'"}],"quickstart":{"code":"const express = require('express');\nconst { DbGateServer } = require('dbgate-serve');\nconst app = express();\nconst server = new DbGateServer({ expressApp: app });\napp.listen(3000, () => console.log('DbGate running on port 3000'));","lang":"javascript","description":"Sets up a DbGate server using Express. Note that the package has been renamed to 'dbgate-serve'."},"warnings":[{"fix":"npm install dbgate-serve and update imports accordingly.","message":"Package 'dbgate' is deprecated; use 'dbgate-serve' instead.","severity":"deprecated","affected_versions":">=5.0.0"},{"fix":"Switch to ES module imports (import/export).","message":"Upgraded to ESM-only module system in v3.0.0.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Ensure database connections are configured correctly.","message":"Requires a running database server; not an embedded library.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use import statements or set type: 'module' in package.json.","cause":"Using CommonJS require() on an ESM-only package.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/dbgate/index.mjs from /path/to/package.json not supported."},{"fix":"import { DbGateServer } from 'dbgate';","cause":"Using default import instead of named import for DbGateServer.","error":"DbGateServer is not a constructor"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}