Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yummyume/affine-bun-workers

Workers for self-hosted instances of AFFiNE, made with Bun.
https://github.com/yummyume/affine-bun-workers

affine affine-worker bun elysiajs self-hosted

Last synced: 4 days ago
JSON representation

Workers for self-hosted instances of AFFiNE, made with Bun.

Awesome Lists containing this project

README

        

# AFFiNE Bun Workers

[AFFiNE](https://affine.pro) workers but for self-hosted instances, using [Bun](https://bun.sh) and [Elysia](https://elysiajs.com).

## Content

- [AFFiNE Bun Workers](#affine-bun-workers)
- [Content](#content)
- [Why ?](#why-)
- [Currently supported workers](#currently-supported-workers)
- [Thanks](#thanks)
- [Usage](#usage)
- [Development](#development)

## Why ?

This repository serves for the development of workers for the self-hosted version of AFFiNE until a proper solution is added to the main repository.

The workers are basically a Bun server running and handling requests for proxying images and fetching metadata from a link.

This repository is NOT affiliated with AFFiNE in any way, it is just a temporary solution for self-hosted users.
It tries to replicate the workers from [AFFiNE](https://github.com/toeverything/affine-workers) as closely as possible.

## Currently supported workers

- [x] Image proxy (`/api/worker/image-proxy`)
- [x] Link preview (`/api/worker/link-preview`)

## Thanks

A big thanks to the AFFiNE team for creating such a great tool and to [eikaramba](https://github.com/eikaramba) for heavily inspiring this project
with their [work](https://github.com/eikaramba/affine-workers). Also a big thanks to Bun for simply existing.

## Usage

TODO

## Development

- (Optional) Change the .env values if needed
- Run `docker compose up -d` (or `make up`) to start the AFFiNE app and the workers
- Go to [http://localhost](http://localhost) to access the AFFiNE app
- Create a new dummy account, create a new doc and try pasting a link or an image to see results