Feat/byod core - #3
Merged
Merged
Conversation
- Add encryption utilities. - Create basic connection registry. - Add API to update external config. - Note: GC and Middleware pending.
Backend: - Added registry.js for active database connection caching. - Implemented GC.js to auto-close idle connections (>20m). - Updated connectionManager to use registry for connection pooling. - Initialized Garbage Collection in app.js. Frontend: - Added ExternalConfigForm in ProjectSettings for BYOD setup. - Users can now configure/update their own MongoDB and Storage details.
Implemented Bring Your Own Database (BYOD) with dynamic MongoDB connections Added external DB URI configuration and connection pooling with GC Introduced backend utilities for connection management and lifecycle control Refreshed UI with Supabase-inspired Core Black theme across all pages Added ProjectNavbar and BYOD settings UI Fixed critical layout and crash issues; standardized global card styles
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Apr 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 PR Description: Core BYOD Support & Smart Connection Management
Summary
Is PR mein BYOD (Bring Your Own Database) ka core logic implement kiya gaya hai. Ab users apne external MongoDB Atlas ya kisi bhi public URI ko connect kar sakte hain. Iske liye ek Smart Connection Manager aur Dynamic Model Injection system banaya gaya hai jo multiple database connections ko efficiently handle karta hai.
Key Changes
1. Smart Connection Manager (
utils/connectionManager.js)lastAccessedtimestamp add kiya gaya hai taaki inactive connections ko clean up kiya ja sake.2. Dynamic Model Injection (
utils/injectModel.js)WeakMapka use karke connections ke basis par models ko cache kiya gaya hai, jisse different projects ke beech model names conflict nahi karenge.3. Refactored Data Controller (
controllers/data.controller.js)insertData,getAllData,updateSingleData,deleteSingleDoc) ab dynamic models aur connections ka use karte hain.databaseUsedcalculate aur update hota hai.4. Security & Fault Tolerance
updateExternalConfigmein validation lagaya gaya hai jolocalhostaur private IP ranges ko block karta hai.app.jsmein JSON parsing errors aur invalid syntax ke liye specific 400 Bad Request handler add kiya gaya hai.Technical Details
Verification / Testing