A Cosmic JS Extension that allows you to pull in the top news from Hacker News and save your favorite stories to your Cosmic JS Bucket. Easily access your favorite stories via your own personal endpoint for use in any internet connected application. Oh and all story links open in a new browser window (which is nice). Forks welcome!
- The Algolia Hacker News API
- Create React App
- Semantic UI React
- Cosmic JS Extensions
- Cosmic JS NPM Module to save stories to your Bucket
It demonstrates how to connect your Cosmic JS Extension to third-party APIs to easily add content to your Cosmic JS Bucket.
- Log in to Cosmic JS and choose a new or existing Bucket to save your Hacker News stories.
- Go to Your Bucket > Extensions.
- Find the HN Story Saver Extension and click "Install".
git clone https://github.com/cosmicjs/hacker-news-top-stories
cd hacker-news-top-stories
yarn
npm start
Go to http://localhost:3000?bucket_slug=your-cosmic-js-bucket-slug