SWAYOM.AIv2.4
Data systems / Full stack● Active development

Original project / Swayom Sharma

AI DB Platform

Intelligent Database Management Console

Inspect the schema.
Understand the query.

A database-management console with PostgreSQL/MySQL adapter implementations, guarded SQL execution, schema inspection, background jobs, and configurable AI-assisted workflows.

  • TypeScript
  • Fastify
  • Prisma
  • PostgreSQL
  • BullMQ
  • Vite
Technical case studyReviewed 17 October 2026Static media / No hosted backend

01 / Genuine project captures

Inside AI DB Platform.
Evidence you can inspect.

Actual captures from the current local implementation. Select a view, then enlarge it to read the interface or response in full.

02 / Project overview

Inspect the schema.
Understand the query.

AI DB connects a dense database workspace to a Fastify service and database-adapter layer. The current frontend is a vanilla JavaScript/Vite application with shared state, not a React console.

The capture environment used a new PostgreSQL metadata database, isolated Redis, a read-only target connection and three authored product rows. A real SELECT through the PostgreSQL adapter returned those rows.

Several frontend screens retain prototype state and fixture metrics. The source-backed case study separates that interface work from operational query execution, and distinguishes optional model providers from the built-in template generator.

03 / Capabilities & evidence

Implemented work.
Clearly defined scope.

01PostgreSQL captured

Connection & schema services

PostgreSQL and MySQL adapter implementations provide connection tests, queries and introspection. Only PostgreSQL was exercised here; MongoDB, SQL Server and Oracle adapters are explicit stubs.

02Captured locally

Guarded SQL execution

The backend classifies SQL text with lexical/regular-expression checks, role and environment controls, confirmation gates, timeouts and row bounds. It is not a complete AST-based SQL security parser.

03Partial frontend / working API

Query Studio & actual result

The editor submits real SQL, but a missing renderCurrentView method prevented the results panel from refreshing in this build. A separate terminal capture shows the exact three rows returned by the real PostgreSQL API call.

04Mixed integration state

Schema & import workflows

Schema services introspect actual connected databases; the console also retains fixture fallback tables. Import and background-job code exists, while individual end-to-end workflows require configured workers.

05Templates / optional models

Configurable SQL assistant

The default BuiltIn provider generates templates. Gemini and OpenAI adapters require explicit configuration; no paid model call or universal dialect accuracy is claimed.

06Implemented in source

Background processing

BullMQ/Redis queue definitions, retries and job records support asynchronous work. A queue existing in source does not establish that every worker action is complete.

04 / Technical architecture

How the pieces connect.

  1. 01

    Vanilla JavaScript / Vite console

    The current SPA renders shared views and calls the backend client; some views retain prototype fixtures.

  2. 02

    Fastify / typed services

    Authentication, service checks, query classification and connection management handle API operations.

  3. 03

    Prisma metadata + Redis queues

    PostgreSQL stores platform records and encrypted connection credentials; BullMQ supports configured background jobs.

  4. 04

    Database adapters → target database

    Implemented PostgreSQL/MySQL adapters perform queries and introspection. The verified capture target is disposable PostgreSQL only.

A successful read of three authored rows was verified. UI charts, placeholder health labels, mock schema fallbacks and template AI output are not generalized into production functionality.

05 / Verified technology

The actual building blocks.

Frontend
Vanilla JavaScript · Vite · Tailwind CSS · Chart.js

The actual package uses ES modules and shared HTML renderers, not React.

API & records
TypeScript · Fastify · Prisma · PostgreSQL

Service modules coordinate platform metadata and query records.

Adapters
pg · mysql2 · AES-256-GCM credential helpers

Operational PostgreSQL/MySQL source; capture verifies PostgreSQL only.

Jobs & optional intelligence
Redis · BullMQ · built-in templates / Gemini / OpenAI

External models and worker workflows depend on configuration.

06 / Security & boundaries

Explicit safeguards.
Honest limits.

Controls described here are implementation details, not a blanket security certification.

  • Disposable target only

    The capture connects solely to a fresh local demo database. No customer rows, personal connection details or production services are used.

  • Guardrails with limits

    Read-only/environment checks, roles, row caps and destructive-operation confirmation exist. Lexical SQL checks are not a complete security boundary for arbitrary SQL.

  • Credential handling

    Connection passwords use AES-256-GCM helpers and sanitized projections. Deployment must replace development keys and review error/log output.

  • Production review remains

    JWT/RBAC and scoped lookups exist, but some routes have default-context or permission fallbacks. This showcase does not certify tenancy or internet-facing access control.

07 / Development status

Active development.
Known limitations, documented.

Reviewed the actual vanilla JavaScript frontend and TypeScript backend; README claims about React, universal engines or AST SQL validation are not substituted for source evidence.

Source baseline: 5ff8879 ↗. Source inspection, local demonstration and production verification are different evidence levels.

08 / Source references

Inspect the implementation.

Continue exploring

Built to be inspected.

Read the source, explore another project, or discuss the engineering.