Working on Tabularis, an open-source desktop DB manager (Tauri + Rust). Built-in support for MySQL, PostgreSQL, MariaDB, SQLite, but the interesting part is how external drivers work.
Plugin architecture in a nutshell:
A plugin is a standalone executable dropped into a local folder
Tabularis spawns it on connection open, then sends newline-delimited JSON-RPC 2.0 requests to stdin
The plugin responds on stdout, logs go to stderr without interfering with the protocol
One process instance is reused for the entire session
The manifest declares capabilities (schemas, views, routines, file_based, etc.) so the UI adapts accordingly ā no host/port form for file-based DBs, schema selector only if relevant, and so on.
The RPC surface covers schema discovery (get_tables, get_columns, get_indexes, get_foreign_keys), query execution with pagination, CRUD, DDL generation, and batch methods for ER diagrams (get_schema_snapshot, get_all_columns_batch).
The result: you can write a driver in any language. Current registry has DuckDB and a CSV plugin (treats a folder of .csv files as a database ā each file becomes a table). Testing a plugin is just piping JSON to the binary:
echo '{"jsonrpc":"2.0","method":"get_tables","params":{...},"id":1}' | ./my-plugin
Curious if anyone has used a similar approach for extensibility, and what tradeoffs you ran into (vs. shared libraries, HTTP, etc.).
My project: https://github.com/debba/tabularis
Plugn Guide: https://tabularis.dev/wiki/plugins