An open API service indexing awesome lists of open source software.

https://github.com/lun-4/douga

unofficial implementation of the bluesky video service, for the bit
https://github.com/lun-4/douga

Last synced: about 2 months ago
JSON representation

unofficial implementation of the bluesky video service, for the bit

Awesome Lists containing this project

README

        

# douga
unofficial implementation of the bluesky video service, for the bit

useful to AppViews that are based off the main bluesky appview.

keep in mind that at the moment (january 2025), bsky video is a centralized service living on https://video.bsky.app.
in turn, to make this work within the atproto mainnet, you and your friends need to use the same build of social-app
that uses your own video service. more information in the **how** section

[![Watch the video](https://smooch.computer/i/yjm4k7tjtfyo5.png)](https://smooch.computer/i/9mvz3nooiruuuqp.mp4)

_playing: [Lone - Backtail Was Heavy (Last.fm Sessions)](https://www.youtube.com/watch?v=G1ejel4o45w)_

## how

- get go1.23 because indigo depends on it: https://go.dev/dl/

```
git clone https://github.com/lun-4/douga
cd douga
env FRONTEND_URL=https://fe.example.net
APPVIEW_URL=https://appview.example.net \
ATPROTO_PLC_URL=https://plc.example.net \
SERVER_URL=video.example.net \
PORT=43093 go run .
```

### how (frontend)

then set video.example.net as the service inside social-app, this requires social-app patches.

`EXPO_PUBLIC_BSKY_VIDEO_HOSTNAME=video.example.net`

more info on: https://l4.pm/wiki/Personal%20Wiki/bluesky/bsky%20independent%20appview/a%20step%20by%20step%20process%20into%20an%20appview.html#social-app

### how (appview)

you need the following env vars for video playback to work

```
BSKY_VIDEO_PLAYLIST_URL_PATTERN=https://video.example.net/watch/%s/%s/playlist.m3u8
BSKY_VIDEO_THUMBNAIL_URL_PATTERN=https://video.example.net/watch/%s/%s/thumbnail.jpg
```