Terminology
Terms
- taintwire is the whole technology: this library, which turns JavaScript into a graph and queries it.
- A PookieGraph is the graph taintwire generates from your code. It's an embedded LadybugDB database, saved as a single
.pgfile. See the graph model. - A PookieGraph Query (pgq) is a
.pgqfile of queries you run on a PookieGraph. See Query files (pgq). - PookieGraph aliases (pga) are short names for Cypher fragments that repeat across queries. They live in
.pgqlibrary files in the taintwire-queries pack, not in a file type of their own. See PookieGraph aliases (pga).
Why these names? No reason at all.
File extensions
| Extension | Holds | Made by | Read by |
|---|---|---|---|
.pg | One PookieGraph, a LadybugDB database file | PookieGraph.open(path), js-recon taintwire build | PookieGraph.open(path), js-recon taintwire analyze |
.pgq | A TypeScript module of selectors and rules (a PookieGraph Query) | You, or a query pack such as taintwire-queries | loadPgq(), js-recon taintwire analyze and validate |
.tw | A tar of one .pg per unit plus a manifest.json, so large builds load one unit at a time (see memory) | js-recon taintwire build -o app.tw | js-recon taintwire analyze -g app.tw |
.tw is a js-recon format: the taintwire package itself only reads and writes .pg and .pgq files.