Inspiration
The idea for BeforeYouRenew came from a simple problem I noticed with software subscriptions. When a business wants to reduce its expenses, one of the first things it considers is moving to a cheaper plan. But comparing prices doesn't tell you whether that plan can still support everything the team needs.
A plan might look affordable until someone discovers that scheduled reports, audit exports or additional user seats are no longer available. By then, the renewal decision may already have been made.
I wanted to build something that would help people check these things before paying, instead of finding out afterward.
That's how BeforeYouRenew started.
What it does
BeforeYouRenew helps businesses evaluate a SaaS subscription renewal based on their actual requirements, rather than just the features listed on a pricing page.
The user starts by describing what their team needs in plain English. Gemini analyzes those requirements and suggests the workflows that matter. The user can review the explanation and confirm which workflows are essential.
The application then runs a set of tests against the available plans and shows what works and what doesn't.
For the demonstration, I created a fictional reporting platform called Atlas Reports and a customer called Northstar Studio.
Northstar Studio currently uses the Scale plan, which costs $600 annually. The goal is to find a cheaper option without losing eight user seats, scheduled reporting or audit exports.
The Essential plan costs $144 but fails the required workflow checks. The Team plan costs $288 and passes them.
So instead of simply recommending the cheapest plan, BeforeYouRenew identifies Team as the lowest-cost option that satisfies the customer's requirements. In this example, that represents a $312 annual difference compared with Scale.
Once the user reviews the results and approves the renewal, the application connects to PayPal sandbox for checkout. The payment is verified on the server before the renewal is recorded.
How I built it
I built BeforeYouRenew using React, TypeScript and server-side APIs, with Cloudflare-compatible infrastructure and D1 for storing assessments and renewal information.
I used Google Gemini to interpret the customer's requirements because I wanted the application to understand what someone is trying to accomplish, rather than requiring them to manually select technical features.
One decision I made early was not to let AI make the final renewal or payment decision. Gemini helps identify requirements, but the actual workflow checks run through application code. The customer still has to review and approve the result.
For the workflow testing, I implemented functions that execute CSV exports, create scheduled-job records and generate audit exports. Each plan is evaluated against the same requirements so the comparison is consistent.
I integrated PayPal Orders v2 using the sandbox environment. The backend checks the order, payment amount, currency and capture details before marking the renewal as completed.
I also added automated tests for the renewal logic, payment verification and failure scenarios. GitHub Actions runs the project checks whenever code is pushed.
Challenges I faced
The most interesting challenge was making sure the AI's suggestions were supported by something the user could verify.
It's relatively easy to ask an AI model which subscription someone should choose. But I didn't want the application to recommend a plan just because its description sounded suitable. That's why I built the workflow rehearsal feature. It gives the customer a way to see the results instead of relying only on the model's response.
Another challenge came while testing the PayPal integration.
During one sandbox checkout, PayPal successfully captured the payment, but the application initially failed to recognize it as completed. The local renewal was still waiting for confirmation.
That made me look more closely at how payment systems should handle uncertain responses. I worked on the verification flow so the application could check the existing PayPal order and capture instead of attempting another payment unnecessarily.
I also spent time separating simulated actions from real sandbox operations. I wanted it to be clear when someone was exploring a plan and when they were actually approving a test checkout.
What I learned
This project gave me a better understanding of how AI can be used alongside normal application logic.
I learned that AI is useful for interpreting what a user wants, but important decisions still need clear rules, validation and human approval.
The PayPal integration also helped me understand why payment verification needs more attention than simply redirecting someone to checkout and waiting for them to return.
I spent quite a bit of time testing different scenarios, fixing issues and making the demo repeatable. Getting the complete flow working, from requirement analysis to a verified sandbox renewal, was the most satisfying part of building it.
What's next
Right now, BeforeYouRenew uses a fictional software provider and sample workflows. My next goal would be to integrate real SaaS platforms so businesses could check their existing plans and entitlements directly.
I'd also like to expand the workflow testing to cover more business applications and improve how the results are presented to users who aren't technical.
For payments, future work would include production-ready entitlement management, webhook processing, refunds and better operational monitoring.
BeforeYouRenew is still a prototype, but it demonstrates the approach I wanted to explore: helping customers understand what they can safely change before committing to another year of software spending.
The main idea is simple. A cheaper subscription is only a better deal if it still lets you do your work.
Built With
- cloudflare-d1
- cloudflare-workers
- css
- generative-ai
- github-actions
- google-gemini
- html
- javascript
- node.js
- paypal
- paypal-rest-api
- react
- sql
- typescript
- vite