Exbin

Share text and code snippets publicly or privately. Features include ephemeral pastes, syntax highlighting, netcat support, and a fully functional JSON API.

This lightweight pastebin alternative allows you to easily share text, prose, and code snippets. Built with Elixir and Phoenix, it offers a fast and reliable way to store and distribute information either publicly or privately. You can quickly pipe text directly from your terminal using netcat, making it an excellent addition to any developer's toolkit.

Key features include:

  • Multiple viewing modes: Choose between Raw View for copying, Reader View for prose, and Code View with syntax highlighting.
  • Ephemeral snippets: Create temporary pastes that automatically delete themselves after 60 minutes.
  • Terminal integration: Pipe text directly via nc to instantly generate a shareable URL.
  • JSON API: Programmatically create and retrieve snippets using the built-in API, with optional authentication.
  • Bot protection: Includes an HTTP bomb on the netcat endpoint to deter automated scanners.
  • Custom branding: Deploy via Docker and personalize with your own logo.

Directory Structure

exbin
db-data
.env
docker-compose.yml

docker-compose.yml

services:
  db:
    image: postgres:13-alpine
    restart: always
    environment:
      POSTGRES_USER: ${DB_USER}
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_DB: ${DB_NAME}
    volumes:
      - ./db-data:/var/lib/postgresql/data

  exbin:
    image: m1dnight/exbin:latest
    restart: always
    ports:
      - "4000:4000"
    environment:
      - DB_HOST=db
      - DB_USER=${DB_USER}
      - DB_PASSWORD=${DB_PASSWORD}
      - DB_NAME=${DB_NAME}
      - SECRET_KEY_BASE=${SECRET_KEY_BASE}
      - HOSTNAME=${HOSTNAME}
      - PORT=4000
    depends_on:
      - db

.env

DB_USER=exbin
DB_PASSWORD=your_secure_password
DB_NAME=exbin
SECRET_KEY_BASE=your_generated_secret_key_base_at_least_64_bytes
HOSTNAME=localhost
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Exbin

Favicon

 

  
  
Favicon

 

  
  
Favicon