Pastefy is an open source alternative to Gists or Pastebin.
You want to share some code to your friends or just save it for yourself? Just paste it.
Try out the public instance https://pastefy.app
Visit the docs for everything around Pastefy here: https://docs.pastefy.app
- Raw-Preview
- Copy Button
- Fork
- An API (Docs)
- Log in
- Folders
- See your created pastes
- delete created pastes
- Create paste with
curl -F [email protected] pastefy.app - Extensions:
- VS-Code
- Raycast
- Previews for (file extension)
- See examples here
- Markdown (.md)
- Mermaid (.mermaid or .mmd)
- SVG (.svg)
- CSV (.csv)
- GeoJSON (.geojson)
- Diff (.diff)
- calendar (.ics)
- regex (.regex)
- Asciinema recordings (.cast) (Example)
See Self-Hosting for more options.
git clone https://github.com/interaapps/pastefy.git
cd pastefy/frontend
npm run install
npm run build
cd ../backend
mvn clean package
cd ..
cp .env.example .env
nano .env
java -jar backend/target/backend.jarUsing intelliJ? Look at Develop
See Configuration for all options.
You can choose between INTERAAPPS (best integration), GOOGLE, GITHUB, DISCORD or TWITCH for the provider (You can use all of them at the same time).
OAUTH2_${provider}_CLIENT_ID=${client_id}
OAUTH2_${provider}_CLIENT_SECRET=${client_secret}OAUTH2_INTERAAPPS_CLIENT_ID=dan3q9n
OAUTH2_INTERAAPPS_CLIENT_SECRET=ASDFASDFOAUTH2_CUSTOM_CLIENT_ID=CLIENT_ID
OAUTH2_CUSTOM_CLIENT_SECRET=SECRET
OAUTH2_CUSTOM_AUTH_ENDPOINT=https://accounts.interaapps.de/auth/oauth2
OAUTH2_CUSTOM_TOKEN_ENDPOINT=https://accounts.interaapps.de/api/v2/authorization/oauth2/access_token
OAUTH2_CUSTOM_USERINFO_ENDPOINT=https://accounts.interaapps.de/api/v2/oidc/userinfo# You might want to build the frontend
cd frontend
npm build prodRun the backend (On port 1337) and then go to the frontend and run
cd frontend
npm run serveWe are using IntelliJ Idea and Visual Studio code.
You can find the docs of the Pastefy-Rest-APi here: Docs
If you want to give yourself the admin role, you have to log into your MySQL server and set type on your account to ADMIN in the pastefy_users table.
You'll find the admin panel under https://YOUR_URL/admin
Read more here Docs
curl -F [email protected] pastefy.appconfigure: nano ~/.config/asciinema/config
[api]
url = https://pastefy.app
Using asciinema
asciinema rec test.cast
# ...
asciinema upload test.cast
# Authenticate via Pastefy
# Pastefy will request you to set the install-id via `echo YOUR_PASTEFY_API_KEY > ~/.config/asciinema/install-id`
asciinema auth
asciinema upload test.cast