a sucky anti-fetch script generator with mostly hard-coded values, dynamic modules and optimisations (to be rewritten)
  • V 66.5%
  • Zig 29.1%
  • blip 3.5%
  • Rust 0.6%
  • D 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-08 12:32:00 +01:00
ascii add complete V backend and macOS support 2026-11-07 03:33:44 +01:00
examples add complete V backend and macOS support 2026-11-07 03:33:44 +01:00
generator deprecate example config 2026-11-08 12:30:42 +01:00
modules deprecate example config 2026-11-08 12:30:42 +01:00
screenshots Zig rewrite 2026-11-04 18:28:33 +01:00
.editorconfig v rewrite 2026-08-12 18:54:29 +03:00
.gitattributes Zig rewrite 2026-11-04 18:28:33 +01:00
.gitignore Zig rewrite 2026-11-04 18:28:33 +01:00
config.lip deprecate example config 2026-11-08 12:30:42 +01:00
LICENSE fixed LICENSE 2026-07-03 01:27:48 +03:00
README.md update README 2026-11-08 12:32:00 +01:00

[ divifetch ]

an anti-fetch script generator with mostly hard-coded values, dynamic modules and optimisations

diviocity

>> WHAT? >>

divifetch is a build-time fetch script compiler.

it reads a simple config file and generates a program that renders ASCII art with dynamic content from pluggable modules.

unlike other fetch scripts that parse configs and fork processes at every run, divifetch moves most of the work to compile time - producing a binary that's faster, smaller, and dependency-freer than any traditional fetch script could be.

>> FEATURES >>

  • everything is hard-coded and statically batched
  • strict no dead code policy
  • runtime dependency-free due to static linking (except macOS)
  • support for Linux, macOS, FreeBSD and OpenBSD
  • easily extensible module system
  • multiple backends (V, Zig)
  • polyglot module support (C, C++, Rust, D, V)
  • multi-config random selection
  • Unicode and ANSI escape code support

>> PREREQUISITES >>

  • V compiler (0.5.2)
  • blip machine
  • Zig compiler (only for Zig backend) (0.17.x)

>> GETTING STARTED >>

# install blip
v install https://git.vorelabs.dev/vorelabs/blip.git

# clone the repo
git clone https://git.vorelabs.dev/vorelabs/divifetch.git
cd divifetch

# generate the source code, build script and run it
v run generator

# run the generated fetch
./target/divifetch

>> SCREENSHOTS >>

can be found here

>> DOCUMENTATION >>

can be found here

(outdated as of v4.0)

>> MOTIVATION >>

divifetch is inspired by nofetch, the world's fastest fetch script ever made. according to its author:

fetch scripts are dumb and overrated and are in every r/unixporn post

and i agree with him.

the concept of a "fetch script" itself is flawed - it implies that trying to optimize fetching large amounts of unnecessary information (which never or almost never changes) is going to make much performance difference.

one might try to circumvent this by hard-coding values into the config file, but even then the fetch script is still reading a useless config file and assembling every module/entry on the file.

unfortunately for me, i do enjoy the aesthetic value that having something (including a fetch script) on shell startup brings. that led to me creating divifetch.

Mirrors: diviocity disroot codeberg git.gay gitea rocketgit salsa framagit gitlab github