Skip to content
itama8Public

About

Editable SVG symbols and drawings for water and wastewater treatment plants.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

processvg

Beautiful drawings for process engineers.

ProcessVG draws P&IDs, process flow diagrams, sections and layouts of water and wastewater treatment plants as editable SVG using the style and tooling of Pasquale Vitiello’s Plotter project (source repository). Drawings use one ink, one-unit strokes and opacity for hierarchy. Each symbol records its sources and review status.

What is here

Path What
src/index.mjs The public API. Import from here (import … from "processvg"); other modules are internal.
AGENTS.md, docs/agents.md How agents draw with the library today, and the plan for Sushi, Claude and ChatGPT.
src/library.mjs The symbol library: lines, valves (open and closed), actuators, channel gates, instruments, primary elements, pumps and blowers, screening and grit. Each symbol has ports, states and its sources.
src/render.mjs Shapes to SVG in Plotter roles, with screen, print and inline profiles.
docs/family-01.md Family 01 ports, routed line patterns, off-sheet connectors, elevation annotations, and the review gallery.
docs/family-02.md Valve body composition, normal and operating states, typed interfaces and review fixtures.
docs/family-03.md Actuator heads and legacy presets, shared equipment mounting, and layout/export review.
docs/family-05.md Instrument modes, identity and ports, archived compatibility, and referenced logic diagrams.
docs/family-06.md Primary elements, analyte layout, typed measurement networks, migration and measuring views.
docs/family-07.md Pump and blower variants, independent drives, typed topology and asset views.
docs/family-08.md Opt-in screening and grit candidates, typed routes, dimensioned views and visual proof.
docs/family-09.md Metric civil assemblies, four views, datum and port contracts, SBR motion, and review fixtures.
docs/families-04-09-review.md Second-pass reference review across Families 04–09: cross-family semantics, evidence and open criteria.
docs/structures.md What each treatment structure symbol must show (SBR, MBBR, tube settler, clarifier, grit chambers, …): the test drafts are judged against.
docs/sources.md IS 3232, ISA-5.1, the Brown and Caldwell reference set, CPHEEO, Metcalf & Eddy, and utility standards.
examples/ Drafts built from the library: an inlet-works P&ID and an SBR basin section.
drawings/ Generated SVGs: the examples, the legend sheets, and symbols/catalogue.json (every symbol's geometry for other tools).
vendor/plotter/ The Plotter skill package (MIT; Cal Sans under OFL 1.1), unmodified. UPSTREAM records the commit.
private/ Ignored by git. Drawings made from client or project files.

Conventions

  • In the design view, a filled isolation valve is normally closed. A hollow valve may carry an explicit position label, including NC at reduced scale. See Family 02 for passive valves and the separate operating view. See Family 04 for channel-gate states, archive placement and physical views.
  • Instrument tags are kept simple: FIT-1, LIT-1, LIT-2. A differential level across a screen is computed from two LITs and tagged DLT-1, drawn as a computed (PLC/SCADA) function.
  • Treatment structures are drawn as open-top sections: walls and floor at full ink, water level and internals faint, ports on the outline.
  • Screen drawings follow the reader's theme by default: dark ink on light, light ink on dark, through prefers-color-scheme. A host page sets the ink with the --plotter-ink CSS custom property on any ancestor, or with data-host-ink on the svg and its own colour rule. Strokes stay one pixel at any display size. The SVG print profile uses black ink on white paper.

Use

npm run build    # regenerate drawings/ from src/ and examples/
npm run check    # processvg check (Plotter + P&ID exceptions) and family geometry and semantics
npm run review   # review/index.html: drawings and family galleries

Needs Node 20+ and Python 3. Rendering PNGs uses python3 vendor/plotter/scripts/render.py and a Chromium browser.

Relation to Plotter

processvg builds on Plotter's drafting standard and tooling and keeps a copy of its skill package in vendor/plotter. To update it, copy skills/plotter/ from a newer Plotter checkout and record the commit in vendor/plotter/UPSTREAM.

Licence

processvg is licensed under the MIT License. Vendored Plotter is covered by its MIT license, and the Cal Sans font is covered by the SIL Open Font License 1.1.

About

Editable SVG symbols and drawings for water and wastewater treatment plants.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages