Skip to content

GNITOAHC/codesfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codesfer

Daily Pre-Release Release

A CLI tool and self-hostable server for sharing code snippets and files with optional encryption.

Installation

Requires Go 1.24+.

make all # Builds 'codesfer' (CLI) and 'codeserver' (Server) to ./build/

Or install from releases.

CLI Usage

Auth & Account

  • codesfer auth (Register, Login, Logout)
  • codesfer account (View profile)

Share Files

  • Push: codesfer push <file> [-k alias] [-d desc] [--pass password]
  • Pull: codesfer pull <code|alias> [-o out_dir] [--pass password]
  • Manage: codesfer list / remove <code|alias>

codesfer list will also show URL which can be downloaded with direct wget or curl

Config

  • codesfer config set|get <key> [value]

Self-hosting

Run codeserver serve --port 3000.

Self-hosting Configuration (.env)

Run codeserver init to generate a .env file.

  • DB_SOURCE: Auth DB path.
  • INDEX_DB_SOURCE: File index path.
  • OBJECT_BACKEND_DRIVER: sqlite (local) or r2 (Cloudflare).
  • OBJECT_STORAGE_SOURCE: Path for SQLite storage.
  • R2 Config: CF_ACCOUNT_ID, CF_ACCESS_KEY, CF_SECRET_ACCESS_KEY, CF_BUCKET.

About

Share code snippets securely from your terminal.

Resources

Stars

Watchers

Forks

Contributors