create account

๐Ÿšœ Land Update: Node Cache, Admin Pages & Some Real Life by beaker007

View this thread on: hive.blogpeakd.comecency.com
· @beaker007 · (edited)
$51.15
๐Ÿšœ Land Update: Node Cache, Admin Pages & Some Real Life
![image.png](https://files.peakd.com/file/peakd-hive/beaker007/23uFPdKf8W8ZX7E5wau5mmBUn82xiKX9FGcK39Ep3LVmeNm2Un28FUXZLTRCeXrGKnVeW.png)

No week goes by without a land updateโ€ฆ and yeah, this oneโ€™s a bit heavier on the technical side again. Sorry, not sorry ๐Ÿ˜…

Honestly, itโ€™s been a tough week. Real-life work pulled me in deep, and the learning curve on this stuff is still climbing like a Lava Launcher with Fury.

# <div class=phishy>๐Ÿง  What Iโ€™ve Been Working On</div>
Node Cache Adventures
So, this week I looked into caching Splinterlands data using node-cache. The main reason? The player overview page.

Each time a player gets queried, weโ€™re fetching their deeds and their staked assets. Without a cache, that would hammer the Splinterlands API and probably get us rate-limited or blocked. Not ideal.

Tried caching region data too, but that turned into a mess. Gonna leave that one in memory for now until I figure out a better way.

# <div class=phishy>๐Ÿ› ๏ธ Admin Page + GitHub OAuth</div>
To get a better grip on whatโ€™s going on under the hood, I built a little admin page. It tracks stuff like:

* Cache size
* Memory usage
* Which accounts were queried in the last hour
* And live log output (so I donโ€™t have to dive into the container every time)

To access it, you now have to sign in with GitHub (OAuth). For now, itโ€™s locked down to me in production โ€” but I can add others if needed. Took me a bit to get OAuth working smoothly, but it's worth it.

Yes, itโ€™s all open source, feel free to take a look at how Iโ€™ve done the logging, monitoring, and cache checks.

๐Ÿ‘‰ New Stuff Live Here: https://next-land.spl-stats.com/

# <div class=phishy>๐Ÿ‘€ Player Overview: Now With Caching and Filters!</div>
This is the page that started it all. Getting the deed + asset data was complex โ€” it's a two-layer fetch and really needed caching to perform well.

![image.png](https://files.peakd.com/file/peakd-hive/beaker007/23t7BC19jXaYwcRRiCvjLvaD7KjFJsBbi3uKTtTorVbEY1wFBqmQ7Tw61XVDm7cK6vXog.png)

Along the way, I also updated the filters so they now adapt to the actual player data. Should be much smoother to use.




![image.png](https://files.peakd.com/file/peakd-hive/beaker007/23w2HKaRDe8eJWvLiFWpzpbT65uhpEFdyKqHqQR4VUEbf9KzeE8RyK3GCcSSBnHnfbpZ9.png)

# <div class=phishy>๐Ÿงช Admin Page Sneak Peek</div>
Hereโ€™s what I can now see on the admin page:

* Current node cache state: Useful to make sure itโ€™s not ballooning.
* Player queries (last hour): Which players were queried and when.
* Memory usage: Quick check for memory leaks or spikes.
* Logs: Direct view of runtime logs without terminal diving.


![image.png](https://files.peakd.com/file/peakd-hive/beaker007/Eo6CCiRKtLnyoT3QdHip5j9UJ3n1Y2pyJm28XR2ZwSpxM9SSt3gGagr68bjC6SiA6rE.png)


![image.png](https://files.peakd.com/file/peakd-hive/beaker007/Eo1wwLJQDcarbzeY1M1UkSny8tw6XVLCToi1x3oRaG4hEh8iDUHZ9SYczgcdEaM1aLe.png)



# <div class=phishy>๐Ÿคฏ Random Discovery: Black Foils</div>
One weird thing I stumbled on: Black Foils donโ€™t give 5x, mentioned before. They actually give 2.5x. Thatโ€™s because Conclave bonuses are halved (0.5x). Oof.

That was kinda fun to figure out just by reading through the raw data.

https://files.peakd.com/file/peakd-hive/beaker007/EoCboDWDxaiCFVAJGS6nkuTn6A6FTpCDsCWNPxPdG6zVETChnmCuaxcEzbtrJSsEtVg.png


# <div class=phishy>๐Ÿงน Whatโ€™s Next?</div>
* Code cleanup โ€” especially around the player data fetch logic.
* Might revisit node cache for region data (not urgent though).
* Start porting over more features from the old app (painfully, no copy/paste magic here).
* **Keep learning. Still deep in the Next.js/Prisma/TypeScript jungle.**

# <div class=phishy>๐Ÿ” GitHub Repos (If You Dare)</div>
Want to poke around the source?

๐Ÿ Python version: https://github.com/gamerbeaker007/splinter-lands
โšก Next.js version: https://github.com/gamerbeaker007/splinter-lands-next

PRs, issues, or just general โ€œwhat is this spaghetti?โ€ reactions welcome โ€” just be kind ๐Ÿ˜…

# <div class=phishy>๐Ÿ™Œ How You Can Support</div>
โœ… Upvote this post โ€“ it keeps the motivation alive!
๐Ÿ‘‰ [Vote for My SPS Validator Node](https://monstermarket.io/validators?validator=beaker007)
๐Ÿ’ฌ Drop a comment or idea โ€“ weird edge cases welcome.

# <div class=phishy>โš ๏ธ Final Note</div>
This is still very much a hobby project โ€“ built during late-night caffeine-fueled sprints with a half-functioning brain. If something breaks, just ping me. Iโ€™ll fix itโ€ฆ eventually ๐Ÿ˜‚

Stay awesome, and keep farming that land!
๐Ÿ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 254 others
properties (23)
authorbeaker007
permlinkland-update-node-cache-admin-pages-and-some-real-life
categoryhive-169191
json_metadata{"app":"peakd/2025.6.2","format":"markdown","image":["https://files.peakd.com/file/peakd-hive/beaker007/23uFPdKf8W8ZX7E5wau5mmBUn82xiKX9FGcK39Ep3LVmeNm2Un28FUXZLTRCeXrGKnVeW.png","https://files.peakd.com/file/peakd-hive/beaker007/23t7BC19jXaYwcRRiCvjLvaD7KjFJsBbi3uKTtTorVbEY1wFBqmQ7Tw61XVDm7cK6vXog.png","https://files.peakd.com/file/peakd-hive/beaker007/23w2HKaRDe8eJWvLiFWpzpbT65uhpEFdyKqHqQR4VUEbf9KzeE8RyK3GCcSSBnHnfbpZ9.png","https://files.peakd.com/file/peakd-hive/beaker007/Eo6CCiRKtLnyoT3QdHip5j9UJ3n1Y2pyJm28XR2ZwSpxM9SSt3gGagr68bjC6SiA6rE.png","https://files.peakd.com/file/peakd-hive/beaker007/Eo1wwLJQDcarbzeY1M1UkSny8tw6XVLCToi1x3oRaG4hEh8iDUHZ9SYczgcdEaM1aLe.png","https://files.peakd.com/file/peakd-hive/beaker007/EoCboDWDxaiCFVAJGS6nkuTn6A6FTpCDsCWNPxPdG6zVETChnmCuaxcEzbtrJSsEtVg.png"],"tags":["splinterlands","splintertalk","play2earn","socialmedia","splinter-lands"],"users":[]}
created2025-06-21 12:43:21
last_update2025-06-22 06:06:39
depth0
children6
last_payout1969-12-31 23:59:59
cashout_time2025-06-28 12:43:21
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value51.150 HBD
promoted0.000 HBD
body_length4,465
author_reputation376,344,618,541,665
root_title"๐Ÿšœ Land Update: Node Cache, Admin Pages & Some Real Life"
beneficiaries
0.
accounthive-169191
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,483,170
net_rshares179,633,811,101,349
author_curate_reward""
vote details (318)
@derealprecious ·
$0.03
Great 
๐Ÿ‘  
properties (23)
authorderealprecious
permlinkre-beaker007-2025622t92039937z
categoryhive-169191
json_metadata{"links":[],"type":"comment","tags":["hive-169191","splinterlands","splintertalk","play2earn","socialmedia","splinter-lands"],"app":"ecency/3.3.3-mobile","format":"markdown+html"}
created2025-06-22 08:20:42
last_update2025-06-22 08:20:42
depth1
children0
last_payout1969-12-31 23:59:59
cashout_time2025-06-29 08:20:42
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.026 HBD
promoted0.000 HBD
body_length6
author_reputation6,844,156,792
root_title"๐Ÿšœ Land Update: Node Cache, Admin Pages & Some Real Life"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,496,958
net_rshares92,492,228,407
author_curate_reward""
vote details (1)
@fallen.angels ·
https://images.hive.blog/0x0/https://files.peakd.com/file/peakd-hive/javivisan/23ynfVX4eULR6befXuozSNAbS94FivL8j2Vf252mwQM6KpBLeAD6kRVFjS8apvdkCjzxY.png<br/><center>This post has been supported by @fallen.angels guild!<br/>Delegate Tokens and HP to Fallen Angels to earn weekly rewards!<br/>[Delegate](https://fallenangels.pythonanywhere.com/curation/) | [Join to the guild](https://t.me/+we9-hXTnUBRlZDc0)</center>
properties (22)
authorfallen.angels
permlinkre-land-update-node-cache-admin-pages-and-some-real-life-20250621t160046z
categoryhive-169191
json_metadata"{"app": "beem/0.24.26"}"
created2025-06-21 16:00:48
last_update2025-06-21 16:00:48
depth1
children0
last_payout1969-12-31 23:59:59
cashout_time2025-06-28 16:00:48
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length415
author_reputation64,194,173,971,530
root_title"๐Ÿšœ Land Update: Node Cache, Admin Pages & Some Real Life"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,486,424
net_rshares0
@hivebuzz ·
Congratulations @beaker007! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

<table><tr><td><img src="https://images.hive.blog/60x70/https://hivebuzz.me/@beaker007/payout.png?202506212129"></td><td>You received more than 12000 HP as payout for your posts, comments and curation.<br>Your next payout target is 13000 HP.<br><sub>The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD</sub></td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@beaker007) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>

properties (22)
authorhivebuzz
permlinknotify-1750541734
categoryhive-169191
json_metadata{"image":["https://hivebuzz.me/notify.t6.png"]}
created2025-06-21 21:35:33
last_update2025-06-21 21:35:33
depth1
children0
last_payout1969-12-31 23:59:59
cashout_time2025-06-28 21:35:33
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length778
author_reputation369,204,410,363,325
root_title"๐Ÿšœ Land Update: Node Cache, Admin Pages & Some Real Life"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,490,978
net_rshares0
@splinterboost ·
 <center> This post has been supported by @Splinterboost with a 15% upvote! Delagate HP to Splinterboost to Earn Daily HIVE rewards for supporting the @Splinterlands community!</center> 

 <center> [ Delegate HP ](https://peakd.com/@splinterboost)  | [Join Discord](https://discord.gg/RK4ZHKmgcX) </center>
properties (22)
authorsplinterboost
permlinkland-update-node-cache-admin-pages-and-some-real-life
categoryhive-169191
json_metadata{"app":"splinterboost/0.1"}
created2025-06-21 12:43:27
last_update2025-06-21 12:43:27
depth1
children0
last_payout1969-12-31 23:59:59
cashout_time2025-06-28 12:43:27
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length306
author_reputation13,735,779,311,386
root_title"๐Ÿšœ Land Update: Node Cache, Admin Pages & Some Real Life"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,483,174
net_rshares0
@steemmonsters ·
**Thanks for sharing! - @azircon**
![](https://media.giphy.com/media/W4QD5qT1u6OJV1ENXU/giphy.gif)

properties (22)
authorsteemmonsters
permlinkre-land-update-node-cache-admin-pages-and-some-real-life-20250621t134114z
categoryhive-169191
json_metadata"{"app": "beem/0.24.26"}"
created2025-06-21 13:41:15
last_update2025-06-21 13:41:15
depth1
children0
last_payout1969-12-31 23:59:59
cashout_time2025-06-28 13:41:15
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length100
author_reputation421,525,240,781,709
root_title"๐Ÿšœ Land Update: Node Cache, Admin Pages & Some Real Life"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,484,047
net_rshares0
@tahirmuneer ·
https://x.com/jewellery_all/status/1936422592669429838
#hive
properties (22)
authortahirmuneer
permlinksy7lbw
categoryhive-169191
json_metadata{"tags":["hive"],"app":"hiveblog/0.1"}
created2025-06-21 13:55:12
last_update2025-06-21 13:55:12
depth1
children0
last_payout1969-12-31 23:59:59
cashout_time2025-06-28 13:55:12
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length60
author_reputation14,593,953,570,512
root_title"๐Ÿšœ Land Update: Node Cache, Admin Pages & Some Real Life"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,484,223
net_rshares0