# Jali > A new layout primitive for React apps. Split any part of your app into adaptive tiling panes; your users arrange them the way they work, on any screen. Jali is one package, `jali-layout`. Its framework-free core (the layout tree, fitting, actions and events) is `jali-layout`; React renders it from `jali-layout/react`; each optional feature has its own entry (`jali-layout/url`, `jali-layout/palette`, …). Every page below is Markdown, and all of them together are at /llms-full.txt. The same pages ship inside the package as `node_modules/jali-layout/docs/`, for the installed version. ## Get started - [Introduction](https://jali.ramizrahman.com/get-started/introduction.md): What Jali is, the problem it solves for apps where people work on several things at once, and when not to use it. - [Why Jali](https://jali.ramizrahman.com/get-started/why-jali.md): Jali beside dockview, FlexLayout, react-mosaic, Golden Layout and react-resizable-panels: when each is the better choice, and what Jali costs and works with. - [Installation](https://jali.ramizrahman.com/get-started/installation.md): Add Jali to a React app with Vite, Next.js or another bundler, render it on the server, and set up TypeScript. - [Quickstart](https://jali.ramizrahman.com/get-started/quickstart.md): Build the smallest Jali app, a note whose button opens the next note beside it. - [Key concepts](https://jali.ramizrahman.com/get-started/key-concepts.md): Every word Jali uses, defined in a sentence or two, most with an example or a picture. - [Using Jali with coding agents](https://jali.ramizrahman.com/get-started/coding-agents.md): The rules a coding agent, or a person, should follow when adding Jali to an app. ## Learn - [The layout tree](https://jali.ramizrahman.com/learn/layout-tree.md): A layout is a tree of rows, columns, stacks and panes, with a size on every node, and notes beside it for what is hidden. - [How a layout fits](https://jali.ramizrahman.com/learn/fitting.md): Each kind says how narrow it can go, and when the panes don't fit, Jali folds them into tabs one at a time and brings them back in reverse as room returns. - [Opening and linking](https://jali.ramizrahman.com/learn/opening-and-linking.md): A pane opens other objects beside itself, in its own place, or in a peek, and Jali keeps a chain of links from filling the screen. - [Following a list](https://jali.ramizrahman.com/learn/following.md): A list reports its selection, and a detail opened from it follows that selection, in place, until the person keeps it. - [Curated pages](https://jali.ramizrahman.com/learn/curated-pages.md): A designed page about one item, with tabs of views, that the person can read one view at a time or lay out side by side. - [Accessibility](https://jali.ramizrahman.com/learn/accessibility.md): What Jali guarantees for keyboard, screen reader and forced-colours users, the keys it uses, and what your panes still have to do. ## Guides - [Define a pane kind](https://jali.ramizrahman.com/guides/pane-kinds.md): Describe one kind of pane: what it shows, how narrow it can go, the component that draws it, and what people may do with it. - [Lay out panes](https://jali.ramizrahman.com/guides/layouts.md): Write the layouts Jali opens on, put panes in tabs and in rows that scroll sideways, and let Jali tidy them when they pile up. - [Keep the layout in the URL](https://jali.ramizrahman.com/guides/url-and-routers.md): Put the layout in the address so links reopen it and Back steps through it, with or without a router. - [Unsaved work and pane state](https://jali.ramizrahman.com/guides/unsaved-work-and-pane-state.md): Ask before a pane's unsaved work is lost, keep what a person expects back, and add a pane's commands to ⌘K. - [Commands and keys](https://jali.ramizrahman.com/guides/commands-and-keys.md): Rebind Jali's keys, share ⌘K and the keyboard with your app, let your content keep the keys it needs, and show the right shortcut. - [Theme and words](https://jali.ramizrahman.com/guides/theming.md): Make Jali look like your app with its tokens and parts, speak your language, and share one theme with Chakni. - [Fit Jali into your app](https://jali.ramizrahman.com/guides/your-app.md): Choose the features you ship, put your own chrome around the panes, run two instances on one page, and let an agent arrange panes. - [Test your layouts](https://jali.ramizrahman.com/guides/testing.md): Test your layouts and pane rules without a browser, by running Jali's actions and reading its state with jali-layout/testing. - [Troubleshooting](https://jali.ramizrahman.com/guides/troubleshooting.md): Fixes for the problems people meet first, and Jali's development warnings. ## Reference - [jali-layout](https://jali.ramizrahman.com/reference/core.md): Every function and constant jali-layout exports, with its options, defaults and what it returns. - [jali-layout types](https://jali.ramizrahman.com/reference/core/types.md): Every type jali-layout exports, with its fields, and every instance action: the layout tree, kinds and pages, the instance, the address, commands and keys. - [jali-layout/react](https://jali.ramizrahman.com/reference/react.md): Every component, hook and type jali-layout/react exports, with its props, defaults and what it returns. - [Features](https://jali.ramizrahman.com/reference/features.md): What an instance does beyond laying out panes, each a value from its own entry, so an app ships only what it uses. - [jali-layout/testing](https://jali.ramizrahman.com/reference/testing.md): An instance for tests, keys, and what a rendered pane would report, without the adapter's internals. - [Tokens](https://jali.ramizrahman.com/reference/tokens.md): Every public Jali token, what reads it, its light and dark values, and how the Tailwind bridge maps it. - [Parts](https://jali.ramizrahman.com/reference/parts.md): Every part of Jali you can style, its element, its selector, and the attributes that carry its state. - [Commands](https://jali.ramizrahman.com/reference/commands.md): Every command, its default keys on a Mac and on Windows and Linux, and when it is refused. ## Examples - [Overview](https://jali.ramizrahman.com/examples.md): Six real apps built on Jali, each running here: a database browser, a loan review, a market terminal, an audio editor, a trip planner and a network lab. - [Data Studio](https://jali.ramizrahman.com/examples/data-studio.md): A database browser where the person builds the layout: tables, records, related records, SQL queries and charts, each in a pane. - [Loan review](https://jali.ramizrahman.com/examples/loan-review.md): An underwriter works through a queue of mortgage applications, one curated page per application. - [Markets](https://jali.ramizrahman.com/examples/markets.md): A market terminal for shares, bonds, currencies, indices and crypto, laid out as desks. - [Studio](https://jali.ramizrahman.com/examples/studio.md): An audio session editor: a transcript that lights up word by word, a timeline, a mixer and markers, all following one playhead. - [Trips](https://jali.ramizrahman.com/examples/trips.md): A map-first planner for a week in Thailand: the days, each day's stops and travel, hotels to compare, and the budget, around a big map. - [Handshake](https://jali.ramizrahman.com/examples/handshake.md): A network lab with the course beside the tools: read packets layer by layer, measure your connection, and learn how it all works.