Skip to content

Releases: ProjAnvil/Knot

v0.5.0

Choose a tag to compare

@HoweChen HoweChen released this 20 Aug 14:12

Highlights

🐳 Docker Compose deployment — one command brings up the full Knot stack with your choice of PostgreSQL or MySQL. The frontend is embedded into the backend binary at image build time, so a single container serves everything.

# PostgreSQL stack on http://localhost:3000
docker compose -f docker-compose.pg.yml up -d

# MySQL stack on http://localhost:3001
docker compose -f docker-compose.mysql.yml up -d

Both stacks share a single multi-stage image (knot-app:latest) defined in docker-compose.base.yml; database selection happens entirely at runtime through environment variables. Credentials default to knot/knot and can be overridden via a .env file. See the Docker Deployment section of the README for details.

What's Changed

Added

  • Multi-stage Dockerfile — bun builds the frontend, Go compiles the backend with the embedfrontend tag, and the final image is a minimal non-root Alpine runtime.

  • Compose stacks for PostgreSQL and MySQL with health checks, dependency ordering (depends_on: service_healthy), and persistent volumes (pgdata, mysqldata, knot-data).

  • Environment variable configuration — all database settings can now be overridden at runtime, which makes container and PaaS deployments configuration-file-free:

    Variable Config field
    KNOT_DATABASE_TYPE databaseType
    KNOT_SQLITE_PATH sqlitePath
    KNOT_POSTGRES_URL postgresUrl
    KNOT_MYSQL_URL mysqlUrl

Fixed

  • Cross-dialect table detection — database initialization probed for existing tables with a SQLite-only sqlite_master query, forcing a full AutoMigrate on every startup under PostgreSQL/MySQL. It now uses GORM's dialect-agnostic Migrator.HasTable.
  • PostgreSQL compatibility of ordering queries — 14 raw SQL fragments using backtick-quoted `order` (a reserved word) failed with syntax errors on PostgreSQL. All of them now use GORM clause builders, which quote identifiers per dialect. Verified end-to-end against real PostgreSQL 16 and MySQL 8 containers.

Documentation

  • Docker quick-start instructions added to the README (English and Chinese).
  • Environment variable reference added to the backend README.
  • Design spec and implementation plan included under docs/superpowers/.

Upgrade Notes

Existing binary and CLI installations are unaffected — when no KNOT_* environment variables are set, behavior is identical to previous releases.

Assets

Pre-built CLI binaries below embed the frontend and manage the server lifecycle (knot setup / knot start / knot stop). For Docker deployments, build from source with the Compose files instead.

Full Changelog: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@HoweChen HoweChen released this 23 May 09:13
80e7e0c

Knot Release v0.4.0

📦 下载 / Download

CLI 版本(包含前端界面)/ CLI Version (with embedded frontend)

  • macOS (Apple Silicon): knot-macos-arm64
  • macOS (Intel): knot-macos-amd64
  • Linux (AMD64): knot-linux
  • Windows (AMD64): knot-windows.exe

Server 版本(仅后端API)/ Server Version (API only)

  • macOS (Apple Silicon): knot-server-macos-arm64
  • macOS (Intel): knot-server-macos-amd64
  • Linux (AMD64): knot-server-linux
  • Windows (AMD64): knot-server-windows.exe

MCP Server 版本(AI 集成)/ MCP Server Version (AI Integration)

  • macOS (Apple Silicon): knot-mcp-macos-arm64
  • macOS (Intel): knot-mcp-macos-amd64
  • Linux (AMD64): knot-mcp-linux
  • Windows (AMD64): knot-mcp-windows.exe

📋 安装说明 / Installation

# macOS/Linux - 下载后添加执行权限
chmod +x knot-*

# 移动到系统路径(可选)
sudo mv knot-macos-arm64 /usr/local/bin/knot

# MCP Server - 配置 Claude Desktop
# 1. 下载对应平台的 knot-mcp 二进制
# 2. 添加执行权限: chmod +x knot-mcp-*
# 3. 在 Claude Desktop 配置中添加(参考 mcp-server/README.md)

✅ 校验和 / Checksums

请查看 checksums.txt 文件验证下载的完整性。


完整文档: https://github.com/ProjAnvil/knot

v0.3.1

Choose a tag to compare

@HoweChen HoweChen released this 21 May 06:42

Knot Release v0.3.1

✨ New Features

  • API Duplicate: Duplicate an API (with all parameters) within the same group via the sidebar three-dot menu

🔧 Improvements

  • Sidebar actions: Move share, duplicate, and delete actions from the API detail page to the sidebar three-dot menu
  • Type badge: Move HTTP/RPC type badge to the left of the endpoint line
  • Expand state persistence: Keep sidebar groups expanded after structural changes (duplicate, delete)
  • Route registration refactor: Extract shared SetupRoutes function to eliminate route duplication

🐛 Bug Fixes

  • Fix duplicate API returning 404 in CLI mode
  • Fix sidebar expand state lost after loadGroups unmounts the component

📦 Download

CLI Version (with embedded frontend)

  • macOS (Apple Silicon): knot-macos-arm64
  • macOS (Intel): knot-macos-amd64
  • Linux (AMD64): knot-linux
  • Windows (AMD64): knot-windows.exe

Server Version (API only)

  • macOS (Apple Silicon): knot-server-macos-arm64
  • macOS (Intel): knot-server-macos-amd64
  • Linux (AMD64): knot-server-linux
  • Windows (AMD64): knot-server-windows.exe

MCP Server Version (AI Integration)

  • macOS (Apple Silicon): knot-mcp-macos-arm64
  • macOS (Intel): knot-mcp-macos-amd64
  • Linux (AMD64): knot-mcp-linux
  • Windows (AMD64): knot-mcp-windows.exe

📋 Installation

# macOS/Linux - Add execute permission after download
chmod +x knot-*

# Move to system path (optional)
sudo mv knot-macos-arm64 /usr/local/bin/knot

# MCP Server - Configure Claude Desktop
# 1. Download the knot-mcp binary for your platform
# 2. Add execute permission: chmod +x knot-mcp-*
# 3. Add to Claude Desktop config (see mcp-server/README.md)

✅ Checksums

See checksums.txt to verify download integrity.


Full documentation: https://github.com/ProjAnvil/knot

v0.3.0

Choose a tag to compare

@HoweChen HoweChen released this 20 May 09:58

Knot Release v0.3.0

📦 下载 / Download

CLI 版本(包含前端界面)/ CLI Version (with embedded frontend)

  • macOS (Apple Silicon): knot-macos-arm64
  • macOS (Intel): knot-macos-amd64
  • Linux (AMD64): knot-linux
  • Windows (AMD64): knot-windows.exe

Server 版本(仅后端API)/ Server Version (API only)

  • macOS (Apple Silicon): knot-server-macos-arm64
  • macOS (Intel): knot-server-macos-amd64
  • Linux (AMD64): knot-server-linux
  • Windows (AMD64): knot-server-windows.exe

MCP Server 版本(AI 集成)/ MCP Server Version (AI Integration)

  • macOS (Apple Silicon): knot-mcp-macos-arm64
  • macOS (Intel): knot-mcp-macos-amd64
  • Linux (AMD64): knot-mcp-linux
  • Windows (AMD64): knot-mcp-windows.exe

📋 安装说明 / Installation

# macOS/Linux - 下载后添加执行权限
chmod +x knot-*

# 移动到系统路径(可选)
sudo mv knot-macos-arm64 /usr/local/bin/knot

# MCP Server - 配置 Claude Desktop
# 1. 下载对应平台的 knot-mcp 二进制
# 2. 添加执行权限: chmod +x knot-mcp-*
# 3. 在 Claude Desktop 配置中添加(参考 mcp-server/README.md)

✅ 校验和 / Checksums

请查看 checksums.txt 文件验证下载的完整性。


完整文档: https://github.com/ProjAnvil/knot

v0.2.0

Choose a tag to compare

@HoweChen HoweChen released this 02 Mar 07:48

Knot Release v0.2.0

📦 下载 / Download

CLI 版本(包含前端界面)/ CLI Version (with embedded frontend)

  • macOS (Apple Silicon): knot-macos-arm64
  • macOS (Intel): knot-macos-amd64
  • Linux (AMD64): knot-linux
  • Windows (AMD64): knot-windows.exe

Server 版本(仅后端API)/ Server Version (API only)

  • macOS (Apple Silicon): knot-server-macos-arm64
  • macOS (Intel): knot-server-macos-amd64
  • Linux (AMD64): knot-server-linux
  • Windows (AMD64): knot-server-windows.exe

MCP Server 版本(AI 集成)/ MCP Server Version (AI Integration)

  • macOS (Apple Silicon): knot-mcp-macos-arm64
  • macOS (Intel): knot-mcp-macos-amd64
  • Linux (AMD64): knot-mcp-linux
  • Windows (AMD64): knot-mcp-windows.exe

📋 安装说明 / Installation

# macOS/Linux - 下载后添加执行权限
chmod +x knot-*

# 移动到系统路径(可选)
sudo mv knot-macos-arm64 /usr/local/bin/knot

# MCP Server - 配置 Claude Desktop
# 1. 下载对应平台的 knot-mcp 二进制
# 2. 添加执行权限: chmod +x knot-mcp-*
# 3. 在 Claude Desktop 配置中添加(参考 mcp-server/README.md)

✅ 校验和 / Checksums

请查看 checksums.txt 文件验证下载的完整性。


完整文档: https://github.com/ProjAnvil/knot

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 17 Dec 10:12

Knot Release v0.1.0

📦 下载 / Download

CLI 版本(包含前端界面)/ CLI Version (with embedded frontend)

  • macOS (Apple Silicon): knot-macos-arm64
  • macOS (Intel): knot-macos-amd64
  • Linux (AMD64): knot-linux
  • Windows (AMD64): knot-windows.exe

Server 版本(仅后端API)/ Server Version (API only)

  • macOS (Apple Silicon): knot-server-macos-arm64
  • macOS (Intel): knot-server-macos-amd64
  • Linux (AMD64): knot-server-linux
  • Windows (AMD64): knot-server-windows.exe

MCP Server 版本(AI 集成)/ MCP Server Version (AI Integration)

  • macOS (Apple Silicon): knot-mcp-macos-arm64
  • macOS (Intel): knot-mcp-macos-amd64
  • Linux (AMD64): knot-mcp-linux
  • Windows (AMD64): knot-mcp-windows.exe

📋 安装说明 / Installation

# macOS/Linux - 下载后添加执行权限
chmod +x knot-*

# 移动到系统路径(可选)
sudo mv knot-macos-arm64 /usr/local/bin/knot

# MCP Server - 配置 Claude Desktop
# 1. 下载对应平台的 knot-mcp 二进制
# 2. 添加执行权限: chmod +x knot-mcp-*
# 3. 在 Claude Desktop 配置中添加(参考 mcp-server/README.md)

✅ 校验和 / Checksums

请查看 checksums.txt 文件验证下载的完整性。


完整文档: https://github.com/ProjAnvil/knot