SteemRadar.js - A JavaScript library for scanning Steem blockchain

in #utopian-io6 years ago (edited)

Repository

<p dir="auto"><span><a href="https://github.com/gigatoride/steemradar.js" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/gigatoride/steemradar.js <h1>SteemRadar <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmZPTp2wPtNpazg84n6qeQsgS6Rucpkd4krx1w6m1EDKNo/logo.png" alt="logo.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmZPTp2wPtNpazg84n6qeQsgS6Rucpkd4krx1w6m1EDKNo/logo.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmZPTp2wPtNpazg84n6qeQsgS6Rucpkd4krx1w6m1EDKNo/logo.png 2x" /><br /> <sub><span>Logo design by <a href="/@gigatoride">@gigatoride only licensed for contributions related to this project <hr /> <h4>What is this? <p dir="auto">SteemRadar is an open source project it under heavy development for streaming all types of activities on Steem blockchain.<br /> It provides the fastest time response thanks to <a href="http://bluebirdjs.com" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">bluebird, And detecting many activities by different algorithms, strategies, And purposes with stable performance and many features with a huge roadmap ahead!. Currently available for direct usage from the command-line. <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png" alt="line2.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png 2x" /> <h5>Installation <p dir="auto">You can install it with npm for your project: <pre><code>$ npm install steemradar <p dir="auto">For command-line tool install it globally: <pre><code>$ npm install steemradar -g <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png" alt="line1.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 2x" /> <h5>Command-Line Usage <pre><code>$ steemradar <p dir="auto"><img src="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmbBpF2aQ2hCL7U2jZsxnmY4DP4FwzddiR5NxoZ81LB5eN" alt="one.gif" srcset="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmbBpF2aQ2hCL7U2jZsxnmY4DP4FwzddiR5NxoZ81LB5eN 1x, https://images.hive.blog/1536x0/https://ipfs.busy.org/ipfs/QmbBpF2aQ2hCL7U2jZsxnmY4DP4FwzddiR5NxoZ81LB5eN 2x" /><br /> (testing command-line tool on all blockchain accounts) <h4>Test Module <p dir="auto">For testing the module please use : <pre><code>$ npm test <ul> <li>Note: profane detector isn't included because it may take too much time, It's rare to find profane in short time <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png" alt="line1.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 2x" /> <h4>Profane Detector <p dir="auto">A monitor for blockchain that is able to filter all blockchain bad words that being posted in real-time<br /> available in the command-line tool and the module <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png" alt="line2.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png 2x" /> <h4>Transfer Detector <p dir="auto">It provides the ability to monitor senders, receivers transaction in real time it also has the ability to monitor all blockchain with customized options which are available in command-line tool and the module as well.<br /> for more please visit README.md <p dir="auto"><img src="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmRagPXYvQ76hgKcWeVZ3sVhr7ehEP4ZXE5PiGqKHcEvQs" alt="cmd1.png" srcset="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmRagPXYvQ76hgKcWeVZ3sVhr7ehEP4ZXE5PiGqKHcEvQs 1x, https://images.hive.blog/1536x0/https://ipfs.busy.org/ipfs/QmRagPXYvQ76hgKcWeVZ3sVhr7ehEP4ZXE5PiGqKHcEvQs 2x" /><br /> <sub>(preview on the command-line tool - Some information has been hidden for privacy or advertising) <p dir="auto">Any further transfers will be printed in real-time in command-line tool. <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png" alt="line1.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 2x" /> <h4>Memo Detector <p dir="auto">Detecting memos by a username and it's private memo key or without it, So it will encrypt the private memo and return it in an object and in case of command-line, it will print the decrypted memo it also supports public memos. command-line tool included and the module as well. <p dir="auto"><img src="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmdTQTtmpby6rfjV2A6AMreB3cucCYwzJK1mTbnuspjs4p" alt="cmd2.png" srcset="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmdTQTtmpby6rfjV2A6AMreB3cucCYwzJK1mTbnuspjs4p 1x, https://images.hive.blog/1536x0/https://ipfs.busy.org/ipfs/QmdTQTtmpby6rfjV2A6AMreB3cucCYwzJK1mTbnuspjs4p 2x" /><br /> <sub>(preview on the command-line tool - Some information has been hidden for privacy or advertising) <p dir="auto">Any further memos will be printed in real-time in command-line tool. <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png" alt="line2.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png 2x" /> <h4>Latest Activity Detector <p dir="auto">Stream the latest user activity timestamp with the support to monitor multiple usernames in real-time, it also has a cool format in command line tool for easier reading and details like month name etc... <p dir="auto"><img src="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmWQkp81ZHHjDCw2hip1oSgFLvw48NRo7LRgDbJqrg6CZ6" alt="cmd.png" srcset="https://images.hive.blog/768x0/https://ipfs.busy.org/ipfs/QmWQkp81ZHHjDCw2hip1oSgFLvw48NRo7LRgDbJqrg6CZ6 1x, https://images.hive.blog/1536x0/https://ipfs.busy.org/ipfs/QmWQkp81ZHHjDCw2hip1oSgFLvw48NRo7LRgDbJqrg6CZ6 2x" /> <p dir="auto">Any further activities will be printed in real-time in command-line tool. <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png" alt="line1.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 2x" /> <h3>Commits Highlights <p dir="auto"><a href="https://github.com/gigatoride/steemradar/commit/21abf784e6e73930bc569af6fcdfd87cbdf50877" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 1 that is the core file for detecting stuff, in this <a href="https://github.com/gigatoride/steemradar/commit/f48cc07f24e69f221a5d91ca28d2198e8f588b88" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 2 also the command line tool and here some utils <a href="https://github.com/gigatoride/steemradar/commit/a586a5816471467bf679cc1f926d728cb8b89913" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 3 <p dir="auto">Some improvments in filtering and detecting <a href="https://github.com/gigatoride/steemradar/commit/35c7071ad8a672b140a80fe3eedcfcd92cba8e07" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 4, <a href="https://github.com/gigatoride/steemradar/commit/71686b17b5693d26d6ea36053869a00f45671e10" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit 5 <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png" alt="line2.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png 2x" /> <h3>Technology Stack <ul> <li>Node.js <li>JavaScript <h4>Dependencies <ul> <li>Bluebird for promises as it's performance better than ES6 according to this <a href="https://softwareengineering.stackexchange.com/questions/278778/why-are-native-es6-promises-slower-and-more-memory-intensive-than-bluebird" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">post <li>Bad-words for detecting profane <li>inquirer, chalk for interactive and colored command-line. <li>DateFormat for timestamps <li>Steem-js for blockchain streaming and monitoring <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png" alt="line1.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 2x" /> <h3>Roadmap <p dir="auto">This project is under heavy development and soon there will be a telegram bot built on it for a better user experience as well as other apps. <ul> <li>Stream spam detector <li>Stream support for detecting blacklisted users by steem cleaners etc... <li>Streaming account activity related to security. <li>Transaction tracking like stolen funds etc... <li>Stream accounts feed. <li>Full utopian.io streaming & monitoring <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png" alt="line2.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmf2GbKZTxLr35sbqN2HhtnTQKB4dQA3i8mUib22TBXJXN/line2.png 2x" /> <h3>How to contribute? <p dir="auto">You can contribute by feedback in comments, Also you can open a pull request or a new issue for suggestions, bugs. <p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png" alt="line1.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmUaQ9iNqcxoUKfkcMfyKvevwhkWzp6BWwXFkJmC4dE8Ar/line1.png 2x" /> <h3>Github Account <p dir="auto"><span><a href="https://github.com/gigatoride" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/gigatoride
Sort:  

