What this doc covers:
- How to create a personalized Hacker News clone using Exa’s API.
- Steps to set up and run your own news site with custom prompts.
- Customization options for the site’s content, appearance, and deployment.

Getting Started
First, grab a free Exa API key by signing up here. You get 1000 free queries a month. Next, fork (clone) our template on Replit. Once you’ve forked the template, go to the lower left corner of the screen and scroll through the options until you see “Secrets” (where you manage environment variables like API keys).



How Exa works
In the index.js file (should be open by default), scroll to line 19. This is the brains of the site. It’s where we call the Exa API with a custom prompt to get back Hacker News-style content.- this gadget saves me so much time:
- i loved my wedding dress from this boutique:
- this video helped me understand attention mechanisms:
- this is a really exciting machine learning paper:
- here’s a delicious new recipe:
- this company just got acquired:
- here’s how the basketball game went: