fckin hate forgejo can't push to create in settings ass
  • Rust 70%
  • HTML 19.3%
  • CSS 7%
  • JavaScript 2.8%
  • Just 0.6%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Walter cc0fece219
Some checks failed
audit / cargo-audit (push) Has been skipped
audit / cargo-deny (push) Has been skipped
ci / test (push) Has been cancelled
ci / build (ubuntu-24.04) (push) Has been cancelled
ci / build (ubuntu-24.04-arm) (push) Has been cancelled
ci / merge (push) Has been cancelled
feat: add site favicons
2026-10-25 21:01:17 -05:00
.github Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
fx fix: stabilize HTMX navigation, post previews, and rendering 2026-10-25 20:46:08 -05:00
fx-auth fix: stabilize HTMX navigation, post previews, and rendering 2026-10-25 20:46:08 -05:00
fx-core fix: stabilize HTMX navigation, post previews, and rendering 2026-10-25 20:46:08 -05:00
fx-rss Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
fx-ui feat: add site favicons 2026-10-25 21:01:17 -05:00
.env.example Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
.gitignore Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
Cargo.lock Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
Cargo.toml Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
deploy.sh Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
digests.txt Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
Dockerfile Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
justfile Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
LICENSE Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00
README.md Finally adding this to my Forgejo. Need to fix CI/CD and bugs still. 2026-10-25 16:24:07 -05:00

Bloggy

A lightweight, self-hosted blogging platform built with Rust, Axum, Askama, Tailwind CSS, and HTMX.

Bloggy is an independently maintained fork of fx by Rik Huijzer, building upon the original project's foundation with a modernized frontend, server-rendered templates, and an evolving application architecture.

Overview

Bloggy is designed for people who want to publish, organize, and share their writing without relying on third-party publishing platforms.

Whether you're writing a quick thought, documenting a project, or publishing a longer technical article, Bloggy provides a straightforward interface for managing your content.

The application favors server-side rendering, minimal client-side JavaScript, and self-hosting over complex frontend frameworks.

Posts are stored in SQLite, rendered with Askama, styled using Tailwind CSS, and enhanced with HTMX for dynamic interactions.

Features

  • Markdown publishing — Create, edit, and publish posts using Markdown.
  • Syntax highlighting — Display formatted code snippets in technical articles.
  • Mathematical expressions — Render LaTeX-style mathematical notation.
  • File management — Upload and manage files and images.
  • Search — Find previously published content.
  • RSS feeds — Publish your own feed and follow external feeds.
  • SQLite storage — Lightweight, embedded database without requiring a separate database server.
  • Backup functionality — Export content and application data.
  • Responsive interface — Server-rendered pages styled with Tailwind CSS.
  • HTMX interactions — Update individual portions of the interface without full page reloads.
  • Self-hosted deployment — Run the application on your own infrastructure.

Some functionality is inherited from the upstream fx project and continues to evolve.

Technology Stack

Component Technology
Language Rust
HTTP Framework Axum
Templates Askama
Styling Tailwind CSS
Interactivity HTMX and JavaScript
Database SQLite
Packaging Docker
Version Control Git / Forgejo

Server-Side Rendering

Bloggy favors server-rendered HTML rather than a traditional single-page application.

Askama provides compile-time checked HTML templates, allowing Rust to render pages and reusable components.

HTMX enables targeted updates to individual parts of a page without requiring a large frontend JavaScript framework.

Tailwind CSS provides styling utilities and supports customization of the application's visual design.

This approach keeps the application architecture relatively simple while retaining interactive functionality.

Architecture

Bloggy is organized as a Rust workspace containing five crates.

bloggy2/
├── fx/                    # Application entry point, routing, HTTP handlers
├── fx-auth/               # Authentication and cryptographic functionality
├── fx-core/               # Core application logic, database, jobs, backups
├── fx-rss/                # RSS feed functionality
├── fx-ui/                 # Askama templates, UI rendering, static assets
├── .github/               # Existing CI and automation workflows
├── Dockerfile
├── deploy.sh
├── Cargo.toml
└── Cargo.lock

Frontend Structure

The fx-ui crate contains the application's presentation layer.

