frmko - Knight Online Forum
frmko - Knight Online Forum

Aboutfrmko - Knight Online Forum

The forum runs on Rust, Axum and SQLite as a single self-contained server, with every page rendered on the server.

Tech Stack

Core Framework

  • Axum 0.8High-performance async web framework
  • Tokio 1Async runtime
  • Tower / Tower-HTTPMiddleware and static files
  • Rust 2021 EditionSafe, fast systems language

Data Layer

  • SQLiteEmbedded database with no external dependencies
  • SQLx 0.8Compile-time SQL checks
  • Automatic MigrationsSchema creation and upgrades at startup

Frontend

  • Tailwind CSSUtility-first CSS framework
  • Font AwesomeIcon library
  • MultiavatarDynamic avatar generation
  • Server-Side Rendering (SSR)Every page is rendered to HTML by the backend

Content Processing

  • pulldown-cmark 0.13Markdown parsing and rendering
  • bcrypt 0.17Secure password hashing
  • UUID v4Session token generation
  • reqwestHTTP client for AI APIs

Observability

  • tracingStructured logging
  • tracing-subscriberLog output and filtering

Data Interchange

  • serde / serde_jsonJSON serialization
  • chrono 0.4Date and time handling
  • multipartFile upload handling

Features

User System

  • User registration / login / logout
  • Cookie session management (SQLite)
  • Invite-code registration
  • Groups: admin / moderator / member
  • Profile editing
  • Avatar upload / delete
  • Custom titles / badges / badge colors
  • Password change
  • Credit-based rank system
  • User hover card

Forum Core

  • Forum management (create / edit / delete / order)
  • Thread create / edit / delete
  • Replies and quotes
  • Floor numbers (author badge)
  • Pin / feature / close threads
  • View counting
  • Pagination
  • Search
  • Latest / trending / featured tabs

Editor and Content

  • Rich Markdown rendering
  • Editor toolbar
  • Code blocks / tables / task lists
  • [quote] syntax
  • Emoji picker (60+)
  • Inline editing of replies

Interactions

  • Notifications (replies / quotes / messages)
  • Notification bell and dropdown
  • Private messages (inbox / conversations)
  • Daily check-in + credit rewards
  • Credits leaderboard
  • Reporting

Admin Panel

  • Dedicated admin layout (sidebar nav)
  • Dashboard (8 stats)
  • Thread / forum / user management
  • Report handling (resolve / reject / note)
  • Blacklist and IP bans
  • Muting (timed / permanent)
  • Invite Codes
  • AI content moderation
  • Settings (site / registration / credits / upload)

JSON API

  • Thread list / forum list / stats
  • Search API
  • Auth API (login / register / logout)
  • Thread / reply API
  • User card API
  • Notifications API
  • Check-in / leaderboard API

Architecture Highlights

Single-binary deployment
One executable after compilation; no runtime or database to install
Memory safety
Rust guarantees at compile time: no data races, null pointers, or buffer overflows
Top performance
Async I/O keeps the site fast under heavy traffic
Full SSR
No frontend framework; the backend renders every page as plain HTML

Changelog

v1.5.0 2026-04-06

Settings and invite codes

  • NewInvite-code registration (generate, validate, usage limits)
  • NewAdmin invite-code page
  • NewDynamic site configuration (name/description/keywords/footer)
  • OptimizeSuccess/failure feedback for all admin actions
  • OptimizeRemoved hardcoding; site config is database-driven
v1.4.0 2026-04-05

Admin panel overhaul

  • NewDedicated admin layout (left sidebar)
  • NewThread management (pin/feature/close/delete)
  • NewReport system (user reports + admin handling)
  • NewBlacklist / IP ban management
  • NewUser muting (timed/permanent + reason)
  • NewAI moderation (OpenAI-compatible API)
  • NewSettings pages (site/registration/credits/upload/AI)
  • NewDashboard expansion (8 stats + recent reports + new users)
  • NewModerator middleware (ModeratorUser)
v1.3.0 2026-04-04

Notifications and Interactions

  • NewNotifications (reply/quote/message)
  • NewHeader notification bell and dropdown
  • NewInline post editing
  • NewEditor toolbar (bold/italic/code/quote)
  • NewEmoji picker (60+)
  • New[quote=username] rendering
v1.2.0 2026-04-03

Check-in and Social

  • NewDaily check-in + credit rewards
  • NewCredits leaderboard (Top 10)
  • NewPrivate messaging
  • NewAvatar upload / delete
  • NewUser hover card
  • NewFriendly links module
  • OptimizeUnified sidebar layout
v1.1.0 2026-04-02

User System Improvements

  • NewProfile editing page
  • NewCustom title / badge system
  • NewCredit-based ranks
  • NewMy posts page
  • NewUser profile page
  • NewJSON API endpoints
v1.0.0 2026-04-01

Initial release

  • NewUser registration / login / logout
  • NewForum / thread / reply CRUD
  • NewMarkdown rendering
  • NewBasic admin panel
  • NewCookie session auth
  • NewSQLite database + automatic migrations

Made with using Rust + Axum + SQLite

Copyright © 2026 frmko - Knight Online Forum