Free and Open Source Alternative to Splitwise. Share expenses with your friends and family.
Find a file
2024-12-29 12:37:10 +01:00
.devcontainer Add devcontainer configuration for codespace support (#138) 2024-04-13 12:57:47 -04:00
.github GitHub Action config: clean up 2024-12-29 12:26:07 +01:00
messages Put locale labels outside of translations 2024-12-07 11:37:39 -05:00
prisma add group information field to group settings and Information tab (#164) 2024-08-02 12:03:36 -04:00
public PWA 2023-12-10 12:04:15 -05:00
scripts Use unique name for postgres container (#171) 2024-08-02 10:58:33 -04:00
src Fix destructive color in dark mode (Fixes #268) 2024-12-07 12:14:08 -05:00
.env.example Feature: Default currency symbol (#259) 2024-12-07 11:07:54 -05:00
.eslintrc.json Initial commit from Create Next App 2023-10-27 16:10:10 -04:00
.gitignore Optimize docker image size (#91) 2024-02-14 10:18:30 -05:00
.prettierignore Add GitHub actions 2024-01-16 13:55:34 -05:00
.prettierrc First version 2023-12-05 17:39:05 -05:00
components.json Group expenses (#48) 2024-01-17 09:42:00 -05:00
compose.yaml Production target for Dockerfile (#57) 2024-01-28 19:30:26 -05:00
container.env.example Remove varianle NEXT_PUBLIC_BASE_URL 2024-01-19 12:03:16 -05:00
Dockerfile fix Dockerfile (#206) 2024-10-14 19:11:50 -04:00
jest.config.ts Fix amount preview for scanned receipts (#227) 2024-09-28 18:39:01 -04:00
LICENSE README 2023-12-11 11:39:04 -05:00
next.config.mjs Internationalization + Finnish language (#181) 2024-08-02 11:26:23 -04:00
package-lock.json Add tRPC, use it for group expenses, balances and information page (#246) 2024-10-19 17:42:11 -04:00
package.json Add tRPC, use it for group expenses, balances and information page (#246) 2024-10-19 17:42:11 -04:00
postcss.config.js Initial commit from Create Next App 2023-10-27 16:10:10 -04:00
README.md Automatic category from expense title (#80) 2024-02-04 12:23:11 -05:00
reset.d.ts First version 2023-12-05 17:39:05 -05:00
tailwind.config.js Add donation button (closes #40) 2024-01-14 11:43:48 -05:00
tsconfig.json Migration script, improvements in expenses list 2023-12-08 14:56:51 -05:00

Spliit

Spliit is a free and open source alternative to Splitwise. You can either use the official instance at Spliit.app, or deploy your own instance:

Deploy with Vercel

Features

  • Create a group and share it with friends
  • Create expenses with description
  • Display group balances
  • Create reimbursement expenses
  • Progressive Web App
  • Select all/no participant for expenses
  • Split expenses unevenly (#6)
  • Mark a group as favorite (#29)
  • Tell the application who you are when opening a group (#7)
  • Assign a category to expenses (#35)
  • Search for expenses in a group (#51)
  • Upload and attach images to expenses (#63)
  • Create expense by scanning a receipt (#23)

Possible incoming features

  • Ability to create recurring expenses (#5)
  • Import expenses from Splitwise (#22)

Stack

Contribute

The project is open to contributions. Feel free to open an issue or even a pull-request!

If you want to contribute financially and help us keep the application free and without ads, you can also:

Run locally

  1. Clone the repository (or fork it if you intend to contribute)
  2. Start a PostgreSQL server. You can run ./scripts/start-local-db.sh if you dont have a server already.
  3. Copy the file .env.example as .env
  4. Run npm install to install dependencies. This will also apply database migrations and update Prisma Client.
  5. Run npm run dev to start the development server

Run in a container

  1. Run npm run build-image to build the docker image from the Dockerfile
  2. Copy the file container.env.example as container.env
  3. Run npm run start-container to start the postgres and the spliit2 containers
  4. You can access the app by browsing to http://localhost:3000

Opt-in features

Expense documents

Spliit offers users to upload images (to an AWS S3 bucket) and attach them to expenses. To enable this feature:

  • Follow the instructions in the S3 bucket and IAM user sections of next-s3-upload to create and set up an S3 bucket where images will be stored.
  • Update your environments variables with appropriate values:
NEXT_PUBLIC_ENABLE_EXPENSE_DOCUMENTS=true
S3_UPLOAD_KEY=AAAAAAAAAAAAAAAAAAAA
S3_UPLOAD_SECRET=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
S3_UPLOAD_BUCKET=name-of-s3-bucket
S3_UPLOAD_REGION=us-east-1

You can also use other S3 providers by providing a custom endpoint:

S3_UPLOAD_ENDPOINT=http://localhost:9000

Create expense from receipt

You can offer users to create expense by uploading a receipt. This feature relies on OpenAI GPT-4 with Vision and a public S3 storage endpoint.

To enable the feature:

  • You must enable expense documents feature as well (see section above). That might change in the future, but for now we need to store images to make receipt scanning work.
  • Subscribe to OpenAI API and get access to GPT 4 with Vision (you might need to buy credits in advance).
  • Update your environment variables with appropriate values:
NEXT_PUBLIC_ENABLE_RECEIPT_EXTRACT=true
OPENAI_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX

Deduce category from title

You can offer users to automatically deduce the expense category from the title. Since this feature relies on a OpenAI subscription, follow the signup instructions above and configure the following environment variables:

NEXT_PUBLIC_ENABLE_CATEGORY_EXTRACT=true
OPENAI_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX

License

MIT, see LICENSE.