Coder Social home page Coder Social logo

arpitbbhayani / obsidian-hackernews Goto Github PK

View Code? Open in Web Editor NEW
67.0 3.0 5.0 11.16 MB

Periodically fetches and displays top stories from HackerNews.

License: MIT License

TypeScript 79.51% JavaScript 6.81% Svelte 13.68%
obsidian-plugin obsidian hackernews ycombinator ycombinator-hacker-news hacktoberfest

obsidian-hackernews's Introduction

Obsidian HackerNews Plugin

Obsidian HackerNews GitHub tag (Latest by date) GitHub all releases

The plugin periodically fetches and displays top stories from HackerNews in an Obsidian pane. Some of the best stories, blogs, news, and resources are shared on HackerNews, and this plugin helps stay updated while using Obsidian.

Features

  • Periodically fetches a random top story from HackerNews.
  • You can save the story as a note allowing you to revisit it again.

Installation

Through Community Plugin

  • Open Settings (default: ctrl + ,),
  • Open Community Plugins from the left sidebar,
  • On the right pane, click Browse, this will open up all the Community Plugins
  • Search for HackerNews
  • Install the Plugin by clicking Install
  • Enable to Plugin by clicking Enable

Enabling the plugin

  • Open the Command Palette (default: ctrl + p),
  • Search for Open HackerNews and run the command.
  • You will see that a new View appears in the right Sidebar of Obsidian.
  • Drag and drop like any other pane and power-up your Obsidian.

Is this plugin for you?

This plugin is for you if you use Obsidian and

  • are a passionate engineer
  • want to discover amazing articles, resources, and projects
  • want to stay updated with the happenings in the tech world

Why I created this plugin?

I love reading technical articles and stay updated with the latest happenings in the tech world, and I find HackerNews ideal for this. I have read some of the best articles and found amazing open source libraries through it, and hence I always like to keep a clock eye on HackerNews.

On Mac, I used YCombinator Plugin on BitBar, which is very similar and shows one top story from HackerNews in the top menu bar. If the title is enticing enough, I can always learn more about it by clicking the item. This is a great way for me to discover the best resources out there.

Recently, I switched to a Windows machine and found it not having a similar utility; plus, writing a widget for Windows is a mess. When I discovered Obsidian, I found myself using it quite frequently. So I thought of creating a plugin similar to the YCombinator Plugin to fetch random top story from HackerNews and show it to me in the side pane.

This is how this Plugin was conceptualized, and now my Obsidian workspace looks like this.

Obsidian Screenshot for HackerNews Plugin

Privacy

This plugin makes calls to the following APIs to fetch the top stories from HackerNews

The API calls are mere GET calls that do not pass any client-side information through the API to hacker-news.firebaseio.com.

About me

Hello, I am Arpit Bhayani - a CS Engineer, Educator, and a Polymath. I love everything around Computer Science, Programming, Mathematics, and Art. You can find me on Twitter, tweeting mostly about nerdy stuff.

In January 2020, I started my newsletter, where I write and share an essay about Distributed Systems, System Design, Programming languages internals, and deep dives on some super-clever algorithms. The newsletter currently has close to 2000+ subscribers.

I have been running a niche Cohort-based Course on System Design to help engineering become better at designing scalable, fault-tolerant, and highly available systems.

You can choose to support me in everything I do by sponsoring this plugin.

Local Plugin Development

  • Clone the repository in .obsidian/plugins directory
  • In the cloned directory run, npm install
  • Run npm run dev to start a dev server watching the source files
  • Restart the Obsidian and now you would see HackerNews plugins under Installed Community Plugins
  • Switch on to enable the plugin
  • When you are actively developing and want to see your changes, just turn off and on the Plugin

obsidian-hackernews's People

Contributors

arpitbbhayani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

obsidian-hackernews's Issues

[Bug] Unable to save HN topics with special characters in it

Clean the title and then save the file.

Uncaught (in promise) Error: File name cannot contain any of the following characters: * " \ / < > : | ?
    at t.checkPath (app.js:1)
    at t.<anonymous> (app.js:1)
    at app.js:1
    at Object.next (app.js:1)
    at app.js:1
    at new Promise (<anonymous>)
    at o (app.js:1)
    at t.create (app.js:1)
    at APIManager.eval (eval at <anonymous> (app.js:1), <anonymous>:698:29)
    at Generator.next (<anonymous>)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.