renovate-bot 5495d7640f
Release / upload-to-gitea-release (push) Has been skipped
Release / generate-dungeon (push) Failing after 52s
chore(deps): update all non-major dependencies (#16)
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@vitest/coverage-v8](https://vitest.dev/guide/coverage) ([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8)) | [`4.1.5` → `4.1.6`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-v8/4.1.5/4.1.6) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@vitest%2fcoverage-v8/4.1.6?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitest%2fcoverage-v8/4.1.5/4.1.6?slim=true) |
| [puppeteer](https://github.com/puppeteer/puppeteer/tree/main#readme) ([source](https://github.com/puppeteer/puppeteer)) | [`24.42.0` → `24.43.1`](https://renovatebot.com/diffs/npm/puppeteer/24.42.0/24.43.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/puppeteer/24.43.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/puppeteer/24.42.0/24.43.1?slim=true) |
| [vitest](https://vitest.dev) ([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | [`4.1.5` → `4.1.6`](https://renovatebot.com/diffs/npm/vitest/4.1.5/4.1.6) | ![age](https://developer.mend.io/api/mc/badges/age/npm/vitest/4.1.6?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vitest/4.1.5/4.1.6?slim=true) |

---

### Release Notes

<details>
<summary>vitest-dev/vitest (@&#8203;vitest/coverage-v8)</summary>

### [`v4.1.6`](https://github.com/vitest-dev/vitest/releases/tag/v4.1.6)

[Compare Source](https://github.com/vitest-dev/vitest/compare/v4.1.5...v4.1.6)

#####    🐞 Bug Fixes

- **browser**: Provide project reference in `ToMatchScreenshotResolvePath`  -  by [@&#8203;macarie](https://github.com/macarie) and [@&#8203;sheremet-va](https://github.com/sheremet-va) in [#&#8203;10138](https://github.com/vitest-dev/vitest/issues/10138) [<samp>(31882)</samp>](https://github.com/vitest-dev/vitest/commit/31882607c)
- Global `sequence.concurrent: true` with top-level `test(..., { concurrent: false })` + depreacte `sequential` test API and options  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa), **Codex** and [@&#8203;sheremet-va](https://github.com/sheremet-va) in [#&#8203;10196](https://github.com/vitest-dev/vitest/issues/10196) [<samp>(2847d)</samp>](https://github.com/vitest-dev/vitest/commit/2847dfa2a)
- **browser**: Simplify orchestrator otel carrier  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in [#&#8203;10285](https://github.com/vitest-dev/vitest/issues/10285) [<samp>(18af9)</samp>](https://github.com/vitest-dev/vitest/commit/18af98cee)

#####    🏎 Performance

- Stringify diff objects only once  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in [#&#8203;10276](https://github.com/vitest-dev/vitest/issues/10276) [<samp>(9f7b1)</samp>](https://github.com/vitest-dev/vitest/commit/9f7b1528c)

#####     [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.5...v4.1.6)

</details>

<details>
<summary>puppeteer/puppeteer (puppeteer)</summary>

### [`v24.43.1`](https://github.com/puppeteer/puppeteer/blob/HEAD/CHANGELOG.md#24431-2026-05-11)

[Compare Source](https://github.com/puppeteer/puppeteer/compare/puppeteer-v24.43.0...puppeteer-v24.43.1)

##### ♻️ Chores

- **puppeteer:** Synchronize puppeteer versions

##### Dependencies

- The following workspace dependencies were updated
  - dependencies
    - [@&#8203;puppeteer/browsers](https://github.com/puppeteer/browsers) bumped from 2.13.1 to 2.13.2

##### 🛠️ Fixes

- reject BiDi URL restrictions ([#&#8203;14956](https://github.com/puppeteer/puppeteer/issues/14956)) ([b2140ae](https://github.com/puppeteer/puppeteer/commit/b2140ae75411bc5c9dc13d10e853372d9dbc9cb5))
- remove networkidle options from setContent ([#&#8203;14940](https://github.com/puppeteer/puppeteer/issues/14940)) ([54254e4](https://github.com/puppeteer/puppeteer/commit/54254e49668ecf2130e0e6b5ef8d25223264ce14))
- roll to Firefox 150.0.2 ([#&#8203;14946](https://github.com/puppeteer/puppeteer/issues/14946)) ([a588310](https://github.com/puppeteer/puppeteer/commit/a58831074136da60b3a8ea1c28be799d9027c830))

#####  Performance

- dispose sub-classes correctly ([#&#8203;14430](https://github.com/puppeteer/puppeteer/issues/14430)) ([e285ff2](https://github.com/puppeteer/puppeteer/commit/e285ff2dec00dd4f3e0b125a4f26c394ac369e72))
- optimize url blocking on navigation ([#&#8203;14945](https://github.com/puppeteer/puppeteer/issues/14945)) ([e4002a4](https://github.com/puppeteer/puppeteer/commit/e4002a4264626982a5228e72b07e2e47b0187189))

### [`v24.43.0`](https://github.com/puppeteer/puppeteer/blob/HEAD/CHANGELOG.md#24430-2026-05-06)

[Compare Source](https://github.com/puppeteer/puppeteer/compare/puppeteer-v24.42.0...puppeteer-v24.43.0)

##### 🎉 Features

- Implement allowlist ([#&#8203;14897](https://github.com/puppeteer/puppeteer/issues/14897)) ([e7e31f8](https://github.com/puppeteer/puppeteer/commit/e7e31f8a33b95bb79958ca6077f418c21ea6c88d))
- roll to Chrome 148.0.7778.56 ([#&#8203;14918](https://github.com/puppeteer/puppeteer/issues/14918)) ([65890b7](https://github.com/puppeteer/puppeteer/commit/65890b7fe735d6706ea614ba04613f7132b1e08f))
- roll to Firefox 150.0 ([#&#8203;14900](https://github.com/puppeteer/puppeteer/issues/14900)) ([beab61b](https://github.com/puppeteer/puppeteer/commit/beab61bdb011679a00e7a0719632f7d09f00431a))
- support checkboxes and radios in locator.fill ([#&#8203;14939](https://github.com/puppeteer/puppeteer/issues/14939)) ([fec05a0](https://github.com/puppeteer/puppeteer/commit/fec05a099b1b762b997c5d0bbb210900f4790e1c))
- **webmcp:** Add support for untrustedContent WebMCPAnnotation ([#&#8203;14901](https://github.com/puppeteer/puppeteer/issues/14901)) ([0314942](https://github.com/puppeteer/puppeteer/commit/0314942d5a1997c34afb8bb8660f8263c4975921))

##### Dependencies

- The following workspace dependencies were updated
  - dependencies
    - [@&#8203;puppeteer/browsers](https://github.com/puppeteer/browsers) bumped from 2.13.0 to 2.13.1

##### 🛠️ Fixes

- Disable WebUIReloadButton experiment ([#&#8203;14925](https://github.com/puppeteer/puppeteer/issues/14925)) ([d9639e9](https://github.com/puppeteer/puppeteer/commit/d9639e9dfec81ddd0631bf88c0e673d0056f0632))
- do not open DevTools if it is already open ([#&#8203;14922](https://github.com/puppeteer/puppeteer/issues/14922)) ([84c9d34](https://github.com/puppeteer/puppeteer/commit/84c9d34b687c2ba7af13d0e484450edd285c4cd2))
- do not set global offline flag for allowlist ([#&#8203;14931](https://github.com/puppeteer/puppeteer/issues/14931)) ([d6a1003](https://github.com/puppeteer/puppeteer/commit/d6a1003384b9fe9810a9b109ef649fbf0f44dd1f))
- roll to Chrome 148.0.7778.97 ([#&#8203;14929](https://github.com/puppeteer/puppeteer/issues/14929)) ([536eb11](https://github.com/puppeteer/puppeteer/commit/536eb11c6787be43a3fdbafa153080619b4eaeec))
- roll to Firefox 150.0.1 ([#&#8203;14923](https://github.com/puppeteer/puppeteer/issues/14923)) ([50438cf](https://github.com/puppeteer/puppeteer/commit/50438cff577f8f27d34aefeb2af84658b62d7db5))

</details>

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE1MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.keligrubb.com/keligrubb/scrollsmith/pulls/16
Co-authored-by: Renovate Bot <renovate@keligrubb.com>
Co-committed-by: Renovate Bot <renovate@keligrubb.com>
2026-05-16 02:28:24 +00:00
2026-02-21 22:19:21 -05:00
2026-02-21 22:19:21 -05:00
2026-02-21 22:19:21 -05:00
2026-02-22 03:26:50 +00:00
2026-02-21 22:19:21 -05:00
2026-02-21 22:19:21 -05:00

Scrollsmith

status-badge

Scrollsmith is a Node.js tool for generating Dungeons & Dragons one-page dungeon PDFs automatically. It calls an LLM (Open WebUI /api/chat/completions or Ollama /api/generate, inferred from OLLAMA_API_URL), proofreads and refines the result, then builds a structured PDF with maps, rooms, encounters, treasure, and NPCs.


Features

  • Three-pass dungeon generation:
    1. Draft: initial dungeon ideas
    2. Refine: proofread, add flavor, fill in vague details
    3. JSON conversion: output strictly valid JSON for PDF generation
  • Automatically generates a PDF named after the dungeon title
  • PDF layout includes three columns: map & hooks, rooms, encounters & treasure & NPCs
  • Open WebUI or Ollama

Requirements

  • Node.js 22+
  • LLM endpoint (see below)
  • Gitea Releases (optional) for PDF uploads
  • .env file with:
OLLAMA_API_URL=https://your-openwebui-host/api/chat/completions
OLLAMA_API_KEY=your_api_key_here
OLLAMA_MODEL=qwen3.5-122b-a10b
COMFYUI_URL=http://192.168.1.124:8188

Installation

git clone https://github.com/yourusername/scrollsmith.git
cd scrollsmith
npm install

API Configuration

The client automatically infers the API type from the endpoint URL, making it flexible for different deployment scenarios.

Direct Ollama API

For direct Ollama API calls, set:

OLLAMA_API_URL=http://localhost:11434/api/generate

Open WebUI API

For Open WebUI API calls, set:

OLLAMA_API_URL=https://your-openwebui-host/api/chat/completions
OLLAMA_API_KEY=your_open_webui_api_key
OLLAMA_MODEL=qwen3.5-122b-a10b

Note: The API type is inferred from the URL (/api/chat/completions vs /api/generate); no OLLAMA_API_TYPE variable.


Usage

  1. Configure .env and ensure the LLM endpoint is reachable.
  2. Run:
npm start
  1. A PDF will be generated automatically. The filename matches the dungeon title.

Optional: update the map path in index.js if you have a local dungeon map.


Project structure

  • index.js Entry point: env, model init, dungeon + image + PDF.
  • src/ Application modules:
    • dungeonGenerator.js LLM-backed dungeon content generation and validation.
    • dungeonTemplate.js HTML template and layout for the PDF.
    • ollamaClient.js Ollama/Open WebUI API client and text cleaning.
    • imageGenerator.js Map image generation (Ollama + optional ComfyUI).
    • generatePDF.js Puppeteer-based PDF generation from the template.
  • test/ Unit tests (test/unit/) and integration tests (test/integration/).

Example Output

  • the-tomb-of-shadows.pdf

  • Three-column layout:

    • Column 1: Map, Adventure Hooks, Rumors
    • Column 2: Rooms
    • Column 3: Encounters, Treasure, NPCs

Notes

  • Open WebUI needs a valid OLLAMA_API_KEY when the server requires it.
  • Dungeon generation can take a few minutes depending on your LLM response time.

License

PROPRIETARY

S
Description
No description provided
Readme 1.1 MiB
2026-04-30 Latest
2026-04-30 00:03:38 +00:00
Languages
JavaScript 100%