Skip to content

calebegg/codewich

Folders and files

NameName
Last commit message
Last commit date

Latest commit

95b140a · Nov 20, 2023

History

48 Commits
Oct 13, 2023
Oct 21, 2023
Oct 21, 2023
Oct 21, 2023
Nov 20, 2023
Oct 21, 2023
Oct 13, 2023
Nov 20, 2023
Mar 17, 2017
Mar 17, 2017
Oct 21, 2023
Feb 16, 2019
Oct 21, 2023
Oct 21, 2023
Oct 21, 2023

Repository files navigation

CodeWich

Build Status

CodeWich is a web app you can use to write small, self-contained snippets of TypeScript/JavaScript, CSS, and HTML, and to preview a simple page that combines them. The preview updates live as you type. It's similar to JSFiddle, JSBin, CodePen, and others.

This is not an official Google product.

Features

  • Native support for TypeScript, including error highlighting and autocompletion.
  • Your code automatically runs as you type.
  • Code snippets you write are automatically saved in a compressed form in the URL. This has a few benefits:
    • Your code never leaves your machine unless you decide to share your URL. Since the snippet is stored in the URL fragment (the part after the #), the CodeWich web server doesn't even log your code snippets.
    • You don't have to rely on CodeWich's availability. You can download your own copy and run it locally, or host it somewhere you control, and you'll always be able to decode your CodeWich URLs to get the original code.

Demos

CodeWich uses

  • Pako for compression
  • Loop Protect from JSBin to prevent accidental infinite for/while loops from breaking your tab.
  • Firebase for static hosting

Development

$ npm install

Running locally

$ npx parcel serve src/index.html

Deploying

$ npx parcel build src/index.html
$ npx firebase deploy -P qa
$ npx firebase deploy -P prod