👨‍💻 • CURL client for Hacker News 📰 📰

Overview

⚙️ Hkkr.in 🗞

The easiest way to get your daily hourly Hacker News dosage!

Uptime Robot status Uptime Robot ratio (7 days) GitHub GitHub stars
HKKRIN usage gif

UsageContributingToDo


HKKR.IN - cURL client for Hacker News | Product Hunt

Hkkr.in is a Curl client for Hacker News

I spend a lot of time in the terminal, and also lots of time on HN, so I made hkkr.in to make viewing HN in the terminal simple and accessible from any computer, not just ones that have HN CLI programs installed. I was inspired by the wttr.in which does a similar thing for the weather and for moon phases

If you want, you can donate to the project using the Sponsor button(at the top near the star and fork buttons), or by visiting this link. Tips will go towards hosting hkkr.in

Usage

Use curl hkkr.in/curlme to get similar info in the terminal

To get the top ten posts, run curl hkkr.in

A single result might look like this

1.  Bitwarden raises $100M
➥    ▴646 ➤ hkkr.in/32735479 (bitwarden.com)

It shows the title, votes, link to the discussion, and the domain of the url. Use the link on the bottom (hkkr.in/32735479) to visit that articles page on HN

You can pass some parameters to your request to alter the output(some parameter accept numbers as options, like curl hkkr.in/n10)

Parameter Function
n(number) Number of results to show(max 100)
m(number) Max width of titles
f(number) Url mode [0: hkkr.in, 1: HN, 2: Article Url]
a Show all stories(max 100)
h Show https:// in story urls
u Ignore user-agent

Contributing

Want to help out? If you have any ideas, bugs, or suggestions, please open an issue here

If you want to help develop the project, feel free to open a pull request. When you run npm start the program will listen on port 3050, which you can change with the PORT variable in app.js

I wrote most of the code here quickly and its not the greatest. I may come in and refactor some of it in the future.

ToDo

Some planned features

  • Check user agent to serve an html version in the browser
  • Option to disable ANSI escapes incase a terminal emulator doesent support them
  • Show date on posts(EG: 4 days ago)
  • Option to sort by date
  • Option to make hkkr.in/{ID} links go directly to url not discussion
// Thanks for using hkkr.in
You might also like...

Hacker Tools cross-platform desktop App, support windows/MacOS/LInux ....

Hacker Tools cross-platform desktop App, support windows/MacOS/LInux ....

Jan 8, 2023

HackFest is a 36-hour long hackathon wherein you have to put on your hacker hats and build anything that falls in either or both the domain of full-stack web development

HackFest is a 36-hour long hackathon wherein you have to put on your hacker hats and build anything that falls in either or both the domain of full-stack web development

HackFest is a 36-hour long hackathon wherein you have to put on your hacker hats and build anything that falls in either or both the domain of full-stack web development (the stack we learn in full-stack web developer roadmap on codedamn).

Jun 6, 2022

Look up a city and get back weather forecast for searched city and top News headline related to that city and an interactive map which shows the location of that city.

Look up a city and get back weather forecast for searched city and top News headline related to that city and an interactive map which shows the location of that city.

WeatheredVibes Description As a user I want to look up a city to get the current weather and suggested current news articles based on the location sea

Mar 12, 2022

Cloud Native, DevOps, GitOps, Open Source, industry news, culture, and the 'ish between.

Cloud Native, DevOps, GitOps, Open Source, industry news, culture, and the 'ish between.

DevOps'ish DevOps'ish is authored by Chris Short and Made in Michigan. What is DevOps? I'm glad you asked. Newsletter Writing Process Everyone needs a

Jan 12, 2022

Blog-webapp - A simple webapp prototype that serves tech news, blogs, and anything else a developer might want to learn or get help with

Blog-webapp - A simple webapp prototype that serves tech news, blogs, and anything else a developer might want to learn or get help with

Blog Web app A simple webapp prototype that serves tech news, blogs, and anythin

Nov 3, 2022

Gets news from liveuamap.com and sends it to a Discord webhook

Gets news from liveuamap.com and sends it to a Discord webhook

Jun 27, 2022

Market Watcher - a blog where you can inform yourself about the latest economic-related news

Market Watcher - a blog where you can inform yourself about the latest economic-related news

Aug 5, 2022

A web App built on NewsApi to display news category wise.

A web App built on NewsApi to display news category wise.

Newsmonk A Reactjs web App to get daily news including categories. Acknowledgements NewsApi Authors @0Pixel0 Contributing Contributions are always wel

Apr 26, 2022
Comments
  • Add option to show original HN links

    Add option to show original HN links

    It would be nice to have the original HN links. For example

    curk hkkr.in/o

    would return

    HKKR.IN/CURLME · Fri, 09 Sep 2022 09:29:30 GMT
    
    1.  What's SAP, and why's it worth $163B? (2020)
    ➥    ▴156 ➤ https://news.ycombinator.com/item?id=32774063 (retool.com)
    
    opened by eliseomartelli 1
  • Add HTTPS to make link clickable

    Add HTTPS to make link clickable

    image

    by default those https://hkkr.in links aren't clickable because they don't have the protocol - I added them so I can visit the page right from my terminal

    opened by reesericci 0
Owner
Ajith
Not another js dev... Rust, Web, Random Projects. CLI ❤️
Ajith
This is an unofficial front end for Hacker News, reminiscent of the Windows XP era Outlook email client on a Windows XP default desktop

Hacker XP Hacker News styled as the Windows XP Outlook email client. Try out Hacker XP here! Description This is an unofficial front end for Hacker Ne

null 19 Jul 12, 2022
Lets you add a character to Hacker News links to add social media and OpenGraph previews for sharing on things like Slack or Twitter.

news.ycombinator1.com Lets you add a character to Hacker News links to add social media and OpenGraph previews for sharing on things like Slack or Dis

Ian Langworth ☠ 38 Sep 18, 2022
A drop in replacement for Hacker News with support for dark mode and more.

Worker News A drop in replacement for Hacker News with support for dark mode, quotes in comments, user identicons and submission favicons. What's cool

Worker Tools 18 Dec 31, 2022
A Hacker News style forum, built on the Lens Protocol.

Refract A Hacker News style forum, built on the Lens Protocol This starter kit is composed of Next.js and Tailwind CSS, with RainbowKit, ethers, & wag

Miguel Piedrafita 65 Dec 2, 2022
swyx's hacker news chrome extension

Hacker News Extended This is an extension for Google Chrome that: displays the latest links from Y Combinator's Hacker News Offers a link for submitti

swyx 15 Jul 21, 2022
Tampermonkey script which adds the ability to add a user-defined label/tag/flair on a user, shown throughout Hacker News.

Hacker News User Tags Hacker News User Tags is a Tampermonkey userscript which allows the user to associate a custom coloured label/tag on usernames t

Lachlan McDonald 2 Oct 7, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
News API Wrapper for Violetics API News

News API Wrapper for Violetics API News

Violetics 3 Mar 23, 2022