Looks sharp.

I know the app's scope is different but what about registering callbacks to events? Like, "send me a sms when I got a transfer, etc".

On a side note, the amount of indented blocks here reminded me this. :)

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.



Chat with us on Discord.
[utopian-moderator]Need help? Write a ticket on https://support.utopian.io/.

I know the app's scope is different but what about registering callbacks to events? Like, "send me a sms when I got a transfer, etc".

I think that's a good idea it's already in my mind. in next versions gonna be proceeded.

On a side note, the amount of indented blocks here reminded me this. :)

Oh, you're right about that, I think it's a little bit better now :)

Thank you for your review, @emrebeyler!

So far this week you've reviewed 3 contributions. Keep up the good work!

Update repository URL change!

Hi @gigatoride!



Feel free to join our @steem-ua Discord serverYour post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation! Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!

Hey, @gigatoride!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
SteemPlus or Steeditor). Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Congratulations @gigatoride! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<p dir="auto"><a href="http://steemitboard.com/@gigatoride" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png 2x" /> Award for the number of upvotes received <p dir="auto"><sub><em>Click on the badge to view your Board of Honor.<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <p dir="auto"><strong><span>Do not miss the last post from <a href="/@steemitboard">@steemitboard: <table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-knock-out-by-hardfork" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmSPagmBYytsJBn8FwewvqDFRphP6swbbndADgYEsaLNkZ/image.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmSPagmBYytsJBn8FwewvqDFRphP6swbbndADgYEsaLNkZ/image.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmSPagmBYytsJBn8FwewvqDFRphP6swbbndADgYEsaLNkZ/image.png 2x" /><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-knock-out-by-hardfork" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SteemitBoard knock out by hardfork <blockquote> <p dir="auto">Support <a href="https://steemit.com/@steemitboard" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SteemitBoard's project! <strong><a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for its witness and <strong>get one more award!