github-code Web Component

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story. The source provided limited text, so this summary is brief.

Why it matters

Very little: a small open-source web component for embedding GitHub code lines, notable mainly as an example of GPT-5.5 building a working tool from one prompt.

Read this as

Simon Willison released a small browser tool called github-code that lets web pages display specific lines of code straight from a GitHub file. You paste a GitHub web address with line numbers, and it fetches the file and shows just those lines. Willison says he built it entirely by prompting the AI model GPT-5.5 with one instruction. It lacks syntax highlighting, and the article gives no adoption or usage details.

Developer Simon Willison published github-code, an open-source web component that embeds specific line ranges of GitHub-hosted code into any web page, generated in one prompt to GPT-5.5. It demonstrates single-prompt AI development producing usable tools, not a commercial product. No pricing, roadmap, competitors or users are mentioned.

github-code is a Web Component accepting a GitHub URL with a line fragment (e.g. #L33-L54). It rewrites blob URLs to raw.githubusercontent.com, uses fetch() to retrieve the file, and renders the specified lines with line numbers but no syntax highlighting. Bookmarked URLs persist in the page fragment for sharing. The whole component was produced by a single GPT-5.5 prompt; no tests, benchmarks or performance figures are provided.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

github-code GitHub GPT-5.5 Simon Willison sqlite-ast Datasette

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading