Scan your whole stack
Are you using sg-text-forge?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.8.0
sg-text-forge was last scanned on 29 Nov 2026 at version 0.8.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.8.0 LATEST | 29 Nov 2026 | No rules fired |
| 0.7.11 | 27 Nov 2026 | No rules fired |
| 0.7.10 | 26 Nov 2026 | No rules fired |
| 0.7.9 | 26 Nov 2026 | Not shown |
| 0.7.8 | 26 Nov 2026 | Not shown |
Findings for v0.8.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.8.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Text Forge is a toolkit for working with long-form Markdown as a living text: a website, a book, an editable workspace, an AI-readable corpus, and a source model for agent memory and future meaning graphs.
It grew out of the whattodo / WTD approach — Жизнь как Текст (“Life as Text”): important thinking should remain plain, readable, public, versioned, and useful to both humans and agents. Markdown stays the roots. Everything else is a projection.
Read the repositories in this order when you need the whole system context:
This repository owns the text tooling and projection layer. It does not own platform goals, contracts, commits, or private Compass.md updates. The canonical component map lives in shared-goals/prd.
A meaningful text is not only a page to publish. It is also:
Text Forge keeps these roles connected through one source of truth:
plain Markdown + MkDocs navigation + Git history
↓
Text Forge source model
↓
website / EPUB / Obsidian helpers / AI-readable export
↓
inventory → memory projections → meaning graph projections
The key principle is: do not pollute the source text with infrastructure concerns. Keep Markdown readable. Put publication, memory, graph, and agent mechanics into generated layers.
The WTD approach treats life, work, product thinking, references, doubts, and decisions as a text that can be revised, linked, published, questioned, and remembered.
That creates a different kind of tooling requirement:
Text Forge is the infrastructure layer for that workflow.
Text Forge extends MkDocs Material with:
The same source can become an EPUB:
mkdocs.yml navigation;A video lives in the text as a marker, not as raw HTML:

