Skip to content

dzulfanf/codepad

Repository files navigation

codepad.

codepad

A live HTML, CSS & JS playground — write code, see it render instantly.

Features

  • Live preview — debounced iframe updates as you type
  • Split-pane layout — draggable divider between editor and preview
  • Three editors — HTML, CSS, JS tabs with syntax highlighting (CodeMirror 6)
  • Shareable links — code is compressed into the URL hash, share with anyone
  • Dark / Light theme — toggle between themes, persisted via next-themes
  • Responsive — desktop: side-by-side split pane, mobile: Code/Preview toggle
  • Documentation — technical walkthrough at /documentation
  • Zero backend — fully static, no server required

Tech Stack

Getting Started

npm install
npm run dev

Open http://localhost:3000.

Pages

Route Description
/ Playground — editor + live preview
/documentation Technical walkthrough of the architecture

Sharing Code

Every change is encoded into the URL hash. Copy the URL to share your snippet — the recipient opens it and the editor is pre-loaded with your code.

http://localhost:3000/#<lz-compressed-code>

License

MIT

About

Live HTML, CSS & JS playground write code, see it render instantly. Shareable via URL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors