HeadlinesBriefing favicon HeadlinesBriefing.com

bashblog: Single Shell Script Creates Static Blogs Without Dependencies

Hacker News •
×

bashblog offers a refreshingly minimal approach to blogging with a single ~1000-line Bash script that generates complete static websites. Creator cfenollosa built this tool to eliminate the complexity of traditional blogging platforms, requiring only shell access to a server with a public web folder.

The script runs on GNU/Linux, OSX, and BSD systems using only base utilities like date, grep, and sed. Users simply execute ./bb.sh post to launch their editor and start writing. No templating engines, databases, or package managers needed. The entire workflow integrates Markdown support and automatically generates RSS feeds.

Beyond basic posting, bashblog includes Disqus comments, Google Analytics integration, tag categorization, and draft management. Configuration happens either through editing the script directly or creating a separate .config file. The project maintains its minimalist philosophy despite reaching the 1000 SLOC mark, carefully weighing new features against code simplicity.

For developers seeking dead-simple publishing, bashblog proves that sophisticated blogs don't require heavy frameworks. The tool demonstrates how much functionality fits in a single portable script.