Skip to content
Torn graph paper with typewritten words: random tidbit.Torn graph paper with typewritten words: random tidbit.

A tiny browser renderer for shuffled bits of text without repeats

Give it quotes, facts, jokes, reminders, or any other tidbits. It displays a different text on each reload or navigation.

Usage

example.html
<div id="tidbit-container"></div>
example.ts
import { renderRandomTidbit } from "random-tidbit";
import { quotes } from "random-tidbit/quotes";
renderRandomTidbit({
target: "#tidbit-container",
tidbits: quotes,
});

Install

Terminal window
npm i random-tidbit