RepoOpenAIOpenAIpublished Aug 7, 2025seen 6d

openai/gpt-5-coding-examples

HTML

Open original ↗

Captured source

source ↗
published Aug 7, 2025seen 6dcaptured 13hhttp 200method plain

openai/gpt-5-coding-examples

Description: GPT-5 coding examples

Language: HTML

License: MIT

Stars: 1882

Forks: 288

Open issues: 0

Created: 2025-08-07T01:06:40Z

Pushed: 2025-12-11T18:57:41Z

Default branch: main

Fork: no

Archived: no

README:

GPT-5* Coding Examples

This repository contains a curated collection of demo applications generated entirely in a single [GPT-5](https://platform.openai.com/docs/models/gpt-5) or [GPT-5.2](https://platform.openai.com/docs/models/gpt-5.2) prompt, without writing any code by hand.

These demos were selected to showcase the model’s strengths in coding — especially quickly scaffolding websites, front-end applications, games, and interactive UIs from natural-language descriptions. They’re intended as inspiration for you to build your own ideas.

Explore Examples

You can explore the demos by cloning this repo and running it locally.

cd front-end
npm install
npm run dev

The app will be available at localhost:3000.

You can also visit the hosted version.

From there, you can view any example, see the zero-shot prompt that created the code, and remix it for your own ideas.

Build with GPT-5

If you want to experiment with similar prompts, you can try GPT-5 in your preferred coding environment:

  • [Codex CLI](https://github.com/openai/codex) – A lightweight coding agent that runs in your terminal.
  • Your favorite IDE or coding tool – Use GPT-5 within your existing workflow to generate and refine code.
  • [ChatGPT](https://chatgpt.com) – Open ChatGPT and choose GPT-5 to generate and preview code in the browser.

Choose an example, copy its prompt for inspiration, and adapt it to your own needs. Let GPT-5 build your idea, then iterate on the prompt or code to explore variations.

For Developers: Codex CLI

We recommend using the **Codex CLI** with GPT-5 for a seamless coding experience.

The Codex CLI runs in your terminal: given a prompt, it will generate code, execute it in a sandbox, and even preview the results live.

Example:

codex --model gpt-5 --full-auto "Build a simple photobooth application with camera access in a single HTML file"

GPT-5 will scaffold the app, write files, install dependencies as needed, and show a live preview. This is the go-to solution for developers who want to bootstrap apps or add features quickly.

You can also use GPT-5 with any other AI coding tool that supports the model.

For Non-Developers: ChatGPT

If you don’t have a coding environment, you can use **ChatGPT** (with GPT-5) to build and preview apps entirely in the browser:

1. Copy an example’s prompt for inspiration and customize it to make it your own. 2. Let GPT-5 generate the code (HTML/CSS/JavaScript). 3. Open it in Canvas preview to see it run live. 4. Download or copy the output HTML for real-world use.

With this method, _anyone_ can create a working single-page app — no local setup required.

> [!NOTE] > We are not accepting contributions at this time. > This repo is for reference and inspiration only. If you’d like to build on these ideas, please fork the repo for your own experiments.

Notability

notability 6.0/10

OpenAI GPT-5 coding examples repo