Infinity Writer Docs
Official technical manual, semantic standards, and keyboard reference for Infinity Writer.
Overview
Infinity Writer is a lightweight, distraction-free document composer developed in Vanilla JavaScript and HTML5. It addresses the common pitfall of web text editors: generating bloated, non-semantic HTML loaded with unmaintainable inline styling.
Open Source
Infinity Writer is completely open-source software licensed under the MIT License. Developers are free to inspect the codebase, integrate the engine into existing workflows, or contribute improvements.
# Clone the repository
git clone https://github.com/dev-hints/Infinity-Writer.git
cd Infinity-Writer
# Open directly in any web browser
open index.html
Key Features
Engineered specifically for writers, developers, and technical bloggers who care about HTML output quality.
Dark Mode Architecture
Infinity Writer generates HTML documents that natively adapt to the reader's operating system preferences without JavaScript overhead:
:root {
color-scheme: light dark;
--bg-color: #ffffff;
--text-color: #1e293b;
--link-color: #4f46e5;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #0b0f19;
--text-color: #f1f5f9;
--link-color: #818cf8;
}
}
Semantics & ARIA
Generated markup is strictly organized with appropriate semantic elements:
<article>&<section>: Proper content grouping instead of generic unstyled<div>tags.<header>&<time>: Standard metadata encapsulation with machine-readable timestamps.<figure>&<figcaption>: Accessible media captions without nested class clutter.<blockquote>&<cite>: Semantic quotes and author references.
Export Formats
Export your documents in multiple formats depending on your deployment target:
Keyboard Shortcuts
Accelerate your drafting workflow with streamlined editor keyboard shortcuts.
| Shortcut | Action |
|---|---|
| Ctrl + B | Format Bold Text |
| Ctrl + I | Format Italic Text |
| Ctrl + K | Insert Hyperlink |
| Ctrl + Shift + P | Toggle Live Preview Panel |
| Ctrl + Shift + E | Export Clean HTML Document |
| Ctrl + Shift + D | Toggle Dark/Light Mode Preview |
Architecture Breakdown
Designed with a lean modular architecture:
- Parser Engine: Lightweight regex and AST tokenizer converting raw text input into semantic nodes.
- DOM Serializer: Strict HTML5 output generator removing invalid or duplicate tags.
- Theme Engine: Zero-runtime CSS variable injection with
color-schemedeclaration. - Export Pipeline: In-memory blob generator for instant downloads with zero server-side round trips.