No description
  • Go 96.2%
  • Go Template 3.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Humphrey Drummond caa602eddf Migrate module path from github.com to codeberg.org
Codeberg is the primary source; GitHub is a mirror.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 23:02:26 +00:00
.vscode Working release but layout needs to be improved. 2026-03-02 22:01:48 +00:00
cmd Migrate module path from github.com to codeberg.org 2026-03-26 23:02:26 +00:00
docs Goluca syntax and mostly working 2026-03-05 17:12:46 +00:00
internal Migrate module path from github.com to codeberg.org 2026-03-26 23:02:26 +00:00
testdata Goluca syntax and mostly working 2026-03-05 17:12:46 +00:00
.gitignore Refactoring to use gotreesitter parser 2026-03-04 12:09:07 +00:00
.goreleaser.yaml Creating install and getting ready for task-plus 2026-03-06 00:02:34 +00:00
CHANGELOG.md Update CHANGELOG for v0.1.6 2026-03-06 00:02:34 +00:00
go.mod Migrate module path from github.com to codeberg.org 2026-03-26 23:02:26 +00:00
go.sum Goluca syntax and mostly working 2026-03-05 17:12:46 +00:00
LICENSE Initial commit 2026-02-28 09:04:35 +00:00
pta2svg Working release but layout needs to be improved. 2026-03-02 22:01:48 +00:00
README.md Migrate module path from github.com to codeberg.org 2026-03-26 23:02:26 +00:00
ROADMAP.md Goluca syntax and mostly working 2026-03-05 17:12:46 +00:00
task-plus.yml Add task-plus.yml and links section to README 2026-03-09 16:48:26 +00:00
Taskfile.yml Working release but layout needs to be improved. 2026-03-02 22:01:48 +00:00

pta2svg

Generate styled SVG flowcharts from plain text accounting (go-luca) files showing money flows between accounts.

Install

go install codeberg.org/hum3/pta2svg/cmd/pta2svg@latest

Usage

pta2svg [flags] <file.pta>
  -o string     output file (default: stdout)
  -animate      enable CSS flow animations
  -title string SVG title
  -layout string layout engine (default "lr")

Example

pta2svg testdata/simple.pta > output.svg
pta2svg -animate -title "Bank Deposit" testdata/simple.pta > animated.svg

Input Format

2024-01-15 * Salary deposit
  +Income:Salary -> Asset:Bank salary payment 5000.00 GBP

2024-01-20 * Pay rent
  Asset:Bank -> Expense:Rent monthly rent 1200.00 GBP

Lines: [+]from -> to [description] amount [commodity]

The + prefix links movements for staggered animation. Arrow variants: >, ->, //, .

Documentation https://h3-pta2svg.statichost.page/
Source (Codeberg) https://codeberg.org/hum3/pta2svg
Mirror (GitHub) https://github.com/drummonds/pta2svg