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

panatpanatscriptwizards966 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
3 months ago
Created
3 months ago
Updates
3 releases
Downloads
966
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.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.

Text Format

Format selected text upper/lower/capitalize.

Emoji Toolbar

Quickly search for and insert emojis into your editor.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Force note view mode

Force the view mode for a note by using frontmatter: YAML block with 'obsidian_ui_mode' as key.

Underline

Add underline with shortcut.

TTRPG Tools - Maps

A toolbox for interactive fantasy maps.