SnapChoice Premium โ Smart Decision Helper
SnapChoice Premium is a lightweight decision-support web application that helps users make better everyday decisions using a transparent weighted scoring model. It compares multiple options based on urgency, importance, and difficulty, then produces an explainable recommendation with confidence metrics.
Built as a fast, dependency-free frontend project for hackathon use and real-world practicality.
๐ Features
Multi-criteria decision scoring (Urgency, Importance, Difficulty)
Weighted SnapScore formula
Deterministic tie-breaker logic
Confidence index based on score gap
Full score breakdown table
Visual comparison bars
Human-readable reasoning output
Shareable decision links (URL state encoding)
Recent decision history (localStorage)
Demo scenario loader
Responsive UI with dark mode support
No external JS frameworks
๐ง Scoring Model
The SnapScore is computed using:
0.35 ๐ + 0.40 ๐ผ + 0.25 ( 11 โ ๐ท ) Score=0.35U+0.40I+0.25(11โD)
Where:
U = Urgency (1โ10)
I = Importance (1โ10)
D = Difficulty (1โ10, inverted)
Tie-breaking priority:
Higher Importance โ Higher Urgency โ Lower Difficulty
๐ Tech Stack
HTML5
CSS3 (Glassmorphism + CSS variables)
Vanilla JavaScript (ES6+)
Vite (dev build tool)
localStorage persistence
Base64 URL fragment state sharing
Using Vite:
npm install npm run dev
Then open the local dev URL shown in the terminal.
Or open index.html directly if using the static build.
๐ฆ How It Works
Enter a decision context
Add 2โ5 options
Rate urgency, importance, difficulty
Run analysis
View ranked results, confidence, and reasoning
Share or save decision state
๐งช Reliability Features
Input validation and trimming
Numeric clamping and NaN protection
Near-tie detection
Safe URL decode with error handling
History size limits
๐ฎ Future Improvements
Adjustable weighting modes
Additional decision factors
Advanced visual analytics
Optional AI-generated reasoning layer
๐ License
MIT License โ free to use and modify.