Export Snac profiles to the Nex blog format https://crates.io/crates/snac2nex
Find a file
2025-07-02 14:40:09 +03:00
src warn on using reserved chars instead of trim 2025-07-02 14:40:09 +03:00
.gitignore initial commit 2025-07-01 17:39:30 +03:00
Cargo.toml update version 2025-07-02 13:47:19 +03:00
LICENSE initial commit 2025-07-01 17:39:30 +03:00
README.md add client/server links 2025-07-01 22:05:34 +03:00

snac2nex

Dependencies crates.io

Convert Snac profiles to the Nex blog format. Useful as a mirroring tool for an existing fediverse instance or for migrating the data once.

Install

cargo install snac2nex

Usage

snac2nex -s /path/to/snac/storage -t /path/to/nex -u user1 -u user2

Options

  -s, --source <SOURCE>
          Path to the Snac2 profile directory

  -t, --target <TARGET>
          Target directory for public data export

  -u, --user <USER>
          Username to export

  -b, --binary
          Export binary files (attachments)

  -r, --rotate <ROTATE>
          Keep running as the daemon, renew every `n` seconds

  -f, --format-content <FORMAT_CONTENT>
          Post template pattern

          [default: {content}{attachments}{link}{tags}{updated}]

      --format-filename <FORMAT_FILENAME>
          Post filenames format

          * escaped with `%%`

          [default: %H:%M:%S]

      --format-updated <FORMAT_UPDATED>
          Post `{updated}` time format

          * escaped with `%%`

          [default: "%Y/%m/%d %H:%M:%S"]

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

See also

  • Nexy - Server for the Nex protocol, written in Rust
  • Yoda - Client for the Gemini & Nex protocols, written in Rust