← Demos

Porting with pig-porter

Check a Pi extension for Go SDK gaps

pig-extension-porter loads the equivalence harness and runs equivalence_gaps on a TypeScript Pi extension.

0:12 · pig 0.9.0 · recorded 2026-11-30 · model replies are scripted; tool calls and commands are real · captions in English, under the clip

What you are seeing

  • pig starts with the pig-extension-porter Piglet, which bundles the extension-equivalence Go extension and the porting skill.
  • A prompt asks the agent to check greet/index.ts (a TypeScript Pi extension) for Go SDK gaps.
  • The model calls the equivalence_gaps tool; pig runs the static surface check and prints PASS (zero missing Go SDK APIs).
  • The model replies ready to write tests and port greet/index.ts to Go. Model replies are scripted; the extension file and static gap check are real.

Try it yourself

  1. Add the pig-extension-porter Piglet from npm

    pig piglet add npm:@pi-in-go/pigpen-piglet-pig-extension-porter
  2. Start pig with the porter Piglet

    pig --piglet pig-extension-porter

Read the porting guide

Files: MP4 · WebM · Captions (VTT) · PiG source

Next: Play PiG Runner inside the terminal