Back to projects
Nov 14, 2026
3 min read

texshelf

CLI and template gallery to start LaTeX and Typst projects in one command, with PDF previews of every template

texshelf is the tool that TemplaTeX was always meant to be: one command to go from nothing to a compiled LaTeX or Typst project, using templates you can preview before downloading.

It has two parts:

  • A command-line tool written in Rust. One install gives you texshelf (LaTeX templates) and typshelf (Typst templates), which are the same program with different defaults.
  • A website, tex.jjsm.science, that shows every template with a prebuilt PDF preview and serves the installers.

Quick start

texshelf search article        # find templates
texshelf view article          # open the prebuilt PDF preview
texshelf init article my-paper # create the folder, ask for title/author, git init
cd my-paper
latexmk -pdf main.tex          # compile

What it does

  • Search, preview and scaffold. search, info, view and open help you pick a template; init downloads and checks it, asks for the template’s variables and runs git init.
  • Toolchain doctor. texshelf doctor lists the TeX and Typst tools installed and the packages a template is missing.
  • Compiler installer. texshelf ships no compiler, but texshelf tex install sets one up for you: TinyTeX, Tectonic, MacTeX, TeX Live, MiKTeX or Typst.
  • Templates as manifests. Each template is described by a manifest, and new-template, validate and publish cover the authoring side.
  • Taps. Like Homebrew, anyone can run a third-party registry and add it with texshelf tap add.
  • Verified installs. The installers check each release’s SHA-256, and there are shell completions for bash, zsh, fish and PowerShell.

Install

# Homebrew (macOS / Linux)
brew install texshelf/tap/texshelf

# macOS / Linux without Homebrew
curl -fsSL https://tex.jjsm.science/install.sh | sh

# Windows (PowerShell, no admin)
irm https://tex.jjsm.science/install.ps1 | iex

# From source (Rust 1.82+)
cargo install texshelf

Releases so far

  • 0.1.0 (Nov 2026): first release with prebuilt binaries for macOS, Linux and Windows.
  • 0.2.0: tex install, taps, and publishing on crates.io.
  • 0.2.1: colored output (respects NO_COLOR) and an arrow-key picker for tex install.

Full documentation, the manifest format and the publishing guide are at docs.jjsm.science/latex/texshelf.