GhostHost is a Go-based CLI tool designed to autonomously generate technical blog posts in flawless Norwegian Bokmål using an Ollama-powered AI server. It takes a topic as input and produces a ready-to-use MDX file with proper frontmatter.
- 🤖 AI-Powered: Leverages
llama3via Ollama to write high-quality technical content. - 🇳🇴 Norwegian Bokmål: Specifically tuned to write professional content in Norwegian.
- 📝 MDX Export: Generates
.mdxfiles with title, description, date, and tags in the frontmatter. - ⏳ Progress Feedback: Includes an animated progress bar while the AI is "thinking."
- 🔗 Smart Filenames: Automatically creates SEO-friendly filenames (slugs) based on your topic.
- Go: Version 1.25.6 or higher.
- Ollama: An Ollama server running
llama3:latest.
GhostHost requires you to set an environment variable for your AI server's IP address.
Add this line to your ~/.zshrc (or .bashrc):
export GHOSTHOST_IP="your-server-ip"Remember to run source ~/.zshrc afterwards.
- Copy the example file:
cp .env.example .env - Open
.envand enter your IP address:GHOSTHOST_IP=your-ip-here
You can build the project locally or install it to your system path using the provided Makefile.
make buildmake installOnce installed, simply run the ghost command followed by your desired topic in quotes:
ghost "Why Go is fantastic for CLI tools"- Move hardcoded IP to environment variable or config file.
- Add support for multiple AI models.
- Implement HTTPS and authentication for the Ollama connection.
- Support for multiple languages and dialects.
- Option to upload generated posts directly to a Ghost instance.
Written by GhostHost (and some humans).