Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(ci): add 1Panel App Store auto-submission

t8y2fdb9a5c4d33c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 258c22742c..6d9f3b8a50 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -395,6 +395,60 @@ jobs:
echo "::notice::Scoop manifest updated to ${VERSION}"
fi
+ panel-appstore:
+ needs: publish
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Extract version from tag
+ id: version
+ run: |
+ VERSION="${GITHUB_REF_NAME#v}"
+ echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
+
+ - name: Submit to 1Panel App Store
+ env:
+ TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
+ run: |
+ VERSION="${{ steps.version.outputs.version }}"
+
+ git clone --depth 1 \
+ "https://x-access-token:${TAP_GITHUB_TOKEN}@github.com/${REPO_OWNER}/appstore.git" \
+ appstore
+ cd appstore
+
+ APP_DIR="apps/dbx"
+ mkdir -p "${APP_DIR}/${VERSION}"
+
+ cp "${{ github.workspace }}/1panel/data.yml" "${APP_DIR}/data.yml"
+ cp "${{ github.workspace }}/1panel/README.md" "${APP_DIR}/README.md"
+ if [ -f "${{ github.workspace }}/1panel/logo.png" ]; then
+ cp "${{ github.workspace }}/1panel/logo.png" "${APP_DIR}/logo.png"
+ fi
+ cp -r "${{ github.workspace }}/1panel/latest/." "${APP_DIR}/${VERSION}/"
+
+ git config user.name "github-actions[bot]"
+ git config user.email "github-actions[bot]@users.noreply.github.com"
+
+ BRANCH="app/dbx-${VERSION}"
+ git checkout -b "${BRANCH}"
+ git add "${APP_DIR}"
+
+ if git diff --cached --quiet; then
+ echo "1Panel app store is already up to date."
+ else
+ git commit -m "feat(dbx): release ${VERSION}"
+ git push origin "${BRANCH}"
+ gh pr create \
+ --repo "1Panel-dev/appstore" \
+ --head "${REPO_OWNER}:${BRANCH}" \
+ --title "feat(dbx): release ${VERSION}" \
+ --body "Automated release of DBX v${VERSION}" \
+ --base master
+ echo "::notice::1Panel App Store PR created for ${VERSION}"
+ fi
+
docker:
runs-on: ubuntu-latest
strategy:
diff --git a/1panel/README.md b/1panel/README.md
new file mode 100644
index 0000000000..85b35ec3d3
--- /dev/null
+++ b/1panel/README.md
@@ -0,0 +1,21 @@
+# DBX
+
+25+ databases in 15 MB. Desktop & Docker self-hosting, with built-in AI assistant.
+
+Supported databases: MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, ClickHouse, SQL Server, Oracle, Elasticsearch, MariaDB, TiDB, OceanBase, openGauss, GaussDB, KingBase, and more.
+
+## Features
+
+- SQL editor with syntax highlighting, autocomplete, and formatting
+- AI SQL assistant (Claude, OpenAI, or any OpenAI-compatible endpoint)
+- Virtual-scrolled data grid with inline editing
+- ER diagram, schema diff, explain plan, field lineage
+- Data import/export (CSV, Excel, JSON, Parquet)
+- Redis key browser and MongoDB document CRUD
+- SSH tunnel, dark mode, i18n (English & 简体中文)
+
+## Links
+
+- GitHub: https://github.com/t8y2/dbx
+- Discord: https://discord.gg/W7NyVDRt6a
+- QQ 群: 1087880322
diff --git a/1panel/data.yml b/1panel/data.yml
new file mode 100644
index 0000000000..7b863b42b3
--- /dev/null
+++ b/1panel/data.yml
@@ -0,0 +1,13 @@
+additional:
+ key: dbx
+ name: DBX
+ tags:
+ - Tool
+ shortDescZh: 轻量级数据库管理工具,支持 25+ 种数据库
+ shortDescEn: Lightweight database manager supporting 25+ databases
+ type: tool
+ crossVersionUpdate: true
+ limit: 0
+ website: https://github.com/t8y2/dbx
+ github: https://github.com/t8y2/dbx
+ document: https://github.com/t8y2/dbx#readme
diff --git a/1panel/latest/data.yml b/1panel/latest/data.yml
new file mode 100644
index 0000000000..0394fcc7c3
--- /dev/null
+++ b/1panel/latest/data.yml
@@ -0,0 +1,20 @@
+additionalProperties:
+ formFields:
+ - default: 4224
+ envKey: PANEL_APP_PORT_HTTP
+ label:
+ zh: 端口
+ en: Port
+ required: true
+ rule: paramPort
+ type: number
+
+ - default: dbx_password
+ envKey: PANEL_DB_PASSWORD
+ label:
+ zh: 访问密码
+ en: Access Password
+ required: true
+ rule: paramComplexity
+ type: password
+ random: true
diff --git a/1panel/latest/docker-compose.yml b/1panel/latest/docker-compose.yml
new file mode 100644
index 0000000000..443ad24245
--- /dev/null
+++ b/1panel/latest/docker-compose.yml
@@ -0,0 +1,19 @@
+version: "3"
+
+services:
+ ${CONTAINER_NAME}:
+ image: t8y2/dbx:${PANEL_APP_VERSION_TAG}
+ container_name: ${CONTAINER_NAME}
+ ports:
+ - ${PANEL_APP_PORT_HTTP}:4224
+ environment:
+ - DBX_PASSWORD=${PANEL_DB_PASSWORD}
+ volumes:
+ - ./data:/app/data
+ restart: unless-stopped
+ networks:
+ - 1panel-network
+
+networks:
+ 1panel-network:
+ external: true
diff --git a/1panel/logo.png b/1panel/logo.png
new file mode 100644
index 0000000000..c3b85de750
Binary files /dev/null and b/1panel/logo.png differ