fx-ui/
├── src/
│   ├── lib.rs
│   ├── post.rs
│   ├── login.rs
│   ├── files.rs
│   ├── search.rs
│   └── ...
├── templates/
│   ├── includes/
│   │   ├── head.html
│   │   ├── header.html
│   │   └── footer.html
│   ├── post/
│   ├── files/
│   ├── search/
│   └── ...
├── styles/
│   ├── input.css
│   └── palette.css
└── static/
    ├── style.css
    ├── main.js
    └── ...

The UI uses Askama templates and fragments to support reusable HTML components and HTMX-driven interactions.

Local Development

Prerequisites

  • Rust and Cargo
  • SQLite development dependencies where required
  • Tailwind CSS tooling for rebuilding stylesheets
  • Docker for containerized builds and deployment

Build

Clone the repository and enter its directory.

git clone <YOUR_FORGEJO_REPOSITORY_URL>
cd bloggy2

Build the Rust workspace:

cargo build --workspace

Run

The application exposes a serve command:

cargo run -p fx -- serve

Configuration and credentials must be supplied according to the application's current environment settings.

For development, use a separate database and development credentials.

Tests

Run the workspace test suite:

cargo test --workspace

Some integration tests may require additional configuration or a running application instance.

Deployment

Bloggy supports containerized deployment using Docker.

The current deployment configuration uses:

Setting Purpose
FX_PASSWORD Application password
FX_PORT HTTP listening port
FX_DATABASE_PATH SQLite database location
/data Persistent application data

The existing deploy.sh script launches a container named bloggy, exposes port 3000, and mounts a persistent data directory.

Build Pipeline

The repository currently contains multiple build and release paths inherited from previous development.

These include:

  • A root Dockerfile using a MUSL-linked Rust binary.
  • A justfile containing build and release recipes.
  • GitHub Actions workflows for CI and image publishing.
  • A local Docker deployment script.

These workflows are being reviewed and consolidated into a reproducible build process.

Until that work is complete, deployment commands should be validated against the target environment.

Development Roadmap

Bloggy is an actively evolving personal project.

The following areas are planned for improvement.

Post Creation and Editing

  • Investigate and resolve existing post-related bugs.
  • Improve reliability of post creation and editing.
  • Add regression tests for corrected behavior.

Syntax Highlighting

  • Identify and verify the existing syntax-highlighting implementation.
  • Locate the corresponding syntax-highlighting CSS theme.
  • Bundle the required stylesheet with Bloggy's static assets.
  • Include the stylesheet through the shared HTML <head> template.
  • Ensure highlighting styles coexist correctly with Tailwind CSS.
  • Verify code blocks render correctly across supported themes.

Frontend and Styling

  • Improve responsive layouts.
  • Refine Tailwind CSS styles.
  • Review existing Askama templates and HTMX interactions.
  • Remove obsolete frontend assets where appropriate.
  • Improve consistency across pages and components.

Authentication

  • Review the existing authentication and session architecture.
  • Improve error handling and security-sensitive workflows.
  • Evaluate opportunities to simplify authentication.
  • Expand automated tests for authentication behavior.

Build and Deployment

  • Consolidate redundant Docker build configurations.
  • Simplify Rust build and release commands.
  • Remove unnecessary task-runner dependencies.
  • Review MUSL and native-library compatibility.
  • Modernize CI for the project's current Forgejo hosting.
  • Preserve reproducible builds across supported architectures.
  • Improve deployment reliability.

Documentation

  • Maintain accurate installation and configuration documentation.
  • Document the current application architecture.
  • Preserve upstream attribution and licensing information.
  • Document development and production workflows as they are verified.

Origins and Acknowledgments

Bloggy is based on fx by Rik Huijzer.

The original fx project provides the foundation for much of Bloggy's functionality, including its publishing model, database-backed storage, RSS capabilities, and backup functionality.

Bloggy builds on that work with an evolving architecture and frontend built around Askama, Tailwind CSS, and HTMX.

Credit for the original project belongs to Rik Huijzer and its contributors.

Original copyright notices and applicable licensing terms should remain intact. See LICENSE for the repository's license.

Bloggy is an independently maintained fork and is not an official release of the upstream fx project.

License

Bloggy retains the applicable licensing requirements of its upstream foundation.

See LICENSE for details.