Skip to content

Repository files navigation

ATfile-ts

Modern TypeScript reimplementation of ATfile using Deno runtime.

Upload binary files to AT Protocol PDS using the blue.zio.atfile lexicon.

Requirements

  • Deno 2.x or later
  • AT Protocol account (Bluesky, etc.)

Installation

deno install --allow-env --allow-net --allow-read -n atfile src/main.ts

Usage

# Show help
atfile help

# Check version
atfile version

# Show config location
atfile config

# Upload a file
atfile upload <file>

# With custom PDS
atfile upload <file> --service https://my-pds.example.com

Configuration

Set credentials via environment variables:

export ATFILE_SERVICE="https://bsky.social"
export ATFILE_USERNAME="your.handle"
export ATFILE_PASSWORD="your-app-password"

Or create a config file at:

  • Linux/Unix: ~/.config/atfile/config.json
  • macOS: ~/Library/Application Support/atfile/config.json
  • Windows: %APPDATA%\atfile\config.json
{
  "service": "https://bsky.social",
  "identifier": "your.handle",
  "password": "your-app-password"
}

Development

# Type check
deno check src/main.ts

# Run tests
deno task test

# Format and lint
deno fmt
deno lint

# Full check
deno task check

License

MIT

About

ATFile in TypeScript/Deno

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages