booyaka

A fast documentation generator for cool kids!

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.2.0
License AGPL-3.0-or-later
CI Status Failing
Downloads 0
Last Indexed 2026-11-21 14:04

Authors

  • George Lemon

Installation

nimble install booyaka
choosenim install booyaka
git clone https://github.com/openpeeps/booyaka

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
booyaka ✓ ✓ ✓ - - - - - - -

Dependencies

Package Version Optional
nim >= 2.0.0 No
supranim >= 0.1.9 No
powpow >= 0.2.0 No
tim >= 0.2.9 No
marvdown >= 0.2.6 No
sweetsyntax >= 0.2.1 No
semver >= 1.2.3 No
iconim >= 0.1.0 No
openparser >= 0.1.2 No
emitter >= 0.2.1 No
squeezy >= 0.1.1 No
supra >= 0.1.0 No

Source

Repository https://github.com/openpeeps/booyaka
Homepage https://github.com/openpeeps/booyaka
Registry Source nimble_official

README

Booyaka Logo
Booyaka — A fast documentation generator for cool kids!
Compiled • Lightweight • Fast • Written in Nim

nimble install booyaka / clue install booyaka --build

Download from GitHub

Github Actions Github Actions

Booyaka Homepage Preview

Key Features

  • Compiled, lightweight, and fast; fully self-hosted
  • Cross-platform CLI application (Linux, macOS, Windows)
  • Generate documentation websites from Markdown files
  • Build online book-style websites directly from Markdown
  • Embedded HTTP server with dynamic site generation
  • Static site generation with the build command
  • Client-side fuzzy search with offline support
  • Browser Sync and Live Reload while writing documentation
  • YAML or JSON based configuration
  • Responsive UI powered by Bootstrap 5
  • Light, dark, and system themes with a theme switcher
  • Left and right sidebars: manual navigation or auto-generated table of contents
  • Nested table of contents and bottom previous/next page navigation
  • Configurable code syntax highlighting with line numbers and copy buttons
  • Custom themes with automatic fallback to the built-in theme
  • Template-level custom routes: static Tim views or remapped Markdown pages
  • Squeezy CSS/JS bundling with live rebuilds during development
  • Lazy loading for iframes, videos, audio, and images
  • Customizable with project CSS and JavaScript
  • AI share buttons for ChatGPT, Claude, Gemini, and GitHub Copilot
  • Optional Git-based versioning and contributors information
  • Print-friendly layout for PDF export
  • SEO metadata support
  • Open Source | AGPLv3 License

[!NOTE] Booyaka is still in active development. Expect frequent updates and new features as we work towards a stable release.

About

Booyaka is a documentation site generator that takes a directory of Markdown files and generates a fully functional documentation website, then serves it dynamically using an embedded HTTP server. It can also export a complete static HTML website for hosting anywhere. It is designed to be simple, fast, and easy to use.

Booyaka is written in Nim language, a statically typed compiled systems programming language that combines the performance and low-level control of C with the expressiveness and ease of use of modern languages like Python and Ruby. Learn more about Nim.

Installation

Download the precompiled binaries from the releases page or use nimble to build from source. Read the Nim installation guide if you don't have Nim installed.

Prerequisites

  • Nim >= 2.2.10
nimble install booyaka

or if you prefer clue

clue install booyaka --build

Getting Started

Create a new Booyaka project by running the following command, replacing <directory> with the path of the directory you want to create the documentation site from:

booyaka new <directory>

Booyaka will create a new directory with the necessary files and folders to get started. Navigate to the newly created directory and start the embedded HTTP server:

cd <directory>
booyaka start . --port=8000 --sync

Open your web browser and go to http://localhost:8000 to view your documentation site. The --sync flag enables Browser Sync and Live Reload while you write.

To generate a static HTML website for hosting, run:

booyaka build <directory>

CLI

Command Description
booyaka new <directory> Create a new Booyaka project (--json for a JSON config)
booyaka theme <name> Scaffold a blank theme in ./<name> (copy it into themes/)
booyaka start <directory> Start the embedded HTTP server (--port, --sync)
booyaka build <directory> Generate a static HTML website (requires metadata.url)

Configuration

Booyaka reads a booyaka.config.yaml, booyaka.config.yml, or booyaka.config.json file in the project directory (booyaka new generates one for you; pass --json for the JSON variant). Each section below is optional except metadata.url, which booyaka build requires.

Server

Controls the embedded HTTP server used by booyaka start. The --port flag overrides port.

server:
  address: "127.0.0.1"
  port: 3000
  threads: 1      # 1 = single worker, 0 = one per CPU core
  unix: false     # true = serve over a Unix socket at `address` instead of TCP

Theme

Name of the active theme, resolved from <project>/themes/<name>. Templates missing from the active theme fall back to the built-in default theme. Scaffold a blank theme with booyaka theme <name>, then copy or symlink it into themes/ and activate it here.

theme: "default"

Metadata

Site identity and SEO basics. url accepts a bare host (website.com, openpeeps.github.io/carne) or a full URL; its path prefix (e.g. /carne) is applied to every asset and page link so the static site also works from a subdirectory.

