Search KetJS

Search titles, descriptions, and section headings.

    Diagram

    100%
    Drag to pan · Scroll or pinch to zoom · + / − to zoom · Arrow keys to pan · 0 to fit · 1 to reset
    Browse documentation
    Docs/Set up KetJS

    Documentation

    Find KetJS contracts by responsibility, from module composition and request execution to data, rendering and runtime operations.

    Find your entry point#

    KetJS 0.2.0 is in preview

    The project is in active review. Use it for evaluation and feedback, expect API and data-format changes before 1.0, and avoid production workloads for now.

    For step-by-step projects, follow Learn KetJS. These Docs explain the contracts behind those projects and provide a reference when you are building your own application. To run a first application, read:

    1. Installation and quick start — scaffold and run a working SQLite application.
    2. Directory structure — locate module declarations, workspace configuration and emitted artifacts.
    3. Configuration — select the workspace, deployment and runtime services.

    Browse by KetJS responsibility#

    Find the contract you need below. Each group follows one KetJS responsibility, with its guides listed in reading order. Start with composition, then follow a request through data, identity and rendering; verification and deployment bring those contracts together.

    Set up KetJS#

    Create a runnable project and understand its files and settings.

    1. Quick start
    2. Directory structure
    3. Configuration

    Application composition#

    Define a module, select a deployment's modules in a workspace, then learn how named modules resolve from filesystem roots.

    1. Modules and manifest
    2. Workspaces and deployments
    3. Module discovery

    Request execution#

    Follow a request through its context, server functions and HTTP boundary. Validate form input and describe the public HTTP contract.

    1. Request lifecycle
    2. Functions and effects
    3. HTTP routes and responses
    4. Form validation
    5. HTTP contracts and OpenAPI

    Data contracts#

    Declare models and scopes, prepare the schema with the selected adapter, then read and change data through validated operations.

    1. Models and scopes
    2. Migrations and adapters
    3. Queries and changesets

    Identity and access#

    Resolve sessions and tenant context before deciding which operations the current identity may execute. Read this group alongside data scopes when building a tenant application.

    1. Sessions and tenants
    2. Authorization

    ketjs-view and KTL#

    Understand pure rendering and island lifecycles, then choose browser data loading, a static site or server theme templates. Menus, localization and reports build on those output contracts.

    1. Rendering and islands
    2. Effects and data fetching
    3. Static sites with ketjs-view
    4. Themes and KTL
    5. Menus and localization
    6. Reports and PDF

    Runtime services#

    Run durable work outside the request, connect storage and transports, and record operational events. These services belong to the selected deployment.

    1. Durable jobs and workers
    2. Storage, transport, and streams
    3. Operational logging

    Verify and deploy#

    Test the actual deployment, interpret workload-specific measurements, then build and operate its HTTP and worker processes.

    1. Testing
    2. Benchmarks
    3. Deployment

    API and tooling#

    Look up an exported API, CLI command or configuration field once you know which contract you need.

    1. Public API
    2. CLI and configuration

    Project evolution#

    Check the current package boundaries and upgrade requirements. Review design decisions and unresolved questions before contributing or publishing framework packages.

    1. Release notes
    2. Upgrading KetJS
    3. Architecture decisions
    4. Open questions
    5. Contributing
    6. Publishing packages

    Follow a task#

    Goal Reading path
    A fullstack application Modules → Workspaces → Server functions → HTTP routes
    A data workflow Models → Migrations → Query builder
    An interactive view Rendering and islands → Effects and data fetching → Form validation
    A static or client-rendered site Rendering and islands → Static sites with ketjs-view → Runnable example
    A secure tenant application Sessions and tenants → Authorization → Model scopes
    Background and integration work Jobs and workers → Storage, transports and streams

    Framework and ecosystem#

    This site documents KetJS. KetSuite, its design system, Flow and product clients use the framework but have their own source, releases and documentation. See Release notes for the package boundaries.

    Use Learn KetJS for guided exercises, the Playground for browser experiments, and the Blog for explanations of the engineering choices behind these contracts.

    View source on GitHub ↗KetJS 0.2.0 preview