A complete full-stack text editor with auto-suggestions powered by advanced DSA algorithms and a cute, pastel-themed React frontend.
- Trie Data Structure: Efficient storage and retrieval of dictionary words
- Levenshtein Distance Algorithm: Dynamic Programming implementation with keyboard-aware error weights
- QWERTY Graph: Precomputed distance matrix for keyboard layout errors
- Min-Heap: Fixed-size priority queue for Top-5 suggestions
- REST API: HTTP server exposing
/suggest?word=yourwordendpoint
- ContentEditable Editor: Smooth text input with caret tracking
- Floating Suggestions: Animated bubble positioned near cursor
- Multi-Page Support: Create and navigate between notes
- Cute Pastel Theme: Google Keep-inspired UI with soft colors
- Responsive Design: Works on desktop and mobile
- Trie Traversal with recursive DP row passing
- Levenshtein Distance with keyboard-aware costs
- BFS-based QWERTY Distance for typo detection
- Min-Heap Ranking for Top-K suggestions
- Real-time auto-suggestions as you type
- Keyboard navigation (arrow keys, Enter, Tab, Esc)
- Multi-page note management
- Smooth animations and transitions
- Responsive pastel-themed UI
- App background:
#F7F8FC - Editor card background:
#FFFFFF - Primary accent (buttons):
#B8C0FF - Secondary accent:
#FFD6E8 - Suggestion bubble:
#E8FFF5 - Primary text:
#3A3A3A - Secondary text:
#6B6B6B - Soft borders:
#E0E0E0
- Global fallback:
monospace - UI elements (buttons, labels):
"Candy Beans"/"Comic Neue"/"Baloo 2" - User input text:
"Courier New"/"Times New Roman"
cd c:\PROJECTS\DSA_EL
gcc -o spell_engine.exe spell_engine.c -lws2_32
./spell_engine.execd c:\PROJECTS\DSA_EL\frontend
npm install
npm startThe backend will be available at http://localhost:8080/suggest?word=yourword
The frontend will be available at http://localhost:3000 (or alternative port)
- GET
/suggest?word=YOURWORD - Returns JSON:
{ "suggestions": ["word1", "word2", ...] }
spell_engine.c: Complete C backend with Trie, DP, Heap, and HTTP serverallword.txt: Dictionary file with 89,000+ wordsfrontend/: React application with Tailwind CSS