Welcome to HuanChain DevForum (forum.huanchain.online) β a full-featured developer community & technical publishing platform modeled after DEV.to (Forem), built on Next.js 15 App Router, Upstash Redis (L1/L2 Cache + Persistent Store), Cloudflare Edge Workers, and OpenAPI 3.0 / Swagger API.
Architecture Highlights
1. Dual-Engine Content Aggregation:
- Real-time synchronization with the global DEV.to / Forem REST API (Relevant, Latest, Top Week/Month/Year/Infinity, #tags, Podcasts, Videos, and nested discussion threads).
- Native HuanChain Community Persistence backed by Upstash Redis (huanchain:forum:articles:v1) so any article, reaction, or comment published here is immediately live across all edge nodes.
2. L1 Memory + L2 Redis Stale-While-Revalidate (SWR):
- Sub-5ms hot responses via in-memory L1 cache synchronized with Upstash Redis HTTP REST & ioredis TCP pipelines.
- Multi-emoji reactions (β€οΈ Heart, π¦ Unicorn, π€― Exploding Head, π Raised Hands, π₯ Fire) and π Reading List Bookmarks stored atomically in Redis hashes.
// Example: Atomic Reaction Increment via Upstash Redis
export async function reactToArticle(articleId: string, reaction: ReactionType) {
const field = ${articleId}:${reaction};
const updatedCount = await upstash.hincrby('huanchain:forum:reactions:v1', field, 1);
return updatedCount;
}Interactive Swagger / OpenAPI 3.0 Playground
Explore and test all public REST API endpoints directly in our built-in Swagger UI Explorer at https://forum.huanchain.online/api-docs or fetch the raw OpenAPI 3.0 JSON specification at /api/openapi.
Have a technical guide, Web3 architecture post, or AI tutorial to share? Click Create Post in the top navigation bar to publish directly in Markdown!