Croc#
https://github.com/schollz/croc
While croc is not a new project I only recently learned about it. We occasionally need to share large files with each other but for various reasons don’t want them in Google Drive or Dropbox. Croc is a command line tool that allows any computer to easily and securely share files and folders. We were able to install via homebrew and share a large file within 30 seconds, having never used it before.
I was a curious about how it works and poked around the codebase. By default, it appears to use one of croc's public relay servers that handles connecting the two hosts via the passcode. The relay server facilitates a handshake between the hosts but does not read any of the data being passed between them. You can also host your own relay server and pass in host details as an arg.
How do you send a file with croc?#
To send a file with croc, install croc on both computers, run croc send with the file or folder name, and read the code phrase it prints. The person receiving enters that code phrase on their own computer. If one computer cannot install croc, it can use the browser version at getcroc.com, which needs no install.
Install croc and send a file#
Run brew install croc on macOS, or scoop install croc or choco install croc on Windows. Arch Linux uses pacman -S croc, and Termux uses pkg install croc. The croc README lists these and other install routes.
| System | Package manager | Command |
|---|---|---|
| macOS | Homebrew | brew install croc |
| Windows | Scoop | scoop install croc |
| Windows | Chocolatey | choco install croc |
| Arch Linux | pacman | pacman -S croc |
| Termux | pkg | pkg install croc |
- Install croc on both computers, or open getcroc.com in a browser on the one that cannot.
- On the sending computer, run
croc sendfollowed by the file or folder name. - Read the code phrase on the line that starts with "Code is:".
- On the receiving computer on Windows, run
crocfollowed by the code phrase.
On Linux and macOS, the receiving step is different. The README says to pass the code phrase as an environment variable instead: CROC_SECRET="code-phrase" croc. The README says this avoids leaking the secret via the process name, and it links CVE-2023-43621.
What else croc can send#
Croc can send several files and folders at once, and it can skip any file or folder whose path contains a string you name. It can also send short text or a URL, show a QR code for a phone, and take piped input. The README documents these options.
| What you want | Command |
|---|---|
| Several files and folders | croc send file1 file2 folder1 |
| Skip some folders | croc send --exclude "node_modules,.venv" folder |
| Short text or a URL | croc send --text "hello world" |
| A QR code for a phone | croc send --qr file |
| Pipe from another command | cat filename | croc send |
The exclude flag takes a comma separated list. The README says it matches each string, ignoring case, as a substring of the relative path of every file.
The QR code opens getcroc.com in receive only mode, so a phone can pick up the file.
Croc also has a stored mode. Running croc store with a file uploads it encrypted on the client side. The lifetime defaults to one day, and the download limit defaults to one. The README says both values are subject to server policy. To receive it, run croc with no arguments and paste the token at the prompt. The README says stored mode is opt in and separate from normal live relay transfers.
How croc connects two computers#
The README says croc needs no local server and no port forwarding. It lists peer to peer transfer with relay fallback.
After the code phrase handshake, two compatible native clients open streams over a userspace WireGuard network from Tailscale. The README says the connection starts through DERP and moves to a direct UDP path whenever NAT traversal succeeds.
If the other side is a browser or an older client, or the setup of that WireGuard network fails, both computers use croc's relay data ports instead.
How private is a croc transfer?#
Croc encrypts a transfer from end to end. The README says the code phrase sets up password authenticated key agreement, called PAKE. That generates a secret key for the sender and recipient to use for end to end encryption.
For default public transfers, the README says the code decides which of three public relays both computers use.
Teams that do not want to use the public relays can run their own. Start one with croc relay. The README says it uses TCP ports 9009 to 9013 by default and needs at least two ports. Then send through it with croc --relay "myrelay.example.com:9009" send file.
Typst#
https://github.com/typst/typst
Typst is a new markup-based typesetting system designed to match LaTeX's power while being much easier to learn and use. It features built-in markup for common formatting tasks, a tightly integrated scripting system, and fast compile times thanks to incremental compilation. The syntax is cleaner than LaTeX. Mathematical equations use dollar signs, headings are created with equal signs, and functions like "sqrt" work without backslashes.
Typst includes math typesetting, bibliography management, and friendly error messages, plus scripting capabilities for dynamic content generation. It's available as both a free web editor and CLI tool, making it an interesting alternative for anyone frustrated with LaTeX's complexity or seeking a modern document authoring solution.
How do you install Typst and move from LaTeX?#
Typst runs in a web app with a free plan, or as a compiler you install on your own computer. Install it with a package manager, then run typst compile on a .typ file to make a PDF. Typst's guide for LaTeX users maps common LaTeX commands to Typst and says its bibliography system works with BibTeX files.
Install Typst and compile a document#
Install Typst with brew install typst on macOS, winget install --id Typst.Typst on Windows, or cargo install --locked typst-cli with a Rust toolchain. Then run typst compile file.typ, which creates file.pdf in the working directory. The Typst README lists these install commands for the CLI side.
| System | Command |
|---|---|
| macOS | brew install typst |
| Windows | winget install --id Typst.Typst |
| Any system with a Rust toolchain | cargo install --locked typst-cli |
The README warns that package manager versions might lag behind the latest release. It also offers pre-built binaries on the releases page, and says typst update keeps those current. To start a document, create a new text file with the .typ extension. The guide says no boilerplate is needed, and the text is set on an empty A4 sized page.
typst compile file.typ
typst watch file.typThe first command creates file.pdf in the working directory. The second recompiles whenever the source file changes. The README says the watch command recompiles on changes, and that Typst has incremental compilation.
The Typst guide for LaTeX users says the compiler is a single, small binary that any user can run without root privileges. It also says packages download when you first use them and are then cached locally. For an editor with autocomplete, the README points to Tinymist, a community created language server.
LaTeX commands and their Typst equivalents#
In the guide, the LaTeX command \section becomes = Introduction in Typst, and \textbf{strong} becomes *strong*. The table lists these and more rows from the guide.
| Element | LaTeX | Typst |
|---|---|---|
| Heading | \section | = Introduction |
| Strong emphasis | \textbf{ |
*strong* |
| Emphasis | \emph{ |
_emphasis_ |
| Reference | \ref{ |
@intro |
| Citation | \cite{ |
@humphrey97 |
| Bullet list | itemize environment | A hyphen before each item |
| Numbered list | enumerate environment | A plus sign before each item |
A second order heading takes two equals signs. Math goes between dollar signs, as the guide shows. In markup, a function call starts with a hash.
What happens to BibTeX files and templates?#
Your BibTeX files keep working. The guide says Typst has a bibliography system that is compatible with BibTeX files, so you can keep using your .bib libraries by loading them with the bibliography function. Typst uses the Citation Style Language, and the compiler includes over 80 citation styles.
Templates come from Typst Universe, which the guide calls Typst's equivalent of CTAN. Templates and packages download automatically on first use. On your own computer, the typst init command creates a new project from a template.
An existing LaTeX project does not have to be retyped. The guide says Pandoc can convert LaTeX source to Typst markup. It also says the web app can convert an uploaded .tex file.
The guide also lists limits. Typst does not yet offer the same plotting breadth as PGF and TikZ, though the guide says the cetz package is catching up quickly. Changing page margins in Typst uses the page function, which forces a page break.
Edit#
https://github.com/microsoft/edit
Microsoft Edit is a new open-source command-line text editor that revives the classic MS-DOS Editor with modern touches. Built in Rust and weighing just 250kB, Edit ships as a modeless TUI editor with VS Code-inspired controls, making it accessible for users unfamiliar with terminal editors like vim or nano. It supports mouse navigation, multiple file tabs, find/replace with regex support, and word wrapping.
Microsoft created Edit to fill a gap in 64-bit Windows, which lacked a built-in CLI text editor unlike its 32-bit predecessors. The editor targets developers and system administrators who need quick file edits without leaving the terminal. Edit is included in Windows 11 as part of the September 2025 optional update, though it's already available cross-platform on GitHub for Windows, macOS, and Linux.
How do you install and use Microsoft Edit?#
On Windows 11, type edit in Command Prompt, PowerShell or Windows Terminal. If Edit is missing, install it with winget. On macOS, Homebrew installs it as msedit. On Linux, the README gives an install script that builds it from source if your distribution does not provide binaries, or if you want to build your own.
Where Edit is installed#
Edit is included in Windows 11, and winget installs it if it is missing. On macOS, Homebrew installs it as msedit. On Linux, the README's install script builds it from source if your distribution does not provide binaries. The Microsoft Learn page for Edit and the Edit README give these routes.
| System | How you get it | Command |
|---|---|---|
| Windows 11 | Included in Windows 11 from the September 2025 optional update, and in version 25H2 | edit |
| Windows, if Edit is missing | winget | winget install Microsoft.Edit |
| macOS | Homebrew | brew install msedit |
| Linux | Install script from the README, if your distribution does not provide binaries | msedit |
The Linux script needs Rust, a C compiler, ICU, and curl or wget and tar. It installs msedit into ~/.local/bin.
Microsoft Learn says Edit is open source under the MIT license. The source code is on GitHub, and Microsoft welcomes contributions and feedback there.
The README says the canonical executable name is edit and the alternative name is msedit. It recommends msedit for packages because edit may conflict with existing commands.
Keyboard shortcuts#
Microsoft Learn lists these keys.
| Task | Key |
|---|---|
| Switch between open files | Ctrl+P |
| Find and replace | Ctrl+F |
| Toggle word wrap | Alt+Z |
Why Edit has no modes#
Edit is modeless so that new users have no modes to learn. Microsoft's announcement post points to the "How do I exit vim?" meme. It says Microsoft wanted to avoid that stumbling block in a built in default editor.
Microsoft Learn says 64-bit versions of Windows did not include a default CLI text editor after the classic 16-bit MS-DOS Editor was retired. It says Edit fills that gap with a low barrier of entry for new users.
Microsoft's announcement post says choosing a modeless editor limited Microsoft to editors with no first-party Windows support, or editors too big to bundle with every version of the OS. Microsoft Learn says Edit was built from scratch in Rust.
The README says Edit has input controls similar to VS Code. The README says its goal is an accessible editor that even users largely unfamiliar with terminals can easily use.


