All Projects → lucko → paste

lucko / paste

Licence: MIT license
paste is a simple web app for writing & sharing code.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to paste

Privatebin
A minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES.
Stars: ✭ 3,622 (+5741.94%)
Mutual labels:  paste, pastebin
SourceBin
💻 Sharing code made easy
Stars: ✭ 48 (-22.58%)
Mutual labels:  paste, pastebin
pb
pb; a command line pastebin service helper (12 supported services)
Stars: ✭ 22 (-64.52%)
Mutual labels:  paste, pastebin
Scavenger
Crawler (Bot) searching for credential leaks on different paste sites.
Stars: ✭ 347 (+459.68%)
Mutual labels:  paste, pastebin
Nekobin
Elegant and open-source pastebin service
Stars: ✭ 61 (-1.61%)
Mutual labels:  paste, pastebin
Paste.laravel.io
The Laravel.io Pastebin.
Stars: ✭ 135 (+117.74%)
Mutual labels:  paste, pastebin
Nopaste
📋 Client-side paste service
Stars: ✭ 79 (+27.42%)
Mutual labels:  paste, pastebin
rentry
Markdown pastebin from command line
Stars: ✭ 252 (+306.45%)
Mutual labels:  paste, pastebin
binnit
minimal no-fuss pastebin service clone in golang
Stars: ✭ 27 (-56.45%)
Mutual labels:  pastebin
gradle-cpd-plugin
Gradle plugin to find duplicate code using PMDs copy/paste detection (= CPD).
Stars: ✭ 88 (+41.94%)
Mutual labels:  paste
uranus
[W.I.P] An ecosystem of crawlers for detecting: leaks, sensitive data exposure and attempts exfiltration of data
Stars: ✭ 22 (-64.52%)
Mutual labels:  pastebin
awesome-pastebin
List of pastebin sites.
Stars: ✭ 58 (-6.45%)
Mutual labels:  pastebin
pastelyst
A Web Paste Tool built with Cutelyst and KDE Frameworks
Stars: ✭ 19 (-69.35%)
Mutual labels:  pastebin
piu.clj
Simple pastebin
Stars: ✭ 14 (-77.42%)
Mutual labels:  pastebin
CryptDown
client-side AES-encrypted Markdown pastebin clone
Stars: ✭ 47 (-24.19%)
Mutual labels:  pastebin
nnmm
A super tiny pastebin/url minifier "microservice"
Stars: ✭ 77 (+24.19%)
Mutual labels:  pastebin
Pastebin
Modern pastebin written in golang
Stars: ✭ 111 (+79.03%)
Mutual labels:  pastebin
simple-pastebin-monitor
A simple pastebin monitor using the scraping API
Stars: ✭ 34 (-45.16%)
Mutual labels:  pastebin
mystbin.py
A Mystb.in API wrapper!
Stars: ✭ 17 (-72.58%)
Mutual labels:  paste
PasteBinApp
iOS app for PasteBin
Stars: ✭ 27 (-56.45%)
Mutual labels:  pastebin

paste is a simple web app for writing & sharing code. It's my own take on conventional pastebin sites like pastebin.com or hastebin.

Anyone can use paste! The official/public instance can be accessed using the endpoints listed below, but you can also host your own if you like!

1) In a Web Browser

Just go to https://pastes.dev!

2) From the Command Line

You can submit content most easily using curl.

# Upload the contents of a file
> curl -T example.txt https://api.pastes.dev/post

# Upload the contents of a file and specify the language
> curl -T example.yml -H "Content-Type: text/yaml" https://api.pastes.dev/post

# Pipe in some output from any command
> echo "Hello world" | curl -T - https://api.pastes.dev/post
If curl isn't installed on your system, you can also post using netcat.
# Pipe in some output from any command
> echo "Hello world" | nc nc.pastes.dev 1337

# Upload the contents of a file
> cat example.txt | nc nc.pastes.dev 1337
If you don't want to do so much typing, you can create a shorter alias.
# Add this to the end of `~/.bashrc` and run 'source ~/.bashrc'
paste() {
  curl -T $1 https://api.pastes.dev/post
}

then...

# Upload the contents of a file
> paste example.txt

# Pipe in some output from any command
> echo "Hello!" | paste -
3) From Code

Send GET/POST/PUT requests to https://api.pastes.dev/. More info below.


About

The frontend (this repository) is written using the React framework. The backend data storage is handled by a separate web service called bytebin.

The user-interface is based on the Monaco Editor, the engine behind the popular Visual Studio Code text editor. It's quite simple; it supports syntax highlighting, automatic indentation, many supported languages, themes, zooming in/out, linking to specific lines or sections, and more!

pastes.dev

I host a public instance at https://pastes.dev. Please feel free to use it to share code/configs/whatever!

Please note that the following (very-non-legally worded) terms of service apply.
If you come across any content which is illegal or infringes on copyright, please get in touch and let me know so I can remove it.

Uploaded content is retained for 90 days then deleted.

pastes.dev API

  • To read content, send a HTTP GET request to https://api.pastes.dev/<key>.
    • Replace <key> with the id of the paste.
    • The content is returned in the response body.
    • The Content-Type header is text/<language>, where language is the id of the language the paste was saved with.
  • To upload content, send a HTTP POST request to https://api.pastes.dev/post.
    • Include the content in the request body.
    • Specify the language with the Content-Type: text/<language> header, and please provide a User-Agent header too.
    • The paste "key" is returned in the Location header, or in the response body as a JSON object in the format {"key": "<key>"}.

The API is powered by the bytebin service, so more information about how it works can be found there.


Host your own

It's quite simple to host your own version.

git clone https://github.com/lucko/paste
cd paste
yarn install

# Outputs html/css/js files to /build
yarn build

# Start a webserver for testing/development
yarn start

You can then follow the create-react-app deployment documentation for how to host the build output. I personally recommend deploying to the cloud using a service like Netlify instead of hosting on your own webserver.

If you really want to self-host (including the bytebin data storage part), I suggest using Docker:

git clone https://github.com/lucko/paste
docker compose up -d

You should then (hopefully!) be able to access the application at http://localhost:8080/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].