
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Text Adventures generator from Markdown files.
Note: this is prototype app without proper unit tests. Use it at your own risk!
Usage:
$ textadv <command> [options]
Commands:
gen <file> Generates Text Adventure from a Markdown file
run <file> Runs Text Adventure from a Markdown file
For more info, run any command with the `--help` flag:
$ textadv gen --help
$ textadv run --help
Options:
-h, --help Display this message
Declare your project's name and intro at the root level:
# Haunted House
This is the intro to this awesome adventure!
Let's dive in!
You can optionally start your file with a meta-information block:
---
title: Haunted House
author: John Doe <john.doe@example.com>
---
Declare each location as a second-level text with a pin emoji:
## 📍 Uncle's house
You are at your uncle's house.
The dog is restless and you hear a sound coming from the kitchen.
Sometimes you'll prefer to use a short identifier for your location (when using the goto command, for instance). This can be done via the [...] marker as seen below:
## 📍 Uncle's Kitchen [kitchen]
There is no one here...
The trash can is moving!
After declaring a location's description, add possible interactions as bullet-point lists:
- go kitchen
- "You hold your breath for a moment and decide do check the kitchen"
- goto kitchen
- stand still
- "You decide it's better to stay quiet and watch your surroundings"
Each bullet point is matched against the players input. When a match is found, it will start executing the second-level bullet-points, and stop when those are finished (unless explicitly instructed otherwise by Commands and Checks)
You can have one single bullet-point match against lots of input variations. Example:
- check/examine dog/beagle/buddy
- "Buddy is moving around the room in a very unusual way"
- hear/check sound(s)/noise; pay attention
- "This is nothing like you've heard before"
Second-level bullet-points can be of 3 types: messages, commands, or checks.
A message is just a quoted text:
"You hold your breath for a moment and decide do check the kitchen"
A command can change the state of the game.
Command's reference list:
A check will test the condition and skip to the next bullet when the condition is false.
Check's reference list:
TODO
You can split your adventure into multiple markdown files by using the extends keyword.
[extends](./another-file.md)
This will instantly load the referenced file (in parenthesis) and add its contents to each declared section.
This means you can have multiple files adding descriptions and commands to the same previously declared sections, in effect "extending" them.
FAQs
Text Adventures generator from Markdown files
We found that textadv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.