Skip to content

Architecture Overview

SnapCode is 100% CLIENT-SIDE - no server required for main functionality.

PrincipleDescription
BuildlessNo npm, webpack, or build tools
ServerlessRuns entirely in browser
ComponentlessNo React/Vue/Svelte complexity
Single FileJust 56KB HTML file
CDN DependenciesNo node_modules bloat
  • Alpine.js - Reactive UI without build step
  • Tailwind CSS (CDN) - Utility-first styling
  • Marked.js - Markdown parsing
  • DOMPurify - XSS protection
  • Prism.js - Syntax highlighting
  • Mermaid.js - Diagram rendering
  • KaTeX - Math formula rendering
  • html2canvas - PNG export
  • Fira Code - Programming font with ligatures
Traditional Stack: SnapCode:
├── node_modules/ (200MB) ├── index.html (56KB)
├── package.json └── README.md
├── webpack.config.js
├── babel.config.js
├── src/
│ ├── components/
│ ├── styles/
│ └── index.js
└── dist/

Result: 56KB vs 200MB+ for the same functionality.

The server.py is OPTIONAL and only for:

  • 📚 Learning dynamic file loading
  • 📚 Backend/DevOps study case
  • 📚 REST API concepts

Main app works perfectly without it!