🚜 Land Update: Node Cache, Admin Pages & Some Real Life

(Edited)

image.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.

🧠 What I’ve Been Working On

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.

🛠️ Admin Page + GitHub OAuth

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/

👀 Player Overview: Now With Caching and Filters!

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

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

🧪 Admin Page Sneak Peek

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

image.png

🤯 Random Discovery: Black Foils

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.

🧹 What’s Next?

  • 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.

🔍 GitHub Repos (If You Dare)

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 😅

🙌 How You Can Support

✅ Upvote this post – it keeps the motivation alive!
👉 Vote for My SPS Validator Node
💬 Drop a comment or idea – weird edge cases welcome.

⚠️ Final Note

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!



0
0
0.000

6 comments

Congratulations @beaker007! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 12000 HP as payout for your posts, comments and curation.
Your next payout target is 13000 HP.
The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

0
0
0.000