Nodes/ComfyUI-Creepy_nodes/Random Scripture (Creepybits)
ComfyUI Node

Random Scripture (Creepybits)

Random Bible, Quran, or Torah Verse for Themed Prompts

By Creepybits·Created about a year ago·Updated 2 months ago· 32
Random Scripture (Creepybits)
    • verse_text
    • reference
    source
    seed0

    This node hands you a random verse - from the whole Bible, Proverbs only, the Quran, or the Torah - along with its reference, in two clean string outputs. If you're building themed prompts, digital art around religious or classical text, or just want a serendipity generator that pulls from a very old library, it's a neat trick. You get the verse in one output and the citation ("Proverbs 15:3") in the other, so you can use the words as prompt material and keep the reference for the metadata.

    It's the sibling of the pack's Random Greek Myth node, and it works the same way: pick a source, roll a seed, get text out.

    How it works

    The fun part is that there's no one scripture API, so the node glues together four different public services:

    • Bible (Whole) hits bible-api.com's random-verse endpoint. No seed involved - the server picks.
    • Bible (Proverbs Only) does its own randomization locally, using a hardcoded chapter-and-verse count map for all 31 chapters of Proverbs, then fetches the specific verse.
    • Quran uses api.alquran.cloud's random ayah with the Pickthall English translation - a deliberately old-fashioned, archaic rendering.
    • Torah (Tanakh) picks a book (Genesis through Deuteronomy) and chapter locally from a chapter-count map, then pulls the chapter from the Sefaria API and randomly selects a verse, stripping any HTML tags that come back.

    Because the local parts are seeded with random.Random(seed), you can lock Proverbs and Torah picks to a seed. The Bible-whole and Quran sources are server-side random, so the seed won't pin those down - worth knowing if you're after reproducibility.

    The inputs and outputs

    • source - dropdown: Bible (Whole), Bible (Proverbs Only), Quran, Torah (Tanakh).
    • seed - an integer, default 0.
    • Outputs: verse_text (STRING) and reference (STRING).

    Both strings feed straight into a text-combine node or a prompt field.

    Installing it

    It's part of ComfyUI-Creepy_nodes:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Creepybits/ComfyUI-Creepy_nodes
    

    restart, and you're done. ComfyUI Manager users: search "Creepy_nodes". No models, just the pack's standard pip dependencies.

    Where it bites

    Unlike the Greek myth node, scripture is fetched live on every call - there's no local cache. So you need a working internet connection, and you're at the mercy of four separate free APIs. Any one of them being down returns an "Error / API Status XXX" pair instead of a verse. It's also worth remembering the seed caveat: don't promise yourself reproducible output unless you're on Proverbs or Torah. For anything artistic, though, that unpredictability is sort of the point.

    CategoryCreepybits/Text

    Inputs (2)

    NameTypeDefaultDescription
    sourceCOMBO4 options: Bible (Whole), Bible (Proverbs Only), Quran, Torah (Tanakh)
    seedINT00–18446744073709550000

    Outputs (2)

    NameTypeDescription
    verse_textSTRING
    referenceSTRING