Metadata-Version: 2.4
Name: bluenostr
Version: 1.3.0
Summary: Repeat posts you make on Bluesky to Nostr
Requires-Python: >=3.14
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: nostr
Requires-Dist: websockets
Requires-Dist: pyyaml
Requires-Dist: requests
Dynamic: license-file

# BlueNostr

A Bluesky to Nostr bridge in Python.

Posts, images, and videos are supported. Images and videos are re-hosted to a Blossom server; Bluesky playback links are used as a fallback if video re-hosting fails.

## Usage

For local usage, create a file on your machine at `[HOME FOLDER]/.littlebitstudios/bluenostr/config.yaml. Use example-config.yaml as a reference. Then install "bluenostr" using pip or pipx and run it. You might want to set it up as an autorunning background process on your PC or server so it's always running to rebroadcast your Bluesky posts.

A Docker image is also available, with an example Compose file at example-compose.yml. No separate config is needed; the configuration is done with environment variables in the Compose file.

By default a reply will be added to the thread of the Nostr post that links back to Bluesky; if you don't want this set `no-ref` to true in the YAML or `BLUESKY_NO_REF=true` in environment variables.

## BlueNostr Convert

A second command-line tool is available within the `bluenostr` pip package and Docker image called `bluenostr-convert`.

It takes a Bluesky post URL containing `/profile/[actor]/post/[rkey]` as an argument. Links from `bsky.app` and other domains are supported as long as they contain the actor handle or DID and record key in that path. The converter runs the same conversion steps as the main BlueNostr real-time crosspost tool and uses the same configuration options.

You can run this by:
- Installing `bluenostr` using pip or pipx. You'll need to use the `~/.littlebitstudios/bluenostr/config.yaml` file to add your key, relays, and a Blossom server to upload media to. Run with `bluenostr-convert (bluesky post url)`
- Using docker/podman and the bluenostr container image (`ghcr.io/littlebitstudios/bluenostr`). You'll need to make a file called `.env` (or `something.env`) with the content of `.env.example` and edit the variables with your key, relays, and a Blossom server. Run with the command `docker run --env-file (your env file) --rm ghcr.io/littlebitstudios/bluenostr bluenostr-convert (bluesky post url)`. If you want to use podman, replace `docker` with `podman` in that command.
