Sign up Log in
n/open-source · 28d ago · Edited · 1.5k views
u/JinMukunDiamond3 YEARS
n/open-sourceu/JinMukun 3 YEARS · 28d ago
Red envelope

[Open Source] I turned 1,000+ Chinese blogs into a city you can fly through

https://play.mukunjin.com

I turned over a thousand blogs into a city you can fly into. Every building is a blog.

  • Building height = how active it is. Buildings that posted recently sit downtown, tall, with almost every window lit; ones that haven't updated in three years huddle out in the suburbs, short and dark, and you have to zoom in to even see them.

  • Building width = how many tags it has. Code bloggers, life bloggers, photo bloggers — the buildings are fatter or skinnier accordingly.

  • Position = activity. The most recent posters crowd the very center; the further out you go, the older it gets. The shape of the whole city is a topographic map of "are Chinese indie blogs still alive?"

Downtown is a roundabout, with the eight letters BLOG CITY standing in the middle of it — fly around it and you can see the back of the letters.

How to play: drag to rotate (left mouse button rotates, right-drag), scroll to zoom, click a building to fly over — the right panel tells you how tall that blog is, how active, when it last posted, what tags it has, plus links to open it / subscribe to its RSS. "Search" in the top right searches the whole list, and "Random" takes you to a blog you've probably never heard of. Press R for random, Esc to dismiss.

Three things I'm pretty happy with

1. 1581 buildings, drawn in a single draw call. Not 1581 meshes — one InstancedMesh. Each building's windows, floor lines and lit-window ratio are all computed procedurally in the fragment shader from the UVs — not one texture, not one texture switch. The whole city costs about the same to render as 10 buildings.

2. The sky, stars and moon are computed too. The moon's maria, terminator and outer halo are all in the shader, and the disc itself is a quad that always faces the camera — so whichever side of the city you circle around to, it's a perfect circle, never an ellipse. Each star has its own phase and slowly twinkles.