On the site the marker becomes a responsive player (16:9, loading="lazy", a proper
referrer policy). In the EPUB it becomes a plain link — "▶ Webzavod 1997" — because
e-readers ignore iframes and Pandoc would otherwise pull the page behind the URL
into the book as a media file. The syntax is the one the mkdocs-video plugin uses,
so the source stays portable. Switch it off with video_embeds: false.
The primary editing workflow is local Markdown editing in Obsidian. Text Forge
ships Obsidian helpers for block insertion, internal links, image insertion,
and repeatable vault setup through content-repo Makefile targets such as
make obsidian.
The browser-based live editor is experimental and currently parked. It remains available as a code path for experiments, but it is not the main writing workflow. Prefer Obsidian for real text editing, then use Text Forge to publish, export, inventory, and project the text into agent memory.
Text Forge can generate AI-readable material:
The next layer is a deterministic inventory of the text:
Markdown files + mkdocs.yml + Git metadata
↓
chapters, sections, anchors, line ranges, URLs, draft/published status
This inventory is the common input for downstream tools. They should not reimplement MkDocs parsing.
Current building block:
scripts/wtd-inventory.py
Despite the name, it is the first implementation of a broader pattern: derive a stable source model from a MkDocs text project.
Text Forge also includes a public Hindsight adapter:
scripts/hindsight-ingest.py
It consumes inventory JSON and writes citable documents into Hindsight. This makes a text available to agents as structured memory while preserving public URLs, GitHub source links, chapter/section identity, and tags.
Recommended ownership framing for retain quality and attribution stability:
WTD roots corpus authored by User; Assistant is reader.text_author=User, reader=Assistant.The public adapter is intentionally infrastructure-neutral. Private paths, hostnames, bank names, backups, and operational rituals belong in local Hermes skills or wrappers.
See:
docs/hindsight-memory.md — reference for the Hindsight projection shape;docs/hindsight-memory/SKILL.md — example Hermes skill workflow using Text Forge scripts.Text Forge is not meant to become a monolith. It should be the reusable source-model layer.
┌────────────────────┐
│ plain Markdown text │
└─────────┬──────────┘
│
┌─────────▼──────────┐
│ MkDocs + Git roots │
└─────────┬──────────┘
│
┌─────────▼──────────┐
│ Text Forge model │
└─────────┬──────────┘
│
┌───────────────────┼────────────────────┐
│ │ │
┌───────▼────────┐ ┌───────▼────────┐ ┌────────▼─────────┐
│ Website / EPUB │ │ Agent memory │ │ Meaning graph │
│ EPUB / AI md │ │ Hindsight etc. │ │ future layer │
└────────────────┘ └────────────────┘ └──────────────────┘
For WTD specifically:
WTD roots
= source Markdown, anchors, references, Git history
WTD Hindsight corpus
= agent-memory projection of those roots
WTD graph
= future meaning representation: concepts, mappings, aliases, splits, merges, evolution
The graph can eventually preserve anchor renames and section mappings without adding hidden metadata comments to the Markdown.
Text Forge distinguishes:
mkdocs.yml navigation and released in the table of contents;docs_dir but not in navigation yet.Draft does not mean useless or private. A draft page may still have a stable preview/public URL and can be used for feedback, review, and memory. It is simply not part of the released table of contents.
Explicit heading anchors are treated as public addresses for ideas:
## Form of the Book {#book_form}
A chapter with no anchored headings still has a chapter-level address:
https://example.org/chapter-slug/
This is enough for the source. More complex identity mapping belongs in a generated graph layer, not in the Markdown.
pip install sg-text-forge
# .github/workflows/publish.yml
- uses: shared-goals/text-forge@main
with:
mkdocs_config: mkdocs.yml
docs_dir: text/ru
site_dir: public/ru
When using a local content repo such as whattodo, the default convention is to keep it as a peer directory:
work/
text-forge/
whattodo/
whattodo/Makefile uses:
TEXT_FORGE_DIR ?= ../text-forge
So local script routes resolve from the content repo to this toolkit repo without hardcoded machine-specific paths.
Add the plugin to mkdocs.yml:
plugins:
- text-forge:
editor_enabled: false
nobr_emoticons_enabled: true
downloads_enabled: false
ai_readable_enabled: false
epub_title: "My Book"
epub_author: "Author Name"
Keep editor_enabled off unless you are explicitly testing the parked browser
editor. For day-to-day writing, use the Obsidian helper workflow from the
content repository.
Build EPUB:
text-forge epub --config=mkdocs.yml --build-dir=build
Build complete site:
text-forge build --config=mkdocs.yml --build-dir=build
Generate inventory:
python scripts/wtd-inventory.py --config mkdocs.yml --include-drafts --format json
Dry-run a Hindsight memory projection:
python scripts/wtd-inventory.py --config mkdocs.yml --include-drafts --format json \
| python scripts/hindsight-ingest.py \
--api-url http://localhost:8889 \
--bank hermes \
--strategy wtd-primary \
--dry-run
text-forge epubBuild EPUB from a MkDocs project.
text-forge epub [OPTIONS]
Options:
--config PATH Path to mkdocs.yml (default: mkdocs.yml)
--build-dir PATH Build output directory (default: build)
text-forge buildBuild complete site: EPUB + MkDocs site.
text-forge build [OPTIONS]
Options:
--config PATH Path to mkdocs.yml (default: mkdocs.yml)
--build-dir PATH Build directory (default: build)
--site-dir PATH MkDocs output (default: from mkdocs.yml)
--strict/--no-strict Fail on warnings (default: true)
--copy-artifacts/--no-copy-artifacts
Copy EPUB to site root (default: true)
--create-404-redirect/--no-create-404-redirect
Create 404.html for /ru/* redirects (default: true)
plugins:
- text-forge:
# Editor
editor_enabled: false
nobr_emoticons_enabled: true
video_embeds: true
# Downloads and AI-readable export
downloads_enabled: false
ai_readable_enabled: false
# EPUB metadata
epub_title: ""
epub_subtitle: ""
epub_author: ""
epub_identifier: ""
epub_publisher: ""
epub_rights: ""
# UI labels
source_file_published_title: "Published"
# Theme integration
auto_configure_theme: true
text-forge/
├── text_forge/ # Python package
│ ├── plugin.py # MkDocs plugin
│ ├── build.py # Build pipeline
│ ├── cli.py # CLI commands
│ └── obsidian/ # Obsidian-related templates/helpers
├── scripts/
│ ├── mkdocs-combine.py # Chapter combiner / AI-readable export helper
│ ├── mkdocs_common.py # Shared MkDocs helpers for scripts
│ ├── wtd-inventory.py # Source inventory generator
│ ├── hindsight-ingest.py # Public Hindsight adapter
│ ├── pymdown-pandoc.lua # Pandoc Lua filter
│ └── process-epub-meta.py # EPUB metadata processor
├── docs/
│ └── hindsight-memory/ # Example Hermes skill for memory projection
├── mkdocs/
│ ├── overrides/ # Material theme overrides
│ └── hooks/ # MkDocs hooks
├── epub/ # EPUB templates and styles
└── tests/ # Pytest tests
git clone https://github.com/shared-goals/text-forge.git
cd text-forge
make install
make test
Useful commands:
make format # Run Ruff check --fix and Ruff format
make test # Run i18n check and tests with pytest
make check-i18n # Validate translation keys
make release # Interactive release: bump version, tag, push
MIT License — see LICENSE.
Contributions welcome. Please open issues or pull requests at github.com/shared-goals/text-forge.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.