No description
  • HTML 35.7%
  • TypeScript 34.4%
  • Nix 29.9%
Find a file
2026-04-28 11:45:35 +02:00
.gitignore first commit 2026-04-28 11:45:35 +02:00
bun.lock first commit 2026-04-28 11:45:35 +02:00
flake.lock first commit 2026-04-28 11:45:35 +02:00
flake.nix first commit 2026-04-28 11:45:35 +02:00
index.html first commit 2026-04-28 11:45:35 +02:00
main.ts first commit 2026-04-28 11:45:35 +02:00
package.json first commit 2026-04-28 11:45:35 +02:00
README.md first commit 2026-04-28 11:45:35 +02:00
tsconfig.json first commit 2026-04-28 11:45:35 +02:00

pb

render source files as syntax-highlighted HTML and upload to S3 or a remote host

usage

pb -f|--file <file> [-l|--lang <language>] [--s3 | -d|--dest user@host:/path]

run from flake without installing:

nix run git+https://git.rcast.dev/rc/pb.git -- -f main.ts

Examples:

nix run . -- --file main.ts
nix run . -- -f main.ts --lang typescript
nix run . -- -f main.ts --s3
nix run . -- -f main.ts -d user@example.com:/var/www/html/

by default, pb detects the Shiki language from the file's final extension. For example, example.test.ts is detected as ts. Pass -l or --lang to override the language.

build

build compiled Bun binaries for all supported platforms:

nix build

development

run the following commands in the devShell (nix develop)

install dependencies:

bun install

run locally:

bun run main.ts -f main.ts

typecheck:

bun run typecheck