SteemStalker - RealTime Steemit User Follow

in utopian-io •  6 years ago  (edited)

SteemStalker - Follow your close friends in real-time

What is SteemStalker?

SteemStalker is an open-source one-page tool that allows the user to follow her/his friends and/or self-activities realtime.
With SteemStalker, the user can follow :

  • Upvotes
  • Downvotes
  • Posts and Comments
  • Transfers ( to and from )
    at the same time.

The tool informs the user with an alert window as each activity occurs.
There is also a log div where the user can scroll through the occured activities.

Also, in the footer section, the user can follow all the transfer activities occurring in the Steem blockchain as real-time.

Features

  • Entry : Names to be followed

image.png

To start, the user has to enter the names to be followed.
Also, with each entry, the user should define the parameters to be followed by ticking the check-boxes.
image.png

The user can add as many names as he/she requests.
Pressing "ADD USER" button will clear the entry field for the next entry and write the name and parameter preferences to the left div.

image.png

To undo the selection, the user can use the "CLEAR" button at the bottom of the div.
This clears all the arrays and the div so the user can restart selecting.

  • Starting the follow

As the user press "START" button after selecting the names, the tool will start showing all the transfer information in the Steem blockchain.

image.png

This is to show both the transfer occuring and also to show that tool is alive.

As the tool reads an action in the Steem blockchain related with the defined names, an alert box will open and inform the user.

image.png

Also the occured action will be recorded to the right div as log.

image.png

Technology used

SteemStalker is a single page HTML file and JavaScript using Steem.Js (GitHub) libraries.
The complete source code can be forked from the repo: https://github.com/firedreamgames/steemstalker

The heart of the script is the asynchronous Steem.Js function:

var release = steem.api.streamTransactions('head', function(err, result)

This allows us to read the blockchain data in realtime.

Then the data is compared with the following criteria:

if (result.operations["0"]["0"] == 'transfer') \\is the operation a transfer?

if (the_user.includes(result.operations["0"]["1"].to)) \\ is the transfer made to the selected name?

if (the_user.includes(result.operations["0"]["1"].from)) \\ is the transfer made from the selected name?

if (result.operations["0"]["0"] == 'vote') \\is the operation a vote?

if ((the_user.includes(result.operations["0"]["1"].author)) && (result.operations["0"]["1"].weight > 0)) \\ is the operation an upvote given to the selected name?

if ((the_user.includes(result.operations["0"]["1"].author)) && (result.operations["0"]["1"].weight < 0)) \\ is the operation a downvote given to the selected name?

if ((the_user.includes(result.operations["0"]["1"].voter)) && (result.operations["0"]["1"].weight > 0)) \\ is the operation an upvote given by the selected name?

if ((the_user.includes(result.operations["0"]["1"].author)) && (result.operations["0"]["1"].weight < 0)) \\ is the operation a downvote given by the selected name?

if (result.operations["0"]["0"] == 'comment') {

if (the_user.includes(result.operations["0"]["1"].author)) \\ did the selected name post or comment?

Links

Contact

Proof of Work

image.png



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Nice work. I was working on a similar thing last week for my application SteemDesk. Will have a look at your code now. Thanks for sharing.

Lol, I was also thinking same application with the same name. I'm in the line for looking into your code :)
I was looking for solutions just bookmarked chainsync (https://github.com/aaroncox/chainsync) didn't want to dive into python, yet.

Oh, you mean you wanted to name your app SteemDesk (or SteemStalker) as well? I registered the domain, launched the app, and then realized that the account @steemdesk was taken here on Steemit. Do you own the @steemdesk account?

Yes, I would love to get your feedback on my code.

I should've slept 4 hours ago.. I misclicked the reply, I was talking about SteemStalker. Sorry for the confusion.

No worries mate. Have good night then :)

I would be happy if it helps some way.
This is the main idea of open-source :)
FD.

Hey @firedream I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Utopian Witness!

Participate on Discord. Lets GROW TOGETHER!

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Thank you @utopian-io

You have a minor misspelling in the following sentence:

This is to show both the transfer occuring and also to show that tool is alive.
It should be occurring instead of occuring.

Hey, that's cute :)

who needs Grandma Leigh if you have Grandma Nazi ;-)
cute indeed!

I heard about steemstalker in a server yesterday - looks pretty cool and something I would have a bit of fun trying to use. Time perhaps to add to my already-unwieldy list of steemit-related bookmarks in the browser ;-) If not, why the heck not.

Thanks a span for this, @firedream

Thank you @oneazania.
It is really fun using it...Especially at the footer div, you get stuck watching the transfers:)
FD.

Your Post Has Been Featured on @Resteemable!
Feature any Steemit post using resteemit.com!
How It Works:
1. Take Any Steemit URL
2. Erase https://
3. Type re
Get Featured Instantly & Featured Posts are voted every 2.4hrs
Join the Curation Team Here | Vote Resteemable for Witness

Good post