github.com/jhass/crpaste
main / published May 19, 2025 / repository
A simplistic, command line focused pastebin.
crpaste
A simplistic, command line focused pastebin.
Installation
# Build assets
corepack install
pnpm install
pnpm run build
# Build backend
shards
crystal build --release src/crpaste.cr
# Prepare database
createdb crpaste
psql crpaste < schema.sql
# Run backend
# Default port: 8000 Change by setting PORT
# Default database: crpaste Change by setting DB
./crpaste
Usage
See usage.
API
- Crpaste
- Enumerable(T)
The
Enumerablemixin provides collection classes with several traversal, searching, filtering and querying methods. - NamedTuple(**T)
A named tuple is a fixed-size, immutable, stack-allocated mapping of a fixed set of keys to values.