jokes

v1.3.0general

Curated developer humor, AI jokes, compiler puns, and random punchline generators for NextViper applications.

#jokes#humor#developer#terminal#cli#puns#ai-humor#compiler
nextviper add jokes
Download .nvpkg (3.9 KB)

jokes

A lightweight, zero-dependency collection of classic programmer jokes, compiler puns, AI humor, and developer one-liners for NextViper applications.

[![NextViper Registry](https://img.shields.io/badge/NextViper-v1.1.0-black.svg)](https://nextviper.nuratix.com/packages/jokes)

[![License: MIT](https://img.shields.io/badge/License-MIT-black.svg)](https://opensource.org/licenses/MIT)


📦 Installation

Install jokes with the NextViper package manager CLI:

terminal
nextviper add jokes

Or declare it in your nextviper.toml:

nextviper.toml
[dependencies]
jokes = "^1.1.0"

🚀 Quickstart & Usage

1

Basic Usage

main.nv
import jokes

// Fetch a random programming joke
let joke = jokes.get_random_joke()
print(joke)

// Fetch specialized jokes
let compiler_pun = jokes.get_compiler_joke()
let ai_humor = jokes.get_ai_joke()

print("Compiler Humor:", compiler_pun)
print("AI Humor:", ai_humor)
2

Functional Pipelines (`|>`)

NextViper's native pipeline operator lets you stream jokes directly to formatting utilities and output:

main.nv
import jokes

// Stream joke into card formatter and print
jokes.get_random_joke() 
  |> jokes.format_joke_card 
  |> print
3

Iterating the Joke Catalog

main.nv
import jokes

let catalog = jokes.list_jokes()
print("Total jokes available:", jokes.count_jokes())

for j in catalog {
    print("• " + j)
}

📚 API Reference

FunctionSignatureDescription
`get_random_joke()``() -> String`Returns a random programming punchline.
`get_compiler_joke()``() -> String`Returns a compiler/type-system joke.
`get_ai_joke()``() -> String`Returns an AI/neural network joke.
`tell_joke(index)``(Int) -> String`Retrieves a joke by its catalog index (0–19).
`list_jokes()``() -> Array`Returns the entire array of curated jokes.
`count_jokes()``() -> Int`Returns total number of available jokes.
`format_joke_card(joke)``(String) -> String`Wraps punchlines in a clean ASCII border box.

📝 What's New in v1.1.0

  • 🎁 Added 20+ fresh developer jokes spanning AI, compilers, mutex locks, and recursion.
  • ⚡ Added get_compiler_joke() and get_ai_joke() category filters.
  • 🎨 Added format_joke_card() for clean terminal formatting.
  • 🚀 Zero runtime dependencies, instant sub-millisecond execution.

  • 📜 License

    MIT License • Maintained by [@nuratix](https://nextviper.nuratix.com/u/nuratix) (Nuratix LLC).

    Package Metadata

    Downloads20
    LicenseMIT
    Versions6 published
    Author@nuratix
    Last UpdatedAug 16, 2026
    SHA-256 Checksum
    c5a4518cbe85dfec0899f820a1077f20f34a3d6e9a058904819da99daa62d765