Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👻 GhostHost

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.

Features

  • 🤖 AI-Powered: Leverages llama3 via Ollama to write high-quality technical content.
  • 🇳🇴 Norwegian Bokmål: Specifically tuned to write professional content in Norwegian.
  • 📝 MDX Export: Generates .mdx files 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.

Prerequisites

  • Go: Version 1.25.6 or higher.
  • Ollama: An Ollama server running llama3:latest.

Configuration

GhostHost requires you to set an environment variable for your AI server's IP address.

Option A: Use .zshrc / .bashrc (Permanent)

Add this line to your ~/.zshrc (or .bashrc):

export GHOSTHOST_IP="your-server-ip"

Remember to run source ~/.zshrc afterwards.

Option B: Use .env file (Project specific)

  1. Copy the example file: cp .env.example .env
  2. Open .env and enter your IP address: GHOSTHOST_IP=your-ip-here

Installation

You can build the project locally or install it to your system path using the provided Makefile.

Build locally

make build

Install to /usr/local/bin

make install

Usage

Once installed, simply run the ghost command followed by your desired topic in quotes:

ghost "Why Go is fantastic for CLI tools"

Roadmap / TODO

  • 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).

About

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.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages