Inspiration

Most e-waste comes from devices that could have been repaired or reused. People don't know whether a repair is safe or worth the money, and they don't trust a stranger with their payment. ReLoop started as a group college assignment on e-waste. For this hackathon I turned it into a working AI + PayPal app, and I wrote all the code solo during the submission period.

What it does

ReLoop is an AI repair agent. You describe a broken device, or give the agent a goal and a budget, and it:

  • Diagnoses the device and rates severity and safety.
  • Blocks unsafe repairs. A high-risk device, such as one with a swollen battery, can never get a DIY guide. This is enforced in code, not just in the prompt.
  • Builds a quote through a tool-using agent with a visible trace of every step.
  • Waits for your approval. The agent cannot create a PayPal order without a single-use approval token.
  • Takes payment through PayPal. Payment is authorized at checkout and only captured when the owner confirms the repair. The technician is then paid with PayPal Payouts.
  • Builds trust. Each paid-out repair is added to the technician's verified profile, which exports as a PDF CV.

It also has recycling pickup booking, PayPal donations with a PDF certificate, and an impact dashboard.

How I built it

  • Next.js, TypeScript, Prisma with SQLite, hosted on Render.
  • Claude API for diagnosis and the agent, with tool definitions. create_paypal_order exists but is never offered to the model.
  • PayPal sandbox: Orders (authorize, then capture), Payouts and webhooks.
  • 269 automated tests, plus scripts that check the AI configuration and the guided demo tour.

Challenges

  • Making PayPal and AI depend on each other safely. An agent that can spend money needs hard limits. I enforced the safety gate and the approval token in code, so a prompt can't talk its way around them.
  • Authorize now, capture later. Holding the money until the owner confirms the repair meant handling the order lifecycle, webhooks and payout failures carefully.
  • Honest demos. The guided tour never calls PayPal and is labelled as simulated. The real PayPal clips were recorded separately.

What I learned

Guardrails belong in code, not in prompts. A payment flow that holds funds until the work is confirmed is what makes a stranger-to-stranger marketplace feel safe.

What's next

Real technician verification, parts sourcing, more device categories, and partnerships with local repair shops and recycling centres.

Notes for judges

  • The hosted demo uses scripted AI responses so it costs nothing to run. Live Claude mode is built in and needs an API key. [verify: say "tested" only if you ran live mode]
  • All payments use the PayPal sandbox. No real money moves.
  • Demo owner and technician accounts are shown on the login page.
  • Free hosting: the first page load can take up to a minute.
  • The video voiceover is AI-generated.

Built With

Share this project:

Updates

Submission history