Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Linux
Written by AI from the README.
Saved setup from 10 h ago
Will it work on Linux?
CONTRIBUTING.mdtorlink stays small on purpose. The best way in is to read the code you're about to touch, match how it already works, and keep your change tight. Three recent pull requests set the bar, and this guide points back at them throughout:
None of them were big. All of them fit the grain. That's the whole idea.
git clone https://github.com/baairon/torlink
cd torlink
npm install
npm run dev
npm run dev runs the live TUI through tsx, no build step. The README's Contributing section has the build variant if you want it.
Run these and make sure they're clean:
npm run typecheck # tsc --noEmit, zero errors
npm test # vitest, all green
Then check your change against the standards below. The pull request template walks you through the same list.
Games, Movies, TV, and Anime cover the majority of real torrent traffic, and the sidebar reads at a glance because that list is short. The sources feeding those tabs are settled for the same reason: every extra index is one more thing to keep alive and more noise in the results. A pull request adding a category (ebooks, music, software) or a new source is declined however clean the code, so please open an issue before you write one. Fixes to the sources already here are always welcome.
Reuse what's there before you write something new. Cursor movement goes through wrapStep (src/ui/move.ts). Key hints live in the Hint / HELP_GROUPS / footerHints system (src/ui/keymap.ts). Shared app state is the Store interface (src/ui/store.ts).
#4 is the model here: it added a whole navigation mode and still introduced no new state, it leaned on the existing region and captureMode flags and reused wrapStep. If you catch yourself adding a parallel way to do something the codebase already does, stop and use the one that's already there.
People already have the current keys in their fingers. New behavior should layer on, not overwrite. #4 lit up the arrow keys (which did nothing before) while leaving tab, enter, esc, and every letter command exactly where they were. If your change retrains an existing key, it needs a real reason and a clear note in the PR.
torlink runs on Windows, macOS, and Linux, so anything that touches the OS branches all three. Look at writeClipboard in src/util/clipboard.ts from #6: powershell on win32, pbcopy on darwin, then wl-copy, xclip, xsel on linux. #5's scripts/cli-entry.cjs is the same instinct aimed at the Node runtime. "Works on my machine" is not the bar.
When something the user can't control goes wrong, degrade gracefully and say so. #5 prints a friendly upgrade message and exits cleanly instead of letting old Node spit out a parse error. #6's writeClipboard returns false and surfaces a notice when no clipboard tool exists, it never throws. Reach for a clear message and a fallback before you reach for an exception.
Non-trivial logic gets a vitest test. Pure functions are easy, see src/util/format.test.ts. For code that shells out or leans on a platform, mock the node built-in, see src/util/clipboard.test.ts from #6 mocking node:child_process. Run the suite with npm test.
torlink shows one contextual footer plus a ? cheatsheet, never a wall of commands. Two rules when you add to it:
src/ui/keymap.ts: HELP_GROUPS (the ? sheet) and footerHints (the footer). #6 did both for y.Store field means adding a matching entry to makeStore in scripts/render-previews-impl.tsx, or npm run previews (the README screenshots) breaks. #6's copyMagnet sits in there as a noop for exactly this reason.torlink is pastel-violet and quiet. There is exactly one gradient, the wordmark sheen. Everything else is solid color. Please don't add a second gradient.
feat:, fix:, docs:, chore:, refactor:.Thanks for helping keep torlink sharp.
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
git clone https://github.com/baairon/torlink.git cd torlink
Node.js >=22
# needs nvm: https://github.com/nvm-sh/nvm nvm install --lts
npm ci
npm run dev
npm test
Install Node (from nodejs.org), it's all torlink needs.
Open your terminal.
Start it:
npx torlnk
That's the only thing you'll type. torlink opens straight to a search bar: search for what you want, paste in a magnet link or a bare infohash, drag a .torrent file from your file manager onto the window, or just press Enter on an empty box to browse the curated library. From there it's all keypresses, nothing to memorize, and ? brings up the full list anytime.
No reports for Linux yet.
GitManual AI Agent reads the 7 key files and writes a step-by-step guide for Linux. Once written, it's saved for everyone.