Case study

Back to projects

Dualizm

Shu saytning o'zi · 2026

Bitta kontent, ikki dunyo: kun va tun. PHP/SQLite CMS, Canvas va faqat kerak bo'lganda yuklanadigan Three.js tajribasi.

  • Vanilla JS
  • Canvas 2D
  • Three.js (lazy)
Domain Personal portfolio
Primary stack PHP, SQLite, Vanilla JS, Canvas, lazy Three.js
Focus CMS boundaries, progressive enhancement, day/night identity
Portfolio CMS and interactive identity Based on available portfolio metadata and live demos. Where source is not linked, architecture notes describe the intended design rather than a verified implementation.

Overview

Dualizm is this site: a PHP and SQLite portfolio engine with public pages, admin editing, comments, analytics, coding demos, gallery media, and an optional galaxy experience.

Problem

A portfolio should present engineering work clearly without turning into a pile of disconnected demos.

Constraints

Shared hosting friendliness, no heavy framework requirement, safe public comments, admin-only editing, and visual effects that must not block navigation.

Architecture

Requests enter a small router, controllers call repositories, SQLite stores CMS data, views render escaped output, and expensive visuals are loaded only after user intent.

Technology Decisions

PHP and SQLite keep deployment small. Vanilla JS avoids a hydration tax. Three.js remains lazy so the core site stays usable if WebGL fails.

Data Flow

Admin content is saved through CSRF-protected forms, repositories normalize persistence, public controllers query published records, and views render route-specific metadata.

Engineering Challenges

The interesting challenge is separating public presentation from CMS internals while keeping the site easy to edit.

Security

The current codebase uses prepared statements, CSRF on form writes, session regeneration on login, sandboxed coding previews, and plain-text public comments.

Performance

The hero canvas is progressive, comments load lazily, and the galaxy module is imported on demand.

Reliability / Failure Handling

Missing routes return a real 404, coding files are served through a checked controller path, and comments default to moderation.

Lessons

A distinctive site still needs plain engineering hygiene: routes, metadata, validation, and fallback behavior.

What I Would Change Today

Add automated browser tests, a richer admin flash/toast system, and image resizing for uploaded media.

Repository

Source not publicly linked

No fake repository CTA is shown for this project.