cd /news/developer-tools/github-code-web-component · home topics developer-tools article
[ARTICLE · art-51652] src=simonwillison.net ↗ pub= topic=developer-tools verified=true sentiment=· neutral

github-code Web Component

Simon Willison built an experimental Web Component called github-code using GPT-5.5 that embeds code from GitHub by fetching raw content and displaying a specified range of lines with line numbers but no syntax highlighting.

read1 min views1 publishedJul 7, 2026

Tool: github-code Web Component An experimental Web Component built using GPT-5.5 and the following prompt:

let's build a Web Component for embedding code from GitHub

<github-code href="https://github.com/simonw/sqlite-ast/blob/437c759129154f05296324a7f82aa1246340dd14/sqlite_ast/parser.py#L9-L18"></github-code> It takes URLs like that, converts them to https://raw.githubusercontent.com/simonw/sqlite-ast/437c759129154f05296324a7f82aa1246340dd14/sqlite_ast/parser.py, then uses fetch() to fetch them and displays the specified range of lines - with line numbers, no syntax highlighting though

Show me a preview web browser so I can see your work

Here's what it looks like embedded on this page:

Tags: github, web-components, gpt

── more in #developer-tools 4 stories · sorted by recency
── more on @simon willison 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/github-code-web-comp…] indexed:0 read:1min 2026-07-07 ·