An interactive REPL (Read-Eval-Print Loop) for Typst document authoring.
# Clone the repository
git clone <repo-url> typrepl
cd typrepl
# Run installer
./install.sh
# Or manually:
cp bin/typrepl ~/bin/
cp bin/typst-* ~/bin/
mkdir -p ~/.config/typrepl
cp -r share/* ~/.config/typrepl/| Tool | Description |
|---|---|
typrepl |
Interactive REPL |
typst-tui |
Terminal UI (requires fzf) |
typst-new |
Create projects from templates |
typst-compile |
Compile documents |
typst-convert |
Convert formats |
# Start REPL
typrepl
# Create and open project
typrepl new mypaper paper
typrepl open mypaper
# List projects
typrepl list
# Inside REPL
typ[pdf]> :help # Show commands
typ[pdf]> :template # Load template
typ[pdf]> :snips # List snippets
typ[pdf]> :q # Quit:new <name>- Create project:open <name>- Open project:close- Close project:projects- List projects
:show- Show document:compile- Compile to PDF:format- Format code:analyze- Show statistics
:template paper- Academic paper:template thesis- Thesis:template letter- Letter:template slides- Presentation
:text- Terminal output:pdf- PDF viewer:server- Live web preview
:git init/commit/log- Git integration:bib add/list- Bibliography:snap/save/restore- Version snapshots:session save/load- Session management
Load with :plugin <name>:
math- Math helpers, calculatorcode- Code blocksimages- Image handlingtables- Table generationdiagrams- Flowcharts, timelineswriting- Focus timerstats- Statisticspresent- Presentation helperslatex- LaTeX compatibilityoutline- Document structurereview- Comments and TODOsformat- Styling helpers
~/.config/typrepl/
├── projects/ # Your projects
├── plugins/ # Custom plugins
├── snippets/ # Custom snippets
├── themes/ # Color themes
├── sessions/ # Saved sessions
└── history/ # Version snapshots
typst- Typst compilerfzf- For TUI (optional)bat- Syntax highlighting (optional)pandoc- Format conversion (optional)
MIT