Talk2DB is a smart, AI-powered automation tool built with Next.js that lets users interact with databases using natural language instead of complex queries.
Simply type prompts like:
βShow all users who published blogsβ
and Talk2DB = will automatically send User Promt + Connected DB's type + Schema to generate the corresponding database query, highlight it for review, and execute it safely β showing the results in a structured table.
- π¬ Natural Language Querying β Type what you want in plain English.
- π§ AI-Powered Query Generation β Automatically converts your prompt into a valid database query.
- π Safe Execution Layer β Only allows read-only operations.
- ποΈ My SQL Integration β Connect your My SQL database easily.
- ποΈ MongoDB Integration β Connect your MongoDB database easily.
- βοΈ Future-Ready β MySQL and other database support planned.
- π§Ύ Visual Output β See results in a clean, tabular format.
- π§ββοΈ User-Controlled β Review and run queries manually before execution.
project-root/
βββ app/ # App source code
β βββ api/
β β βββ gemini/ # Generate query
β β βββ mongodb/ # Fetch schema & execute Mongo queries (MQL)
β β βββ mysql/ # Fetch schema & execute SQL queries
β βββ components/ # Reusable UI components
β βββ connect/ # Database connection pages
β βββ quick-guide/ # Quick-guide page
βββ lib/ # Firebase configuration
βββ public/ # Static files
βββ redux-store/ # Dynamic state handling (authentication, DB Connection, Query)
βββ utilis/ # Raw database schema compression
βββ package.json # Dependencies & scripts
βββ README.md # Project documentation
Talk2DB ensures all database operations are read-only.
It blocks any write, update, or delete queries.
