github-code Web Component

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

It takes URLs like that, converts them to raw.githubusercontent.com/simonw/sqlite...7f82aa1246340dd14/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

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论