Skip to content

Build a Dashboard with Claude Artifacts

Category Claude for Work & Life
Status ๐ŸŸก Partially completed
Repo nextwork-build-a-dashboard-with-claude-artifacts
Original NextWork guide nextwork.ai

Learning project

Practice work following a NextWork guide, separate from my production projects.

๐Ÿ“š NextWork learning project. This is a practice project I built while working through NextWork's Build a Dashboard with Claude Artifacts guide. It is part of my Learning portfolio and is fully separate from my production projects.

Category: Learning โ€บ Claude for Work & Life
Status: ๐ŸŸก Partially completed

Overview

Rendering each version and checking its numbers against the data is the only way to know if a generated dashboard is right. I used three months of made-up bakery sales, which I can total by hand.

Summary

Asked a local chat stand-in (with a bigger reply budget for whole pages) for a tiny HTML page, then a one-change edit, then a self-contained sales dashboard from three months of made-up bakery sales, then a store filter and a light/dark switch. Every page was opened in headless Chrome (docs/artifact-check.txt, docs/renders/). The first two pages were right. The dashboard showed the table but put total revenue at $10,095 (correct: $23,765) and named Elm the best store (Harbor is, $12,005 to $11,760). It drew no bars because of a script error, and the filter step added no drop-down or button. Partial: no Claude.ai, no React/Recharts, no share link.

The checks behind this are in docs/verification.txt.

Skills & tools

Prompt engineering, Iterative prompting, Python, Local LLMs (Ollama)

What I built

  • chat.py: a small local stand-in for the vendor's chat app. It has saved conversations you can rename, list and reopen, custom instructions, a memory file read by every new chat, and artifacts saved as files. It runs on qwen2.5:3b through Ollama. test_chat.py covers it offline.
  • session.json: my own prompts for a made-up person (none copied from the guide), run with python chat.py run session.json, which writes docs/transcript.md.
  • docs/transcript.md: all four requests and replies.
  • docs/artifacts/: the four saved pages.
  • docs/artifact-check.txt: script errors and element counts for each page in headless Chrome.
  • docs/renders/: screenshots of each page, plus steps.png side by side.
  • docs/review.md: my review of how the run went, including what the model got wrong.

How to run

# needs Ollama with qwen2.5:3b
python chat.py run session.json      # replays my prompts, writes docs/transcript.md
python chat.py list | python chat.py show <id>
python -m pytest -q test_chat.py

Verification

I ran the verification command on 2026-12-03. The full output is in docs/verification.txt.

/workspace/nextwork-portfolio/.venv/bin/python -m pytest -q -p no:cacheprovider test_chat.py && test -s docs/transcript.md && test -s docs/artifact-check.txt && echo CHAT OK

What isn't done, and why

This doesn't use Claude.ai Artifacts or its account: the app is a local stand-in and the model is qwen2.5:3b, which is much weaker than the vendor's model. Features that only exist in the vendor's product aren't reproduced. No React or Recharts, no account and no public share link. The first run of this session was cut off at the 650-token reply limit before the dashboard was finished. This is the rerun with a 2,200-token limit.


Original project: https://nextwork.ai/projects/881a1a03-2930-5b13-b381-0a030dd6e48e ยท Part of my NextWork Learning portfolio (hub).

Verification output

From docs/verification.txt:

$ /workspace/nextwork-portfolio/.venv/bin/python -m pytest -q -p no:cacheprovider test_chat.py && test -s docs/transcript.md && test -s docs/artifact-check.txt && echo CHAT OK

...                                                                      [100%]
3 passed in 0.02s
CHAT OK

[exit code 0]