Steemblr is open source microblogging platform powered by steem blockchain . It allows user to post and explore content which is smaller than a traditional blog.
You can check developer version here: https://steemblr.com
Repository
https://github.com/snwolak/steemblr
https://github.com/snwolak/steemblr_ml
https://github.com/snwolak/steemblr_api
https://github.com/snwolak/esync
New Features
Trending page algorithm
To decide which post should be defined as trending, I wrote script which rates post accordingly to this parameters:
- number of votes(net_votes),
- number of comments,
- value of the post.
Post will be defined as trending when above 80% rating is reached, if post reaches trending category its popularity state won't be overwritten.
To made this work I used brain.js library, which allowed for simple and effective usage of machine learning.
The data script uses can be find here: https://github.com/snwolak/steemblr_ml/blob/master/dataset.json, it comes from various tags on steemit, in the future I would like to rate posts only from data which comes from posts made on steemblr. I also made simple interface for choosing and exporting data to json.
https://github.com/snwolak/steemblr_ml/commit/2e863fb15da62d74b5f0131313b4cb58b550d6bc
https://github.com/snwolak/steemblr_ml/commit/584b602ba108ee5ff49a01ba16afe419f446daec
https://github.com/snwolak/steemblr_ml/commit/c27f90d5a4a6f59c467e99323a3c0050e76e4e9e
https://github.com/snwolak/steemblr_ml/commit/28db4a81aea2b4e481371982d98a952e755df134
https://github.com/snwolak/steemblr_ml/commit/76e1647ead0da10ea3b4df032030fd0b38d0a6d3
https://github.com/snwolak/steemblr_ml/commit/296cc7b3144a1951497a72e566560acda9e3b1a5
Implementation of the trending feature
To ml script to be accesible I made express server with one route for rating, when post is synced with database esync is caling ML script to rate the post and then sends the data to cloud function. For the client side of things there was added now redux action to handle trending post, for now just in trending category, rest of the categories are showing new posts.
https://github.com/snwolak/esync/commit/585de4de556279b7309efbfbaff98933e204a9c0
https://github.com/snwolak/steemblr/commit/35c4aff53c1f0ae7e3f63c50e4255597a68b02f1
https://github.com/snwolak/steemblr_api/commit/02d16bc67b5e2b1a6f5907ae7d1b1baed6f7000a
https://github.com/snwolak/steemblr_ml/blob/28db4a81aea2b4e481371982d98a952e755df134/index.js
https://github.com/snwolak/steemblr_ml/blob/296cc7b3144a1951497a72e566560acda9e3b1a5/index.js
Github Account
https://github.com/snwolak