3. The browser makes zero network requests. All the data is baked into a 350 KB JSON at build time, so the page opens straight into the city with no loading screen (because it doesn't need one). No backend, no database, no accounts, no analytics scripts.

Where the data comes from (I want to be clear about this)

  • The list and tags come from chinese-independent-blogs (MIT);

  • "Last posted / dead or alive" comes from the list site's own public status API — its Worker checks the RSS feeds once an hour, and I just consume the results; I don't crawl any site myself;

  • Activity uses a decay formula:

1 天前 ≈ 0.99,30 天 ≈ 0.75,90 天 ≈ 0.5,一年 ≈ 0.2。

At first I used "rank in the list", but ranking flattens the timeline: the top 100 might be only days apart yet all crammed at the top, while something that hasn't updated in two years still scores 0.2. Once I switched to per-day decay, the tower heights actually meant "how long since they last wrote".

The data updates automatically once a week on Thursdays: pull the API → commit only if something changed → rebuild and deploy. So what you're seeing is a snapshot at most a week old, not live.

Known issues

  • No dedicated mobile optimization;

  • A handful of the 442 dark buildings are "site is alive but the RSS is broken" — the check is based on RSS, not on whether the site loads;

  • Building height is capped at 214 units, so the most active blogs end up pretty close in height.

Just treat it as something fun to play with. If you write a blog yourself, search your own name and see which corner of the city it's in and how tall it is.

Open source (stars and contributions welcome!):
https://github.com/mukunjin/blog-city

Translated by AI from 简体中文

31
85
Log into join the discussion.
海外原生IP VPS,稳定访问全球网络

还在为IP不纯、平台风控、频繁验证而烦恼? 丽萨主机海外原生IP VPS,双ISP住宅IP,覆盖美国、香港、日本、新加坡、台湾、德国、越南、英国等热门地区,适合跨境电商、社媒运营、AI工具、流媒体及海外业务使用。

lisahost.com Learn more

85 replies

Sort order
  1. GeorgeXie 💬 Master Never leave, never forsake 28d ago

    Thanks for sharing

    Translated by AI from 简体中文

    2
  2. JamesBrown Gold 3 YEARS 27d ago

    Turning it into a book would actually be pretty nice

    Translated by AI from 简体中文

    2
  3. applemilk Diamond 3 YEARS 28d ago

    Wow, this is really cool

    Translated by AI from 简体中文

    1
  4. James 💯 Legend MANAGER 28d ago

    Pretty nice. A whole building is one blog — it’d be great if each window were one too.

    Translated by AI from 简体中文

    1
  5. Tmuse Diamond 3 YEARS 28d ago

    牛 :04-zan:

    1
  6. Rison Diamond 3 YEARS 28d ago

    Cyberpunk, huh? Maybe throw in some other elements — this one's a bit monotonous. All that dense crammed-together stuff gives me a phobia.

    Translated by AI from 简体中文

    1
  7. JinMukun Diamond OP 3 YEARS 28d ago

    Thanks! Could you go into a bit more detail? And if it's convenient, feel free to open an issue.

    Translated by AI from 简体中文

    0
  8. acrid Silver 28d ago

    已star

    1
  9. JinMukun Diamond OP 3 YEARS 25d ago

    Thanks for the support.

    Translated by AI from 简体中文

    0
  10. trial Master Diamond member 28d ago

    Nice, that's creative.

    Translated by AI from 简体中文

    1
  11. CoffeeWithoutSugar Gold 28d ago

    That's creative :04-moyu:

    Translated by AI from 简体中文

    0
  12. user94 Filthy rich Diamond 28d ago

    :xhj001:

    0
  13. buzhidao10068 28d ago

    I found out that holding down r keeps changing it 😋

    Translated by AI from 简体中文

    0
  14. fangenhui520 Silver 28d ago

    Thanks for sharing

    Translated by AI from 简体中文

    0
  15. MSaZs Gold 28d ago

    Wow, that's awesome

    Translated by AI from 简体中文

    0
  16. Tsenji1 Silver 3 YEARS 28d ago

    That's awesome

    Translated by AI from 繁體中文

    0
  17. fxz Gold 3 YEARS 28d ago

    So cool, definitely giving this a follow

    Translated by AI from 简体中文

    0
  18. xiaoyi669 💬 Diamond Diamond member 28d ago

    Impressive, impressive.

    Translated by AI from 简体中文

    0
  19. gubhost Diamond Diamond member 28d ago

    nb, boss — that's seriously impressive

    Translated by AI from 简体中文

    0
  20. lovoup Diamond 3 YEARS 28d ago

    How did you come up with this? Impressive.

    Translated by AI from 简体中文

    0
  21. Unicorn Gold 3 YEARS 28d ago

    This is pretty interesting.

    Translated by AI from 简体中文

    0
  22. c99 Silver 28d ago

    Fucking awesome

    Translated by AI from 简体中文

    0
  23. ranbb Silver 3 YEARS 28d ago

    Thanks for sharing

    Translated by AI from 简体中文

    0
  24. Jioni Silver 3 YEARS 28d ago

    It actually looks pretty good

    Translated by AI from 简体中文

    0
  25. wentao918168 Gold 3 YEARS 28d ago

    Very creative, quite interesting.

    Translated by AI from 简体中文

    0
  26. zhanchi Silver 3 YEARS 28d ago

    You can play hide-and-seek with the cat — pretty creative, nice.

    Translated by AI from 简体中文

    0
  27. Tmuse Diamond 3 YEARS 28d ago
    This reply was deleted by a moderator
  28. myhao Silver 3 YEARS 28d ago

    Take a look

    Translated by AI from 简体中文

    0
  29. ICBC Master Master member 28d ago

    牛

    0
  30. Arvin_Leung 🚗 Glory Solved 2 28d ago

    That looks spectacular

    Translated by AI from 简体中文

    0
  31. Tuck_Sen Silver 28d ago

    Could someone give me a rough idea of how this is done?

    Translated by AI from 简体中文

    0
  32. jakefly 💬 Gold 3 YEARS 28d ago

    This actually works really well — great idea, bro!

    Translated by AI from 简体中文

    0