Decision.io is an intelligent web application that helps users make better decisions using AI and probability theory. It guides users through a structured decision-making process to determine whether they should explore new options or stick with familiar choices.
- AI-powered decision analysis
- Probability-based recommendations
- Personalized suggestions based on user inputs
- Interactive multi-step interface
- Statistical analysis of decision factors
- React (TypeScript)
- CSS for styling
- Axios for API calls
- Node.js with Express
- Google Generative AI (Gemini)
- CORS for cross-origin requests
frontend/ ├── src/ │ ├── components/ │ │ └── Home.tsx │ ├── component-css/ │ │ └── Home.css │ ├── App.tsx │ ├── index.tsx │ └── ... (other React files) backendII/ ├── server.js └── package.json
-
Clone the repository git clone https://github.com/yourusername/decision-io.git cd decision-io
-
Install frontend dependencies cd frontend npm install
-
Install backend dependencies cd ../backendII npm install
-
Create a .env file in the backend directory with your Google API key: API_KEY=your_google_api_key_here
-
Start the backend server cd backendII npm start
-
Start the frontend development server cd ../frontend npm start
-
Access the application at http://localhost:3000
- Home Component: Main interface for user interaction
- CSS Styling: Custom styles for the application
- Server: Handles API requests and AI processing
-
User inputs a decision category
-
AI generates specific questions based on the category
-
User answers the questions
-
System calculates exploration probability using the formula: P(E) = T / (T + k) Where:
- T = Number of times user chose familiar option
- k = Exploration adjustment constant
-
AI generates personalized recommendations based on the analysis
- POST /api/category: Generates decision-specific questions
- POST /api/results: Processes user inputs and returns decision analysis
- Fork the repository
- Create a new branch (git checkout -b feature/YourFeatureName)
- Commit your changes (git commit -m 'Add some feature')
- Push to the branch (git push origin feature/YourFeatureName)
- Open a pull request
MIT License
- Google Generative AI for the AI capabilities
- React and Node.js communities for the development frameworks