Examples overview
Choose the right runnable example in the llamadart repository by task, from Dart console apps to a Flutter chat app, decision-model games, CLI, server and coding agent.
The repository ships runnable examples under example/, one per integration
style.
Which one should I start with?#
| Task | Example | What it shows |
|---|---|---|
| Learn the core Dart API, embeddings, SQLite vector retrieval, decision models, or image generation (Preview) | Basic app |
Minimal Dart console CLIs for chat, embeddings, retrieval,
DecisionEngine
, and
ImageGenerationEngine
.
|
| Build or explore a full Flutter product UI | Chat app | Flutter app with model downloads, runtime controls, multimodal input, speech, and image generation (Preview). |
| Run a small GGUF in a browser without cross-origin isolation | DartPad GGUF | Flutter app on preview.dartpad.dev with pinned CDN assets, model downloads, and streamed text. |
| Run decision models in a real-time app | Laya Tetris | Flutter game played in real time by a Laya decision model through DecisionEngine. |
| Drive interactive UI from a classifier or scorer | Laya Command Bar |
Flutter text field reshaped as you type using
DecisionEngine
,
embedBatch
, or
scoreNextToken
.
|
Keep a llama.cpp terminal workflow |
llama.cpp-Style CLI | Terminal chat with llama.cpp-style arguments and parity harnesses. |
| Serve chat, tools, and embeddings over HTTP | OpenAI-compatible server | Local OpenAI-style HTTP API backed by LlamaEngine. |
| Build an interactive coding agent in the terminal | TUI coding agent | nocterm terminal agent with one conversation and four file/shell tools. |
| Train your own LoRA adapter | LoRA Training Notebook |
Jupyter notebook that fine-tunes Qwen2.5 0.5B with
peft
and converts to GGUF for
LoRA adapters
.
|
Example catalog#
Merged into the task-to-example table in Which one should I start with?.
Global example requirements#
SDK versions, Apple deployment targets and the first-run runtime download are in Installation.
-
The Chat App enables both native runtime families,
llama.cppand LiteRT-LM, because it demonstrates GGUF and.litertlmmodels.