# Ghost Text > Ghost Text adds inline suggestions to AI chat composers: the rest of the message in light gray as people type, and the next message after the assistant replies. Tab to accept. Install with `npm install @ghosttext/core @ghosttext/react`, or `@ghosttext/dom` without React. Works with any textarea, React 19, Chrome's on-device model, and any OpenAI-compatible API through your own endpoint. ## Docs - [Guide](https://hardflip.studio/ghost-text/docs/guide.md): Install, React, keys, sources, plugins, styling and accessibility. - [API reference](https://hardflip.studio/ghost-text/docs/api.md): Every export, with its signature and an example. - [Endpoint](https://hardflip.studio/ghost-text/docs/endpoint.md): The request and response endpoint() expects, a validator, and how to protect the route. - [assistant-ui](https://hardflip.studio/ghost-text/docs/recipes/assistant-ui.md): Ghost Text in an assistant-ui composer. - [AI SDK and AI Elements](https://hardflip.studio/ghost-text/docs/recipes/ai-sdk.md): Ghost Text with useChat and PromptInput. - [Backend with the AI SDK](https://hardflip.studio/ghost-text/docs/recipes/backend-ai-sdk.md): An endpoint with streamText, an auth check and rate limiting. - [Backend with the OpenAI API](https://hardflip.studio/ghost-text/docs/recipes/backend-openai.md): An endpoint with plain fetch and gpt-6-luna, including reasoning models. - [Several composers](https://hardflip.studio/ghost-text/docs/recipes/several-composers.md): One source on a page with many composers and shared messages. - [Architecture](https://hardflip.studio/ghost-text/docs/architecture.md): How the engine, sources and surfaces fit, and why. - [Reference](https://hardflip.studio/ghost-text/REFERENCE.md): Every export, generated from the type declarations. ## Optional - [Everything in one file](https://hardflip.studio/ghost-text/llms-full.txt) - [Agent skill](https://github.com/francoischalifour/ghost-text/blob/main/skills/ghost-text/SKILL.md): how a coding agent adds Ghost Text to an app. - [shadcn registry](https://hardflip.studio/ghost-text/r/registry.json): `npx shadcn add https://hardflip.studio/ghost-text/r/ghost-textarea.json`, plus a demo and a chat composer block.