A Simple Way to View Hive Notifications in Your Terminal

in Synergy Builders22 days ago

Hey everyone,

Today, I wanted to share another simple but handy tool I put together: a command-line script that fetches and displays your unread Hive notifications in a clean, table-based layout. Sometimes you just want a quick, no-frills way to see what's new without opening a full web frontend, and this little script does just that.

The Simple Notification Viewer

The script is written and designed to be as straightforward as possible. It of course uses my hive-nectar library to connect to the blockchain and the prettytable library to format the output nicely.

Here’s what the output looks like from the basic version of the script:

simple clean notifications

As you can see, it's nothing fancy, but it's a clear and concise way to get a summary of your latest mentions, replies, and other notifications.

How to Use It

I've added the script to my hivetools repository on GitHub, so it's easy for anyone to grab.

To use it, you'll need to set your POSTING_WIF as an environment variable (it derives the account_name) or edit the script to change the hard-coded account_name to your own Hive username. It's designed to be a simple starting point.

A Peek at What's Possible

Now, the version I've shared in the repo is intentionally basic. It's meant to be a foundation that others can easily understand and build upon.

To show you how cool you could make it with just a few extra features, here’s a peek at my own personal, more "spiffy" version of this tool:

Spiffy Coloured Output!

As you can see, I've added features like command-line arguments to specify the account and a limit, and even the ability to mark notifications as read directly from the terminal. The output is also a bit more polished using the Python rich library.

I'm sharing the simple version to give everyone a solid base to start from. Feel free to take it, modify it, and build your own "spiffy" version that fits your exact needs!

As always,
Michael Garcia a.k.a. TheCrazyGM

Sort:  

Definitely not a tool for everyone, but I definitely think it could be useful for someone, especially anyone wanting to learn how to deal with and access the notifications from the command line - such as an app developer.

Do you know if you are accessing these notifications the same way as apps like "peakd" do it? There has been a lot of talk recently in the core-dev chat about issues with how notifications are handled, and how HAF will or has changed them.

!PAKX
!PIMP
!PIZZA

View or trade PAKX tokens.

@ecoinstant, PAKX has voted the post by @thecrazygm. (1/2 calls)

Use !PAKX command if you hold enough balance to call for a @pakx vote on worthy posts! More details available on PAKX Blog.

I mean, I have discord open already, why would I also need alerts in a terminal window? :P

I am using KDE-plasma when on *nix (as I still use my OS for a lot of gaming), and it would be cool to have something like this as a desktop widget. Take me back to the days of IRC / RSS feeds being a static element on my desktop.

I like this, and I can definitely see its usefulness. I always have a browser and a terminal open, both with multiple tabs, so I just got accustomed to switching back and forth, but to do a quick check, this might indeed come in handy. Is it possible to respond to notifications with replies and upvotes this way too? 😁 🙏 💚 ✨ 🤙

That's the end goal of all these little apps, to learn enough to join them all together in one big TUI app.

Very cool, well I look forward to trying that out when you are able to put it all together. Terminal hiving sounds fun! 😁 🙏 💚 ✨ 🤙

I prefer getting my automatic notifications in Ecency. Why go the extra step?

Because, I spend 90% of my day in the terminal, to me opening the browser is the extra steps. 😅

Hahaha! And I spend all my time in Ecency, so everything else is extra.

for instance, how i read and upvoted your reply...

image.png

Thanks!

untitled.gif

My goal, is to replace everything I would need to use the browser for, first with decent looking cli apps, then eventually work then altogether into a TUI. I just prefer working in the terminal. That and just to learn more about the whole.

If you build them into a TUI I can see that being useful. Individually not as much. Most of my terminal is for automation.

If you use terminal so much, you using Hyprland?

Actually using qtile, too much of an old man to move to Wayland just yet. 😂

Don't feign Wayland, it's great. Especially with patches in the last 2 years. I use both KDE and Hyprland in Wayland.

image.png

You showed me yours, I'll show you mine. 😂

image.png

I'll give hyprland and sway a shot sometime, see how much of a headache it is (last time was a nightmare, but like you said, that actually was a few years ago)

It's come a long way as has Arch. It's so easy now.

Loading...
Loading...
Loading...

untitled.gif

🤣🤣🤣🤣🤣🤣

Loading...
Loading...
Loading...

PIZZA!

$PIZZA slices delivered:
@ecoinstant(1/20) tipped @thecrazygm

Come get MOONed!

Congratulations @thecrazygm! You received a personal badge!

You powered-up at least 100 HP on Hive Power Up Day! This entitles you to a level 3 badge
Participate in the next Power Up Day and try to power-up more HIVE to get a bigger Power-Bee.
May the Hive Power be with you!

You can view your badges on your board and compare yourself to others in the Ranking

Check out our last posts:

Hive Power Up Month Challenge - June 2025 Winners List
Be ready for the July edition of the Hive Power Up Month!
Hive Power Up Day - July 1st 2025

Congratulations @thecrazygm! You received a personal badge!

You powered-up at least 10 HIVE on Hive Power Up Day!
Wait until the end of Power Up Day to find out the size of your Power-Bee.
May the Hive Power be with you!

You can view your badges on your board and compare yourself to others in the Ranking

Check out our last posts:

Hive Power Up Month Challenge - June 2025 Winners List
Be ready for the July edition of the Hive Power Up Month!
Hive Power Up Day - July 1st 2025