Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Perhaps

panatpanatscriptwizards36 downloads

Roll random tables written in plain text in your notes. Perchance-style syntax, interactive rerolls, works offline and on mobile.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Roll random tables written in plain text in your notes. Perchance-style syntax, interactive rerolls, works offline and on mobile.

Write a table in a fenced code block:

```perhaps
title
  Tavern Trouble

output
  [patron] {argues with|challenges|buys a round for} [patron] over {2-12} silver

patron
  a nervous scribe
  an off-duty guard ^2
  a {cheerful|sullen} dwarf prospector
```

In reading view the block becomes a live roller. Click any underlined part of a result to reroll just that part.

Features

  • Roll a table: fuzzy picker over every table in your vault, result in a modal with in-place rerolls.
  • Roll a table into the note: inserts a result at the cursor, for session logs.
  • Live rollers for ```perhaps and ```perchance blocks in reading view, with reroll and copy.
  • Tables reference each other across notes by title; the vault index stays current as files change.

Syntax

A documented subset of Perchance list syntax plus dice notation: sections, [refs], weights ^2, choices {a|b}, ranges {2-12}, dice 2d6+1, selectUnique/selectMany. The spec lives at script-wizards/perhaps. Try it in the browser at perhaps.sh.

Development

Plugin source lives here (src/main.ts). The table engine is @scriptwizards/perhaps-engine from the perhaps monorepo, pulled in as a git dependency and bundled from source.

just install
just build
just vault-install path/to/vault

Engine and spec issues go to the monorepo; plugin issues go here.

Manual install

Copy main.js, manifest.json, and styles.css from the latest release into <vault>/.obsidian/plugins/perhaps/, then enable Perhaps under Settings, Community plugins.

HealthExcellent
ReviewPassed
About
Roll random tables written directly in your notes using Perchance-style syntax with dice, weights, ranges and selection rules. Use live rollers in reading view or a fuzzy picker to generate results, click any underlined part to reroll just that part, and insert results into notes for session logs. Reference tables across notes and work offline on desktop and mobile.
TTRPGEditing
Details
Current version
0.1.2
Last updated
4 days ago
Created
4 days ago
Updates
3 releases
Downloads
36
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
Apache-2.0
Report bugRequest featureReport plugin
Authors
panatpanat
taranat.com
GitHubptaranat
Xptaranat
scriptwizards
scriptwizards.org
scriptwizards
GitHubscript-wizards
Xscript_wizards
  1. Community
  2. Plugins
  3. TTRPG
  4. Perhaps

Related plugins

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Hover Editor

Transform the Page Preview hover popover into a fully working editor instance.

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.

Creases

Tools for effectively folding Markdown sections.

MetaEdit

Manage your metadata.

Sort and Permute lines

Sort and Permute lines in whole file or selection.