{"id":27363665,"url":"https://github.com/kushagrakumar04/expense-splitter","last_synced_at":"2026-05-03T11:36:41.791Z","repository":{"id":287533369,"uuid":"964730027","full_name":"KushagraKumar04/Expense-Splitter","owner":"KushagraKumar04","description":"Expense Splitter is a web app to manage and split group expenses easily. Add expenses, choose split types (equal, amount, shares, or percent), and view real-time balances and settlements. Built with HTML, CSS, Bootstrap, and JavaScript.","archived":false,"fork":false,"pushed_at":"2025-04-12T09:52:05.000Z","size":303,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T10:33:35.824Z","etag":null,"topics":["bootstrap","css","html","javascript"],"latest_commit_sha":null,"homepage":"https://expense-splitter-pearl.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KushagraKumar04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-11T17:31:44.000Z","updated_at":"2025-04-12T10:19:55.000Z","dependencies_parsed_at":"2025-04-12T10:43:56.163Z","dependency_job_id":null,"html_url":"https://github.com/KushagraKumar04/Expense-Splitter","commit_stats":null,"previous_names":["kushagrakumar04/expense-splitter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KushagraKumar04%2FExpense-Splitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KushagraKumar04%2FExpense-Splitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KushagraKumar04%2FExpense-Splitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KushagraKumar04%2FExpense-Splitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KushagraKumar04","download_url":"https://codeload.github.com/KushagraKumar04/Expense-Splitter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665156,"owners_count":21142118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","css","html","javascript"],"created_at":"2025-04-13T04:32:23.410Z","updated_at":"2025-10-30T01:39:39.790Z","avatar_url":"https://github.com/KushagraKumar04.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Expense Splitter\n\n## Overview\nThe **Expense Splitter** is a web-based application designed to help users easily split expenses among a group of people. This tool simplifies expense management by allowing users to enter expenses, select different split methods, and calculate balances and settlements efficiently.\n\n## Features\n- **User-Friendly Interface**: Leveraging Bootstrap for a clean, responsive design .\n- **Multiple Split Types**:\n  - Equal sharing among all participants.\n  - Unequal distribution by specific amounts.\n  - Division by shares or percentages.\n- **Real-Time Calculations**:\n  - Track remaining amounts or percentages while entering details.\n  - Instantly displays the balance for each participant.\n- **Settlement Details**:\n  - Automatically calculates and displays who owes whom and how much, simplifying the payment settlement process.\n\n## How to Use\n1. **Input Participant Names**:\n   - Enter the names of participants in a comma-separated format in the **Names** field.\n2. **Add an Expense**:\n   - Provide the **description**, select the **payer**, and enter the **total amount**.\n   - Choose a **split type** from the following options:\n     - **Equally**: Distribute the amount evenly.\n     - **Unequally (by Amount)**: Enter specific amounts for each participant.\n     - **By Shares**: Allocate shares that will determine each person's portion.\n     - **By Percentages**: Define a percentage for each participant.\n3. **Calculate Balances**:\n   - Click the **Calculate Balances** button to see the updated balances for each participant.\n4. **View Settlements**:\n   - Review the **Settlement Details** section to know who needs to pay whom and how much.\n\n## Installation\n1. **Download or Clone** this repository to your local system.\n2. Open the `index.html` file in your preferred web browser.\n\n## File Structure\n```plaintext\nexpense-splitter/\n├── READ.md\n├── index.html\n├── css/\n│   └── styles.css\n├── js/\n│   ├── ui.js\n│   ├── logic.js\n│   ├── export.js\n│   └── darkMode.js\n└── assets/\n    └── icons/\n        ├── edit.png\n        └── delete.png\n```\n\n## Code Highlights\n- **HTML** for structure, with **Bootstrap** for a responsive and polished design.\n- **JavaScript** handles dynamic interactions, such as updating the payer options, real-time calculation of amounts and percentages, and generating the settlement details.\n\n### Key JavaScript Functions\n- **`updatePayerOptions()`**: Updates the list of payers based on entered names.\n- **`showSplitDetails()`**: Displays appropriate input fields for the selected split type.\n- **`addExpense()`**: Adds an expense to the table and updates the list of expenses.\n- **`calculateBalances()`**: Calculates and displays the balances for each participant and generates settlement details to show who needs to pay whom.\n\n## Example Use Case\nImagine a trip where three friends, Alice, Bob, and Charlie, share various expenses (e.g., meals, transport, accommodation). Using this tool, they can:\n- Input expenses and specify the payer for each expense.\n- Choose how to split each expense (e.g., equally, by shares).\n- View the balance summary and determine who owes whom.\n\n## Screenshots\n\u003cimg width=\"1680\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ca617c59-7968-4f5d-a9c4-97f3671b3fb6\"\u003e\n\u003cimg width=\"1680\" alt=\"image\" src=\"https://github.com/user-attachments/assets/cc79ddca-77b6-470d-bd0d-6806e74cff62\"\u003e\n\n\n## Technologies Used\n- **HTML5** and **CSS3** for structure and styling.\n- **Bootstrap 4** for a responsive and modern UI.\n- **JavaScript** and **jQuery** for client-side logic and interactivity.\n\n## License\nThis project is licensed under the Apache License. Feel free to use and modify it as per your requirements.\n\n## Contact\nFor further questions or feedback, please contact [kushagrakumar110@gmail.com](mailto:kushagrakumar110@gmail.com).\n\n---\n\nEnjoy using the **Expense Splitter** to simplify your expense management and ensure fair sharing among participants!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkushagrakumar04%2Fexpense-splitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkushagrakumar04%2Fexpense-splitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkushagrakumar04%2Fexpense-splitter/lists"}