0hq/WebGPT
Run GPT model on the browser with WebGPU. An implementation of GPT inference in less than ~1500 lines of vanilla Javascript. observed · 2026-08-28
Health v2 · maintenance only
30/100
- Activity 0
- Release rhythm 35
- Longevity 87
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1231
- days_rel: n/a
- days_push: 964
- n_releases_24m: 0
Adoption not part of the score
3792 stars · 223 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
WebGPT is a vanilla JavaScript and HTML implementation of GPT transformer inference running in the browser via WebGPU, in under ~1500 lines of code. It serves as both a proof-of-concept for browser-based LLM inference and an educational resource, with tested support for models up to ~500M parameters.
Use cases
- run GPT models entirely in the browser without a server
- learn how transformer inference works from a small codebase
- experiment with WebGPU compute shaders for machine learning
- run GPT-2 locally client-side with no backend
- demo browser-based LLM inference to others
- benchmark token generation speed on GPU in the browser
When to choose
- you want serverless, fully client-side LLM inference in a WebGPU-capable browser
- you want a small, readable codebase to learn transformer/GPU kernel implementation
- you want a proof-of-concept for WebGPU compute in ML
When to avoid
- you need production-grade, optimized inference for large models
- you need broad browser support (WebGPU is still rolling out)
- you need a packaged library or stable API - it's a proof-of-concept
- you need fast inference for models above ~1B parameters
Facets
library · maturity experimental
llm-inference deep-learning machine-learning gpu-computing large-language-models deep-learning web-development education browser webgpu gpt transformers vanilla-javascript client-side-inference proof-of-concept educational javascript
1 source
- readme: https://github.com/0hq/WebGPT · fetched 2026-08-28 · b55f2b698ca8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| 0hq/WebGPT | main | 30 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem