Glimpse
Add an AI assistant that can see the page to your NiceGUI app, in one line.
from nicegui import ui
import glimpse
@ui.page('/')
def dashboard():
ui.echart({...})
ui.aggrid({...})
glimpse.attach() # That's it
ui.run()
Users get a side panel where they can ask about what is on their screen. The assistant reads the live page when they ask, including their filters, sort order, selected tab and chart zoom. You do not annotate anything or pass it any data.
Status: 0.2, an early MVP. Capture, the panel and the security defaults are tested in a real browser. With Claude Opus 5.5, it answered all 26 reference questions correctly, in one run on a single dashboard with a simple scorer. That is a good early sign, not a full evaluation. See known limits.
Install
pip install "glimpse-ai[anthropic]"
Pick the extra for your model: anthropic, vertex for Google Cloud Vertex AI, gemini, openai for OpenAI and local models, and adk for Google ADK agents. The package is glimpse-ai, and you import it as glimpse. Python 3.10 or later and NiceGUI 3.19 or 4 are required. NiceGUI 4, Gemini and ADK need Python 3.11 or later.
Try it
No API key is needed. Without one, the panel runs in a clearly labelled offline demo mode that answers from simple rules over the page.
git clone https://github.com/axnsantana/glimpse-ai && cd glimpse-ai
conda env create -f environment.yml && conda activate glimpse
python examples/02_sales_dashboard.py
For real answers, set ANTHROPIC_API_KEY or OPENAI_API_KEY on the server, point it at a Google Cloud project for Vertex AI, or run a local model. See Choosing a model.
Examples
Each one is a small runnable app, and each one runs in the test suite as it ships.
| Example | Shows | |
|---|---|---|
| 01 | Quickstart | One line, and answers that follow the screen |
| 02 | Sales dashboard | ui.echart, ui.plotly, ui.aggrid, ui.table, inputs and tabs, with no annotations |
| 03 | Large data | 200,000 points inside a 6,000-token budget |
| 04 | Multi-page apps | One call for a whole app, including sub pages |
| 05 | Existing layouts | Sharing a page with drawers and hostile CSS |
| 06 | Custom engines | Your own agent, in as little as one async generator |
| 07 | Choosing a model | Cloud or local models, prompts, usage and limits |
| 08 | Privacy and security | Secrets stay out, and a compromised model cannot exfiltrate data |
| 09 | Developer context | Adding what the screen cannot show |
| 10 | Two users | Sessions that never see each other |
| 11 | Cloud and agents | Vertex AI with a project and region, the council engine, and your own ADK agent |
What makes it different
Passing data to a chat function by hand works until users start filtering. Then a hand-wired assistant answers from all the rows while the user looks at a few. Glimpse reads the view the user actually has, on each question.
| Sees the applied view | Grid filters and sort, chart zoom and hidden series, table sort, inputs and tabs |
| Stays inside a budget | Large tables and series become statistics computed in Python, plus a visible "Showing 50 of 12,000 rows" and read-only tools to fetch more |
| Shows its work | "What the assistant saw" under each answer, and sources that scroll to the element used |
| Safe by default | Passwords withheld, hidden text ignored, images and external links in answers disabled, sessions isolated |
| Your model | Claude and Gemini, on their APIs or on Vertex AI, OpenAI, local models, a council of models that checks its answers, a Google ADK agent, or your own. No cloud service of ours, and no agent framework required |
| Small | NiceGUI is the only required dependency |
How it works
Page (NiceGUI) -> Adapter -> PageContext -> Context builder -> Engine -> Model -> Sanitizer -> Panel
Everything runs in your NiceGUI process. Read Data flow to see what goes where.
Docs
- Getting started
- Choosing a model
- Engines: direct, council, ADK and your own
- Data flow
- Visibility policy: what counts as "seen"
- Security and privacy
- Known limits
- Releasing
- Versioning
- NiceGUI internals
- Requirements status: each SRS requirement and its evidence
- Going public: the steps to release the code and publish the presentation page in
site/
Development
conda env create -f environment.yml && conda activate glimpse
pytest # Fast tests, including every example
pytest -m e2e # Real Chrome against the real examples
ruff check src tests examples
pytest -m live scores a real model on the reference question set (about $0.35 on Claude Opus 5.5) and checks real requests against the budget with the free token counting endpoint. See tests/test_fidelity.py.
License
Metadata
Release files for glimpse-ai 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| glimpse_ai-0.2.0.tar.gz | 646.5 kB | With provenance | Details for glimpse_ai-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glimpse_ai-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for glimpse_ai-0.2.0-py3-none-any.whl |
Total release size: 731.8 kB
Release files / glimpse_ai-0.2.0.tar.gz
| Download URL | glimpse_ai-0.2.0.tar.gz |
|---|---|
| Size | 646.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b67dc8a60b83cc8461cb0d36063ab84b2dfd89c20c04a7f083f2122e13c132f
|
|
BLAKE2b-256 checksum How to use checksums |
7229e9ad264532f26838859696bf4e25d57caa527eb76fa710a138718a64662f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / glimpse_ai-0.2.0-py3-none-any.whl
| Download URL | glimpse_ai-0.2.0-py3-none-any.whl |
|---|---|
| Size | 85.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d48fd457b4383bd9f3ae5491ed116f8e37df544318fc2d0b14d26ffab595b21e
|
|
BLAKE2b-256 checksum How to use checksums |
b27e031a2dd80bc24fa17fe8a52dd3c36f2abe7c0249bb2401aba43ae5ef34d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for glimpse-ai 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for glimpse_ai-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.