Skip to content

Omibranch/ghostwriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghostwriter

Automatically types realistic-looking code in your terminal. For live streams, recordings, or just looking busy.

ghostwriter writes code snippets character by character, simulating human typing speed — including realistic typos, pauses before keywords, and natural hesitation.


Install

git clone https://github.com/Omibranch/ghostwriter
cd ghostwriter
./install.sh

Requires Go 1.21+.


Usage

ghostwriter                         # random language, medium speed
ghostwriter --lang go               # Go only
ghostwriter --lang python           # Python only
ghostwriter --lang typescript       # TypeScript only
ghostwriter --lang javascript       # JavaScript only
ghostwriter --lang rust             # Rust only
ghostwriter --lang bash             # Bash only
ghostwriter --speed slow            # ~80ms/char — hunt-and-peck
ghostwriter --speed medium          # ~45ms/char — competent dev (default)
ghostwriter --speed fast            # ~20ms/char — senior mode
ghostwriter --speed turbo           # ~8ms/char — suspiciously fast
ghostwriter --lang go --speed fast  # combine flags

Press Ctrl+C to stop.


Features

  • 6 languages: Go, Python, TypeScript, JavaScript, Rust, Bash
  • 4 speed profiles: slow, medium, fast, turbo
  • Realistic typos: ~2.5% chance of a wrong character, immediately corrected with backspace
  • Thinking pauses: hesitation before comments (//, /*), function keywords
  • Snippet variety: 8 real-world code snippets (HTTP servers, caches, event buses, deploy scripts)
  • No dependencies: pure Go standard library

Example output

# server.go

package main

import (
    "context"
    "fmt"
    "log"
    "net/http|"    ← typo corrected
    "net/http"
    "time"
)
...

Use cases

  • Live coding streams where you want filler content
  • Demo recordings that need to look like coding is happening
  • Making your screen look busy in an open-plan office
  • Testing terminal rendering / font ligatures
  • Scaring your rubber duck

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors