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

๐Ÿงฉ Components

๐ŸŒŠ Client-Side

๐Ÿ—๏ธ Server-Side

๐Ÿ—„๏ธ Database

๐ŸŒ API Framework

โ˜๏ธ Deployment

๐Ÿงช Testing & Tooling

๐Ÿงฉ 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

๐Ÿ“– Examples

๐Ÿ”„ Migration

๐ŸŽฏ Quick Navigation

I want to...

๐Ÿ“ฆ 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 (/testing subpath) and Language Server (coherent-language-server binary)
  • @coherent.js/state - Reactive state management
  • @coherent.js/devtools - Developer tools, performance profiling, and optimization utilities (cache, code-splitting, lazy-loading via /performance subpath)

Editor Tooling

  • @coherent.js/tooling - LSP server (binary: coherent-language-server) and testing utilities (/testing subpath)
  • coherent-language-support - VS Code extension

๐Ÿ†˜ Getting Help

If you need help:

  1. Check the API Reference for function signatures
  2. Look at Examples for practical implementations
  3. Try the Quick Start guide
  4. Review Performance Patterns for optimization
  5. Open an issue on GitHub

๐Ÿ“„ License

Coherent.js is MIT licensed.