opentdb

Wrapper around the open trivia db api

Wrapper score 15/100 · tests present · no docs generated

Wraps a native library — check OS Compatibility below for platform-specific linking notes.

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install opentdb
choosenim install opentdb
git clone https://github.com/ire4ever1190/nim-opentmdb

OS Compatibility

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

Source

Repository https://github.com/ire4ever1190/nim-opentmdb
Homepage https://github.com/ire4ever1190/nim-opentmdb
Registry Source nimble_official

README

This is a simple sync/async wrapper around The Open Trivia Database which is an api to get trivia questions from a variety of categories in multiple choice or true/false fashion

Docs available here

install through nimble

nimble install opentdb

Example

import opentrivadb

let client = newHttpClient()
echo client.getQuestions() # Gets 10 questions and prints them out

let asyncClient = newAsyncHttpClient()
let questions = waitFor client.getQuestions()
for question in questions:
  echo question.question

make sure to enable ssl when running