metadata:
  url: "openpeeps.github.io/carne"
  title: "Booyaka Documentation"
  description: "A documentation website built with Booyaka"
  keywords: ["booyaka", "documentation", "docs"]
  logo: "/assets/booyaka.png"   # optional, defaults to the built-in logo
  logo_keep_gradient: false     # true keeps the logo's original colors

Appearance

appearance:
  show_theme_switcher: true     # light/dark switcher in the header
  default_theme: "system"       # "system" follows the OS, or pin "light" / "dark"
  show_toggle_left_sidebar: true
  show_toggle_right_sidebar: true
  background_noise_opacity: 0.03  # 0.0 disables the background texture

Git

git:
  enable_versioning: false      # version switcher from semver git tags
  enable_contributors_info: false
  latest_label: "main"          # label of the working-tree version

Header

header:
  search:
    enable: true
    index_meta_data: true
    index_page_titles: true
  notification: ""              # optional HTML banner shown in the header

Content

Rendering options for Markdown pages.

content:
  allowed_raw_html_tags: ["b", "i", "strong", "em", "a", "p", "ul", "ol", "li"]
  show_last_updated: true
  last_date_updated_format: "yyyy-MM-dd HH:mm:ss"
  enable_auto_format_links: true
  bottom_navigation: true       # previous/next links at the bottom of pages
  code_line_numbers: false      # CSS line numbers on fenced code blocks
  highlight_strip_lines: true   # trim blank lines around fenced code blocks
  share_ai_buttons: true
  share_buttons_ai_providers:   # each entry needs label, url, description (icon optional)
    - label: "ChatGPT"
      url: "https://chat.openai.com/"
      description: "Ask ChatGPT about this page"
  lazyload_iframes: false
  lazyload_videos: false
  lazyload_images: false
  page_references: true         # `@page.md` links render as rich page cards

Navigation

Top navbar and sidebar sections. Sidebar url values need a leading slash and should match page slugs so previous/next links and highlighting resolve.

navbar:
  - title: "Home"
    url: "/"
    icon: ""

sidebar_navigation:
  - name: "Getting Started"
    items:
      - title: "Introduction"
        url: "/"
        icon: ""
      - title: "Installation"
        url: "/install"
        icon: "icon-download"

Extra sidebar widgets accept raw HTML or Markdown content:

extra_sections:
  left_sidebar:
    - title: ""
      content: ""
  right_sidebar:
    - title: ""
      content: ""

Footer

footer:
  text: ""
  links:
    - title: "GitHub"
      url: "https://github.com/example"
      icon: "icon-brand-github"

Assets

Static asset pipeline powered by Squeezy. The listed stylesheets are merged in order into assets/bundle.css; each listed script is bundled independently, in place. Only listed files are processed — everything else (bootstrap.min.*, images, print.css) is copied raw.

assets:
  bundle: true
  css: ["app.css", "sweetsyntax.css", "style.css"]
  js: ["app.js"]
  mangle: false       # mangle JS identifiers on `build` (implies minify)
  sourcemap: false    # emit a `.map` file next to each bundled JS file on `build`

booyaka build minifies everything into _build/assets/. booyaka start generates the same bundle unminified into the disposable cache/ dir (so it stays debuggable) and watches themes/<active>/assets/ for CSS/JS changes: every save rebuilds the bundle and reloads connected browsers. Any pipeline failure (missing listed file, parse error) fails the command; a bad save during start is reported without killing the server, so the next save retries.

Two conventions to know: print.css stays out of the bundle (its media="print" would not survive the merge — it keeps its own <link>), and project/assets/ holds your source files only. The generated union (theme files overlaid with yours, plus bundle outputs) lives in project/cache/, rebuilt from scratch on every start — never edit it by hand, and add it to .gitignore (a cache/.gitignore ignoring its contents is written automatically).

Adding template-level routes

You can define custom routes at Booyaka config level. A view route renders a Tim template directly, which lets any documentation site grow fully custom pages. A page route serves a Markdown file from contents/ at an explicit path instead of its natural slug (the original URL is then excluded from the build, search index, and page cards).

routes:
  - path: "/contact"          # static Tim view
    view: "pages/contact"     # -> themes/<theme>/views/pages/contact.timl
    title: "Contact"           # meta fallback (no Markdown involved)
  - path: "/changelog"        # Markdown-backed
    page: "releases.md"       # served here; /releases is excluded
    layout: "base"            # default layout (frontmatter wins)

Each route sets exactly one of view or page. Markdown pages can override the view and layout per file with frontmatter (view: / layout:, defaulting to the index view and the base layout). The homepage (/) plus /search, /results.json, /llms.txt, and /assets stay reserved. Custom routes work the same in booyaka start and booyaka build; restart the dev server after adding a brand-new view file.

Roadmap

Here are some planned features and improvements for future releases:

  • [ ] UI mobile-optimized refinements
  • [ ] Multi-language support

Contributions & Support

License

AGPLv3 license. Made by Humans from OpenPeeps.
Copyright OpenPeeps & Contributors — All rights reserved.