showboat
v0.4.0
Published
Create executable demo documents that show and prove an agent's work
Downloads
118
Maintainers
Readme
showboat-js
npm wrapper for showboat - Create executable demo documents that show and prove an agent's work.
Installation
You can run showboat without installing it first using npx:
npx showboat --helpOr install it globally:
npm install -g showboat
showboat --helpOr add it to your project:
npm install showboat
npx showboat --helpUsage
Showboat helps agents build markdown documents that mix commentary, executable code blocks, and captured output. These documents serve as both readable documentation and reproducible proof of work.
# Create a new demo document
showboat init demo.md "My Demo"
# Add commentary
showboat note demo.md "This is a note"
# Execute code and capture output
showboat exec demo.md bash "echo Hello World"
# View the document
cat demo.mdFor more information, see the showboat documentation.
Programmatic API
You can also use showboat programmatically in your Node.js code:
const showboat = require('showboat');
// Execute showboat with arguments
const result = await showboat(['--version']);
console.log(result.stdout); // "0.4.0"
// Create a demo document
await showboat(['init', 'demo.md', 'My Demo']);
await showboat(['note', 'demo.md', 'This is a note']);
const output = await showboat(['exec', 'demo.md', 'bash', 'echo Hello']);
console.log(output.stdout); // "Hello"About
This is an npm wrapper around the showboat Go binary. It automatically downloads the appropriate binary for your platform during installation.
Development
Running Tests
This project includes automated tests using Jest:
# Run tests once
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverageContinuous Integration
This project uses GitHub Actions for CI. The workflow:
- Tests on Node.js 14, 16, 18, and 20
- Tests on Ubuntu, macOS, and Windows
- Ensures the binary installs correctly on all platforms
- Uploads coverage reports
The CI workflow runs automatically on:
- Pushes to the main branch
- Pull requests to the main branch
License
Apache-2.0 (same as showboat)
