Api to get related articles about Node.js in Hacker News.
HackerNews Node is a REST API built with NestJS that retrieves articles related to Node.js from Hacker News. It fetches and stores posts in a database via a refresh endpoint, keeping the data updated over time. The API includes JWT-based authentication, requiring a user account and access token to interact with most routes beyond the initial data population.
The project is documented through an OpenAPI/Swagger specification and includes a Postman collection for testing endpoints. It supports both Docker (via Docker Compose) and local development setups, with configuration handled through environment variables. Test coverage includes unit and end-to-end tests, and the project is built with TypeScript.
This is suited for developers looking for a source of Node.js-related discussion content from Hacker News to integrate into other applications, or for those examining it as a reference implementation of a NestJS-based REST API with authentication, database persistence, and CI/CD tooling (GitLab pipeline configuration is included).
It is built with NestJS and TypeScript, using GraphQL and Swagger specification.
You can run it via docker-compose (docker-compose up), or locally by installing dependencies with npm install and running npm run start:dev or start:prod.
Yes, all endpoints are documented at GET /api/docs using the OpenAPI Specification, and a Postman collection is also included in the /docs folder.
Yes, a user must be created to authenticate and generate an access token before interacting with most routes.
You call the POST /api/posts/refresh endpoint, which fills the posts table for the first time and keeps it updated periodically.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
Realtime financial news with sentiment and article content.
Search and retrieve news articles with full-text search, filters and cursor pagination.
Search for news from various sources.
Real-time Google News, SERP, and Web Scraping APIs. Extract structured public data from any news outlet or search engine at scale without blocks.
Provides news from inshorts.
Live stock market news with tagged tickers + sentiment and stats JSON API.