Transform fastn.com into the comprehensive hub for all fastn development, specifications, and design decisions. Primary focus: Complete comprehensive fastn 0.4 documentation before moving to v0.5 content. This ensures the current stable release is thoroughly documented for developers and the community.
fastn.com/
βββ ftd/ # FTD Language docs (needs major updates)
βββ docs/ # General documentation
βββ get-started/ # Onboarding (needs review)
βββ examples/ # Code examples (expand)
βββ best-practices/ # Development practices (expand)
βββ tutorial/ # Learning materials (update)
βββ book/ # fastn book (comprehensive review needed)
- Outdated Content: Many .ftd files reference old syntax/features
- Incomplete Coverage: Missing comprehensive language specification
- Scattered Information: Design decisions not centralized
- Limited Examples: Need more practical, real-world examples
- Missing v0.5 Content: No documentation of new architecture
fastn.com/
βββ v0.5/ # NEW: v0.5 development documentation
β βββ architecture/ # System architecture documents
β β βββ compiler-pipeline.ftd # fastn-section β fastn-unresolved β fastn-resolved β fastn-compiler flow
β β βββ rendering-engine.ftd # fastn-runtime architecture
β β βββ terminal-rendering.ftd # Terminal rendering design & specs
β β βββ css-semantics.ftd # CSS-like property system
β β βββ continuation-system.ftd # fastn-continuation architecture
β βββ design-decisions/ # Major design choices and rationale
β β βββ ssl-design.ftd # SSL/TLS integration design
β β βββ automerge-integration.ftd # Automerge design decisions
β β βββ p2p-architecture.ftd # P2P networking design
β β βββ breaking-changes.ftd # v0.4 β v0.5 breaking changes
β βββ implementation-status/ # Current development status
β β βββ compiler-status.ftd # What's implemented in compiler
β β βββ runtime-status.ftd # Runtime implementation status
β β βββ roadmap.ftd # Development roadmap
β βββ specifications/ # Technical specifications
β βββ terminal-rendering-spec.ftd # Comprehensive terminal rendering spec
β βββ css-property-mapping.ftd # CSS property to terminal mapping
β βββ component-behavior.ftd # Component behavior specifications
fastn.com/
βββ language-spec/ # NEW: Comprehensive language specification for fastn 0.4
β βββ index.ftd # Language overview
β βββ syntax/ # Syntax specification
β β βββ sections.ftd # Section syntax rules
β β βββ headers.ftd # Header syntax and semantics
β β βββ comments.ftd # Comment syntax
β β βββ grammar.ftd # Complete BNF grammar
β βββ type-system/ # Type system specification
β β βββ primitive-types.ftd # boolean, integer, decimal, string
β β βββ derived-types.ftd # ftd.color, ftd.length, etc.
β β βββ records.ftd # Record type definitions
β β βββ or-types.ftd # Or-type definitions
β β βββ type-inference.ftd # Type inference rules
β βββ components/ # Component system
β β βββ definition.ftd # Component definition syntax
β β βββ invocation.ftd # Component invocation rules
β β βββ arguments.ftd # Argument passing semantics
β β βββ children.ftd # Children handling
β β βββ inheritance.ftd # Property inheritance rules
β βββ variables/ # Variable system
β β βββ declaration.ftd # Variable declaration rules
β β βββ scoping.ftd # Scoping rules
β β βββ mutability.ftd # Mutable vs immutable
β β βββ references.ftd # Variable references
β βββ functions/ # Function system
β β βββ definition.ftd # Function definition
β β βββ calls.ftd # Function calls
β β βββ expressions.ftd # Expression evaluation
β β βββ built-ins.ftd # Built-in functions
β βββ modules/ # Module system
β βββ imports.ftd # Import semantics
β βββ exports.ftd # Export rules
β βββ aliases.ftd # Alias system
β βββ package-system.ftd # Package management
fastn.com/ftd/
βββ kernel-components/ # ENHANCED: Comprehensive kernel docs
β βββ text.ftd # Enhanced with more examples
β βββ column.ftd # Layout behavior, CSS mapping
β βββ row.ftd # Flexbox semantics
β βββ container.ftd # Box model behavior
β βββ image.ftd # Media handling
β βββ video.ftd # Video component
β βββ audio.ftd # NEW: Audio component docs
β βββ checkbox.ftd # Form controls
β βββ text-input.ftd # Input handling
β βββ iframe.ftd # Embedded content
β βββ code.ftd # Code display
β βββ rive.ftd # Animation support
β βββ document.ftd # Document root
β βββ desktop.ftd # Device-specific rendering
β βββ mobile.ftd # Mobile-specific behavior
βββ terminal-rendering/ # NEW: Terminal-specific documentation
β βββ overview.ftd # Terminal rendering principles
β βββ ascii-art-layouts.ftd # ASCII box-drawing specifications
β βββ ansi-color-support.ftd # Color handling in terminals
β βββ responsive-terminal.ftd # Adapting to terminal width
β βββ interactive-elements.ftd # Terminal interaction patterns
fastn.com/
βββ examples/ # EXPANDED: Real-world examples
β βββ basic/ # Simple component usage
β βββ layouts/ # Layout patterns
β βββ forms/ # Form building
β βββ interactive/ # Interactive components
β βββ responsive/ # Responsive design
β βββ terminal-apps/ # NEW: Terminal application examples
β βββ full-applications/ # Complete application examples
βββ cookbook/ # NEW: Common patterns and solutions
β βββ component-patterns/ # Reusable component patterns
β βββ layout-recipes/ # Common layout solutions
β βββ styling-techniques/ # Advanced styling
β βββ performance-tips/ # Optimization techniques
Priority Order: Complete fastn 0.4 documentation first, then move to v0.5
- β Audit existing content - Identified outdated information in current fastn.com
- β Write documentation standards - Established testing guidelines and debug cheat sheet in CLAUDE.md
- π§ Begin comprehensive FTD 0.4 language specification - PR READY: Complete framework at
/spec/with all 6 major sections - β
Update existing kernel component docs - COMPLETED: Added missing
ftd.audiocomponent documentation
- Finish comprehensive language specification - Expand existing framework with detailed content
- β
Enhanced component documentation - COMPLETED: Added
ftd.audio, updated sitemap - Create comprehensive examples library - Real-world usage patterns
- Write cookbook entries - Common patterns and solutions for 0.4
- Review and update all 0.4 content - Ensure consistency and accuracy
- Add interactive examples - Live code examples where possible
- Create learning paths - Guided learning sequences for fastn 0.4
- Community contribution guides - How to contribute to fastn documentation
- Create v0.5 directory structure - Set up new documentation hierarchy
- Architecture documentation - Document v0.5 architecture decisions
- Design decision documentation - SSL, P2P, Automerge, terminal rendering design docs
- Create v0.5 specifications - Terminal rendering, CSS mapping, component behavior specs
- Complete Examples - Every feature must have working examples
- ASCII Output Specs - Terminal rendering must show expected output
- Cross-References - Comprehensive linking between related concepts
- Version Compatibility - Clear indication of version requirements
- Testing Instructions - How to test/verify examples
-- ds.rendered: Example Title
-- ds.rendered.input:
\-- ftd.text: Hello World
color: red
-- ds.rendered.output:
-- ftd.text: Hello World
color: red
-- end: ds.rendered.output
-- end: ds.rendered
-- ds.terminal-output: Terminal Rendering
Hello World (in red)
-- end: ds.terminal-output
.ftdextension for all documentation- Clear hierarchical structure
- Consistent naming conventions
- Index files for each directory
- Cross-reference files for navigation
- Completeness - 100% coverage of language features
- Accuracy - All examples tested against v0.5 codebase
- Usability - Clear navigation and discoverability
- Community Adoption - External contributions and feedback
- Developer Productivity - Faster onboarding and development
- ftd.audio component documentation - Live at
/ftd/audio/and/book/audio/with proper layout - Documentation testing standards - CLAUDE.md with build/test procedures and debugging cheat sheet
- Language specification framework - Complete structure at
/spec/(6 sections) - Built-in types accuracy audit - Fixed 3 critical issues in built-in-types.ftd:
- Corrected ftd.fetch-priority β ftd.image-fetch-priority type name
- Added 7 missing text-input-type variants (datetime, date, time, month, week, color, file)
- Fixed vh/vw/vmin/vmax data types from integer to decimal
- Built-in functions accuracy audit - Fixed 3 critical issues in built-in-functions.ftd:
- Fixed insert_at function parameter order in implementation example
- Corrected delete_at parameter name from 'v' to 'num'
- Fixed copy-to-clipboard parameter name from 'text' to 'a'
- Kernel component documentation audit - Systematically reviewed 12 components:
- Added missing role attribute to ftd.text
- Fixed fetch-priority type reference in ftd.image
- Fixed copy-paste error in ftd.column description
- Verified accuracy of 9 other kernel components (container, row, checkbox, text-input, video, iframe, code, desktop, mobile)
- Language Specification - Branch:
docs/language-specification-framework- All 6 major sections created: syntax, types, components, variables, functions, modules
- Clean URL structure:
/spec/section/ - All pages tested and working
- Ready for content expansion
Phase 1 Documentation Foundation - NEARLY COMPLETE:
- β Kernel component audit complete (12/12 components reviewed)
- β Major reference docs accurate (built-in-types, built-in-functions)
- π§ Language specification framework ready for review
Phase 2 Candidates (Pick Next):
- Add missing built-in functions - Math/string functions found in audit but not documented
- Create comprehensive examples library - Real-world usage patterns
- Set up terminal rendering documentation structure - Prepare for v0.5 content
- Audit remaining documentation files - Review non-kernel components and guides
This plan transforms fastn.com into the definitive resource for fastn development, ensuring that design decisions are documented, specifications are comprehensive, and developers have the resources they need to be productive.