Offset — Turn Everyday Purchases Into Positive Impact
Inspiration
We wanted to explore a simple question: What if giving back could become a natural part of everyday shopping?
People make purchases every day, whether they're ordering food, buying clothes, or booking travel. Many of those purchases have environmental or social impacts, but finding relevant causes to support often requires extra research and effort.
We built Offset to make charitable giving easier, more relevant, and more accessible. Instead of asking people to search for organizations themselves, Offset uses AI to connect purchases with meaningful causes and suggests a small donation during checkout.
Our goal wasn't to make people feel guilty about spending money. We wanted to give them an easy opportunity to make a positive difference.
What It Does
Offset is an AI-powered, purchase-linked donation experience built around PayPal checkout.
When a customer makes a purchase, Offset analyzes the product and recommends a relevant cause. For example:
- Air travel can be associated with carbon removal.
- Fast fashion can support textile recycling.
- Food delivery can support food banks.
- Single-use packaging can support ocean plastic cleanup.
The AI recommends a donation amount and explains why the cause is relevant.
Customers can accept, modify, or remove the suggested donation before completing checkout through PayPal Sandbox.
Offset also tracks donations through a ledger and provides an Impact dashboard where users can see their contributions over time.
Users can configure donation preferences, including a monthly donation cap, to stay in control of their spending.
How We Built It
We developed Offset as a full-stack web application using:
- Next.js, React, and TypeScript for the application and user interface.
- Tailwind CSS for styling and responsive design.
- Anthropic Claude for AI-powered purchase classification and donation recommendations.
- PayPal Sandbox APIs for checkout and payout workflows.
- PostgreSQL with Neon for storing users, purchases, preferences, donations, and payout records.
- Prisma ORM for database modeling and access.
- Render for deployment.
- Vitest and Playwright for automated testing.
We structured the application around a checkout workflow that connects purchase classification, donation approval, payment processing, and donation tracking.
Rather than immediately sending every individual donation to an organization, Offset records donations in a ledger and supports batching them into payouts.
We also added safeguards around payment capture, payout processing, and demo database resets to help maintain consistency between PayPal and our application.
Challenges We Faced
One of our biggest challenges was integrating AI recommendations with a real payment workflow.
Generating a donation suggestion was relatively straightforward, but making sure the recommendation, customer approval, PayPal checkout, and database records stayed consistent required much more planning.
We had to account for situations where customers closed PayPal popups, payment requests failed, or checkout operations were interrupted.
Another challenge was implementing donation batching and payout tracking. We needed to distinguish between donations recorded in our database and payouts actually processed through PayPal Sandbox.
Working collaboratively under a hackathon deadline also required us to coordinate changes across the frontend, backend, database, and payment integrations while keeping the application deployable.
What We Learned
This project helped us understand how AI can be integrated into a practical financial workflow rather than used as a standalone chatbot.
We learned more about PayPal's checkout and payout APIs, database transactions, payment state management, and the importance of handling failures safely.
We also gained experience collaborating through GitHub pull requests, reviewing each other's code, building automated tests, and deploying a full-stack application.
Most importantly, we learned that building a useful AI-powered product requires more than a good model response. The entire experience needs to be understandable, reliable, and give users control over important decisions.
What's Next for Offset
We see Offset as a starting point for making charitable giving more connected to everyday spending.
Future improvements could include integrating verified nonprofit organizations, supporting real donation disbursements, providing more personalized cause recommendations, and expanding the Impact dashboard with richer analytics.
We would also like to explore integrations with additional merchants and checkout platforms.
Our long-term vision is to make giving back something people can incorporate into their everyday purchases, one small contribution at a time.