Coherent.js Documentation
Welcome to the official documentation for Coherent.js, a high-performance server-side rendering framework built on pure JavaScript objects.
๐ Documentation Structure
๐ Getting Started
- Quick Start - 5-minute setup guide
- Installation - Detailed setup instructions
๐งฉ Components
- Basic Components - Building with pure objects
- Advanced Components - Complex patterns
- State Management - Component state
- Styling Components - Component styling
๐ Client-Side
๐๏ธ Server-Side
- SSR Guide - Server-side rendering
๐๏ธ Database
- Integration - Database setup
- Query Builder - SQL utilities
- Query Builder API - API reference
๐ API Framework
โ๏ธ Deployment
- Guide - Deployment strategies
- Integrations - Framework adapters
- Performance - Optimization techniques
- Security - Security best practices
๐งช Testing & Tooling
- Testing Guide - Testing utilities and matchers
๐งฉ Extended Packages
- Forms - Form building, validation, and hydration
- i18n - Translations, formatters, and locale management
- SEO - Meta tags, sitemaps, and structured data
๐ ๏ธ Editor Support
- VS Code Extension - IntelliSense and snippets for VS Code
- LSP server for any editor โ ships with
@coherent.js/tooling(binary:coherent-language-server)
๐ง Advanced
- Utilities - Shared rendering utilities
๐ Examples
- Performance - Performance patterns
- Full Stack - Complete applications
- Tutorial - Step-by-step guide
๐ Migration
- From Other Frameworks - React/Vue migration
- Package Reorganization - v1.0.0-beta.2 upgrade
๐ฏ Quick Navigation
I want to...
- Get started quickly โ Quick Start
- Build components โ Basic Components
- Add interactivity โ Hydration
- Manage state โ State Management
- Handle routing โ Router
- Work with databases โ Database Integration
- Deploy to production โ Deployment Guide
- Migrate from React/Vue โ Migration Guide
- Build forms โ Forms Guide
- Test components โ Testing Guide
- Set up VS Code โ VS Code Extension
๐ฆ Package Reference
Coherent.js is a monorepo with multiple packages:
Core Packages
@coherent.js/core- Core framework@coherent.js/client- Client-side utilities@coherent.js/api- API framework
Integration Packages
@coherent.js/integrations- Framework integration adapters via subpath exports (/express,/fastify,/koa,/nextjs,/astro,/remix,/sveltekit)
Feature Packages
@coherent.js/database- Database adapters@coherent.js/forms- Form utilities@coherent.js/i18n- Internationalization@coherent.js/seo- SEO tools@coherent.js/tooling- Testing utilities (/testingsubpath) and Language Server (coherent-language-serverbinary)@coherent.js/state- Reactive state management@coherent.js/devtools- Developer tools, performance profiling, and optimization utilities (cache, code-splitting, lazy-loading via/performancesubpath)
Editor Tooling
@coherent.js/tooling- LSP server (binary:coherent-language-server) and testing utilities (/testingsubpath)coherent-language-support- VS Code extension
๐ Getting Help
If you need help:
- Check the API Reference for function signatures
- Look at Examples for practical implementations
- Try the Quick Start guide
- Review Performance Patterns for optimization
- Open an issue on GitHub
๐ License
Coherent.js is MIT licensed.