Inspiration People are bad at predicting how a big decision will feel, and someone has usually already made the same choice. I wanted a place where you ask what you’re deciding and see what happened to people who went through it, with proof of where the answer came from.
What it does You type a question into a simple void on the landing page. Hindsight searches real public posts, shows the best matches, and links every result to the original post and to a saved raw record so you can verify it. A second side, Hindsight Business, helps you find co-founders and partners.
How I built it The app is built with Next.js and TypeScript, styled with Tailwind, with Supabase (Postgres) as the database. Live research pulls from the Hacker News and Stack Exchange APIs and saves each result to the database. Charts use Recharts and animations use Framer Motion. OpenAI is optional and only adds a cited summary.
What I learned
Showing the source of every answer builds more trust than the answer itself. Public APIs differ a lot. Some are open, and some, like Reddit, block server requests. Small database details matter, like function order and where a limit can go.
Challenges
Reddit blocked live requests, so I used sources that allow them. My database setup failed on two SQL errors that I had to track down. Data from the database and the code used different field names, so I had to match them. Making every result verifiable meant storing the raw data and linking back to it.
Built With
- css
- framer
- next.js
- react
- recharts
- sql
- supabase
- tailwind
- typescript
