Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Vite Example

Minimal Vite + vanilla TypeScript terminal running just-bash — no React, no framework, just a <div> and @wterm/dom.

Setup

From the monorepo root:

pnpm install
zig build
pnpm --filter vite dev

Opens at vite-example.wterm.localhost via portless.

How It Works

  • @wterm/dom creates and manages the terminal in a plain <div>
  • @wterm/just-bash provides a Bash shell that runs entirely in the browser
  • Virtual files (README.md, hello.sh) are preloaded into the shell

Key Files

File Description
src/main.ts Creates the terminal and attaches a bash shell
index.html Minimal HTML with <div id="terminal">