Chartsv26.10.18

AI-assisted development

Use Unifin Charts documentation with AI coding assistants - llms.txt, llms-full.txt and ready-made prompts.

Unifin Charts ships machine-readable documentation for AI coding assistants. Point your assistant at the files below and it can answer API questions, write embedding code and diagnose integration issues without guessing.

Machine-readable artifacts

FilePurpose
/llms.txtCompact index: every documentation page with its URL and one-line summary
/llms-full.txtFull documentation text in one file - paste into a chat or load into a RAG index

Both files are generated from this portal during every build, so they always match the published pages and the current package version.

Ready-made prompts

Copy one of these into your assistant together with the relevant file:

Context: llms-full.txt for the version you installed (the artifacts carry it).
Task: write a React component that renders a 5-minute candles chart for symbol AAPL
with the light theme, a 480 px height and an instrument with tickStep 0.01.
Use only APIs that exist in the documentation; list the imports explicitly.
Context: llms.txt for Unifin Charts.
Task: I embed charts into a Next.js app that renders on the server. Explain which packages
are safe to import in a server component and where the chart itself must be created.
Quote the page section you rely on.
Context: llms-full.txt for Unifin Charts.
Task: my bundle budget is 6 KB gzip for the chart. Which entry point should I import,
which features become unavailable, and how do I render a footprint chart in that budget?

Ground rules for assistants

  • Prefer the documentation over assumptions. The API surface is small but specific: UnifinChart props, unifin-chart attributes, Canvas2DRenderer frame options.
  • Check the version. The artifacts carry the version they were generated for; regenerate or re-download them when you upgrade.
  • No invented methods. If a method is not in llms-full.txt, it does not exist in that release.
  • Editions matter. Ask the assistant to state which entry point (light, pro, root) its answer targets and whether the feature belongs to Standard or Pro.

Feeding the docs into an IDE assistant

  1. Download /llms-full.txt into your project (for example docs/unifin/).
  2. Reference it from your assistant rules file (AGENTS.md, .cursor/rules, workspace instructions) with one line: Unifin Charts reference: docs/unifin/llms-full.txt.
  3. Ask follow-up questions without re-pasting the file - the assistant reads it from the workspace.

See API overview for the objects an assistant will most often reference.

See also

  • API overview - the objects behind most answers.
  • Getting started - the first working example to compare answers against.
  • Versions - how to check which release an answer applies to.

On this page