An oekaki BBS board running on top of the AT Protocol.
A decentralized oekaki (お絵描き, jp. drawing) BBS running as an AT Protocol AppView.
It allows you to log in with your AT Protocol account and draw right in the browser using a modified variant of the tegaki.js editor! Your images are stored on your ATProto Personal Data Server, meaning that no PinkSea instance actually controls them. If one goes down, another one can take its place. You are in full control of everything you draw.
Other than just drawing, PinkSea allows you to tag your oekaki, grouping them together like in sites akin to Pixiv. PinkSea also permits responding with oekaki to other oekaki!
In order to run PinkSea as a Docker container, you need to have the Docker runtime installed.
Clone this repository by doing git clone https://github.com/shinolabs/PinkSea
Navigate to the cloned repository.
Copy .env.example
to .env
and modify the settings according to your setup.
ENV Config Name | Description | Default Value |
---|---|---|
POSTGRES_USERNAME | The username used for the PostgreSQL database login | pinksea |
POSTGRES_PASSWORD | The password used for the PostgreSQL database login | pinksea |
POSTGRES_PORT | The port used to connect to PostgreSQL | 5432 |
POSTGRES_DATABASE | The name of the database used for PinkSea | PinkSea |
APPVIEW_URL | The URL used by the AppView API | https://api.your.tld |
FRONTEND_URL | The URL used by the frontend. (Can be the same as the AppView) | https://your.tld |
BACKFILL_SOURCE | The source used for backfilling the local instance. (Can be either a relay or another PinkSea instance) | https://relay1.us-west.bsky.network |
BACKFILL_SKIP_DIMENSIONS_VERIFICATION | Whether to skip verifying dimensions for each oekaki post while backfilling. Will speed it up sacrificing full validity. | false |
JETSTREAM_ENDPOINT | The ATProto JetStream endpoint used by this PinkSea instance. | jetstream1.us-east.bsky.network |
PLC_DIRECTORY | The PLC directory endpoint used by this PinkSea instance. | https://plc.directory |
IMAGE_PROXY_TEMPLATE | The image proxy endpoint used by this PinkSea instance. {0} will be populated with the author's DID, while {1} will be populated with the CID of the blob. | https://cdn.bsky.app/img/feed_fullsize/plain/{0}/{1} |
Run docker compose up -d
to start the containers and detach from them.
(Initial run only) Wait for PinkSea to finish backfilling all the oekaki posts.
Your PinkSea instance will now be accessible at the FRONTEND_URL
endpoint you've specified for it, fully connected with the entire ATProto network! Simple as that!
Run docker compose down
to shut down the containers.
Run git pull
to fetch the latest changes to the repository.
Run docker compose up -d --build
to force rebuild all the PinkSea dockerfiles.
Your PinkSea instance should now be up-to-date!
In order to run the AppView, you need the .NET 8 SDK and the Entity Framework tools package, which you can install through dotnet tools -g install dotnet-ef
.
Open the PinkSea
folder
Copy the sample appsettings.example.json
file to appsettings.json
PostgresConfig
to point to your PostgreSQL settings.AppViewConfig
URL to where your AppView will reside, this is the URL that will be used to identify your PinkSea instance. (As an example, for the official PinkSea instance, it's https://api.pinksea.art
)FrontendConfig
to point to where your PinkSea frontend resides. This is used for BlueSky cross-posting with a link. Leaving it blank will disallow cross-posting. (Again, as an example, for the official PinkSea instance it's https://pinksea.art
)Run dotnet run --configuration Release
to start the PinkSea AppView. PinkSea will automatically perform migrations.
That's it! Your server now is connected to the ATmosphere and is ready to start cooperating with other PinkSea AppViews.
PinkSea
folder.dotnet ef database update
to run the migrations.dotnet run --configuration Release
to start the server in Release mode.In order to run the client app locally, you need a fairly modern Node.js version. Anything above Node 20 works, but I personally recommend the latest LTS version.
PinkSea.Frontend
.npm i
to download the required packages..env.example
file to .env
.VITE_PINKSEA_API_URL
to your AppView instance. (For example, for the official PinkSea instance, the endpoint is https://api.pinksea.art
)PinkSea.Frontend
npm i
to update the packages.npm run dev
, to start a local development server with code reloading.PinkSea.Frontend
npm i
to update the packages.npm run build
, to build and minify the client app.The built app will be inside of the dist
folder.
Open the PinkSea.Gateway
folder.
Copy the sample appsettings.example.json
file to appsettings.json
Edit the values inside of it
AppViewEndpoint
URL to where your AppView resides. (As an example, for the official PinkSea instance, it's https://api.pinksea.art
).FrontEndEndpoint
URL to where your frontend will reside. (As an example, for the official PinkSea instance, it's https://pinksea.art
).Create the wwwroot
folder.
Copy the built frontend from PinkSea.Frontend/dist
to wwwroot
Run dotnet run --configuration Release
to start the PinkSea gateway helper.
PinkSea was built by these wonderful people, I'd like to extend a massive thank you to everyone involved with the project!
Thank you to everyone who participated in the GitHub drawing thread as well to make this README this much nicer!! All of the images in this README have been drawn by PinkSea users inside of PinkSea!
Top to bottom:
Clockwise from the top left:
Clockwise from the top left:
Click here to visit the original thread!
PinkSea's licensing is split across projects in this monorepo.
The following projects are licensed under the European Union Public License-1.2:
The following libraries that PinkSea is built on top of are licensed under the Creative Commons Zero license:
Please use them to build your own projects!
made with love by
Fishyflip - a .NET ATProtocol/Bluesky Library
Client for Bluesky
Bluesky cross-poster for inferior services (and a .NET library for ATProto and Bluesky)
A .NET class library for the Bluesky social network.
An atproto PDS implementation in .NET (C#)
A Bluesky appview focused on low resource consumption
Your Brand Here!
50K+ engaged viewers every month
Limited spots available!
📧 Contact us via email🦋 Contact us on Bluesky