GraphFakos
Standalone provider-neutral graph lens for shared package viewers.
graphfakos is a reusable graph lens for agent memory and source knowledge
graphs. It provides provider-neutral graph DTOs, adapter protocols, static HTML
rendering, local preview serving, and test helpers for package-owned graph
viewers.
GraphFakos exists so packages such as Sophiagraph, PragmaGraph, OpenMinion, and third-party graph providers can share a visual graph workbench without sharing their internal graph truth or lifecycle semantics.
The name comes from Greek fakós (φακός), meaning lens; in this package it
frames the shared graph workbench as a provider-neutral lens over nodes, edges,
provenance, citations, and package-owned graph semantics rather than as a graph
builder or memory store.
Initial Release Status
GraphFakos is a 0.0.2 semantic-alpha release intended for
local package integrations, adapter development, and visual graph inspection.
The stable package contract is the provider-neutral DTO model,
GraphFakosProvider, static HTML export, local preview serving, console
scripts, and reusable viewer assertions.
Trust and Brand Safety
- Official GitHub:
https://github.com/openminion/graphfakos - Official website:
https://www.openminion.com - Official X account:
https://x.com/OpenMinion
graphfakos has no official token, coin, NFT, airdrop, staking program,
treasury product, or investment offering. Any claim otherwise is unauthorized
and should be treated as a scam.
graphfakos is a viewer and adapter-contract package. It does not infer facts,
extract memories, ingest repositories, enforce OpenMinion runtime policy, or
decide which graph items are true. Providers own their graph semantics and pass
explicit nodes, edges, provenance, citations, and provider payloads into
GraphFakos.
At a Glance
- package name:
graphfakos - console scripts:
graphfakos,graphfakos-smoke,graphfakos-ui - core contract:
GraphFakosProvider - graph envelope:
GraphFakosGraph - type marker:
py.typed - local viewer: static HTML and local preview server
- compatibility proof: fake third-party provider plus package viewer tests
Installation
python3.11 -m pip install graphfakos
For sibling-package development before the first PyPI release, install from a local checkout:
python3.11 -m pip install -e .
What the Package Provides
- provider-neutral graph DTOs for nodes, edges, provenance, citations, visual hints, and viewer requests
- a provider protocol that graph packages can implement without importing Sophiagraph, PragmaGraph, or OpenMinion
- a local graph workbench with explore, neighborhood, path, provenance, timeline, diff, provider-status, and context-preview screens
- a public screen manifest with provider-neutral routes, labels, and summaries
- built-in review presets for overview, focus review, evidence, diff, graph health, timeline, and context workflows
- provider-neutral graph diagnostics for orphan nodes, duplicate edges, missing provenance/citation references, and provider warnings
- dependency-free navigation for node selection, edge inspection, query search, common filters, and public deep-link route helpers
- progressive SVG camera controls for pan, zoom, fit, reset, fullscreen, and node dragging while keeping static HTML useful without JavaScript
- a framework-neutral
<graphfakos-viewer>custom element backed by packaged browser runtime assets - camera-aware saved-view routes with
camera_x,camera_y, andcamera_zoom - browser-local saved-view slots for workbench iteration without implying provider persistence or hosted collaboration
- serializable viewer state plus provider-neutral command, event, expansion-request, knowledge-capture, saved-view, saved-query, graph-action, action-status, graph-analytics, replay-bundle, and theme DTOs for host integrations
- an explicit SVG renderer contract with clear unsupported-engine failures for future Canvas/WebGL seams
- route-preserved renderer/theme state so host workbenches can experiment with Canvas/WebGL while static exports honestly fall back to SVG
- provider-neutral visual hierarchy with node shapes, edge arrows, selected path emphasis, minimap orientation, group toggles, and side-panel cross-highlighting
- depth-aware neighborhood expansion, orphan visibility, neighbor-link visibility, edge-clutter controls, analytics overlays, and path source/target controls
- route-backed command palette with saved queries, navigation, evidence review, authoring jumps, export-state shortcuts, and progressive keyboard filtering for faster graph workbench flow
- hub-aware navigation panels that recommend global, local-depth, evidence, path, status, and context routes for larger graphs
- preview-server knowledge capture forms so host providers or workers can consume operator notes, code observations, questions, or memory hints and rebuild the graph
- preview-server graph action forms so providers can accept draft nodes, links, merge/alias requests, or return clear unsupported-action statuses
- public query syntax guidance for graph filters such as
kind:,tag:,source:,edge:,id:,label:,summary:,has:, quoted phrases,score>=, andtime>= - snapshot metadata on graph envelopes plus provider-owned comparison and overlay workflows
- richer diff and provenance review surfaces with change hotspots, evidence coverage, and citation location summaries
- persisted graph artifact helpers plus a file-backed provider adapter for standalone review flows
- static HTML export for portable inspection
- embeddable HTML fragments for host package shells
- JSON, Markdown, DOT, and replay-bundle exports for CI proof, issue attachments, exact-state replay, and package-local review flows
- a local HTTP preview server for interactive package development
- a fake fixture provider for tests and third-party adapter examples
- shared test assertions for graph viewer contracts
What the Package Does Not Provide
- durable memory persistence
- source ingestion
- fact extraction
- graph construction
- OpenMinion runtime policy
- Sophiagraph trust semantics
- PragmaGraph freshness or source semantics
Provider Adapter Contract
Providers implement GraphFakosProvider:
from graphfakos import GraphFakosProvider, GraphFakosRequest, GraphFakosGraph
class MyProvider:
provider_id = "my_provider"
provider_label = "My Provider"
graph_role = "third_party"
capabilities = ("search", "neighborhood", "path", "provenance")
def load_graph(self, request: GraphFakosRequest) -> GraphFakosGraph:
...
GraphFakos understands how to display graph-shaped data. Providers own what their data means.
Package UI Wrappers
GraphFakos is the shared viewer implementation. Package-local *-ui commands
should stay thin:
sophiagraph-uimaps durable second-brain memory records into GraphFakos DTOs through Sophiagraph's adapter, then calls the shared viewer.pragmagraph-uimaps source/document/code graph snapshots into GraphFakos DTOs through PragmaGraph's adapter, then calls the shared viewer.- future packages should implement a
GraphFakosProvideradapter instead of copying viewer HTML, local-server behavior, navigation screens, or tests.
This keeps the visual workbench consistent while preserving each package's own storage, trust, freshness, and lifecycle semantics.
Examples
Launch the reusable dynamic viewer in a browser:
make preview
make preview serves the viewer at a local HTTP URL and opens the browser. It
does not require a generated HTML file. In server mode, GraphFakos serves a
live workbench: internal links and filter forms update the viewer in place
through server-rendered fragments. The side panel can also submit notes or
observations to providers that support the workbench capture protocol. Stop the
server with Ctrl-C.
Write a portable static export under the gitignored repo-local preview folder:
make preview-html
The static export lands in .graphfakos-preview/graphfakos-viewer.html and is
useful for sharing or no-JavaScript fallback checks. Treat it as an export, not
the main dynamic viewer workflow. Static exports are view-only; run the preview
server when you want note capture or provider-backed graph refreshes.
Iterate the viewer against generated mock graphs:
make preview-demo
make preview-dense
make preview-timeline
make preview-warnings
make preview-path
make preview-provenance
make preview-workbench
make preview-budget
make preview-islands
These commands use deterministic demo scenarios instead of real provider data,
which makes UI work easier to repeat. The available scenarios are
agent-memory, source-code, dense, timeline, warnings, pathfinding,
provenance, facets, workbench-mixed, budget, and islands.
Use the scenarios as a core-feature plus UI matrix:
pathfinding: path screen, source/target controls, shortest-path highlight.provenance: provenance screen, citation cards, evidence coverage.facets: filter controls across node kind, edge kind, tag, and source.workbench-mixed: combined agent/session memory, code, docs, tests, human notes, evidence gaps, and preview-only graph actions.budget: render-limit behavior, summarized hidden nodes, show-more route.islands: provider-status diagnostics for disconnected components.agent-memory: knowledge capture workflow beside a focused agent/memory graph.
To test the capture loop, run make preview-demo, choose or keep a focused
node, write a note in Capture Knowledge, and submit it. The demo provider
stores captures in memory for that server session and renders them back as
linked graph nodes. Real providers can implement the same action to persist the
payload, enqueue a worker, rebuild a code/static graph, or maintain a durable
knowledge graph outside GraphFakos.
You can also choose a scenario manually:
graphfakos-ui --demo-scenario source-code --screen explore --serve --open
graphfakos-ui --demo-scenario dense --screen explore --layout grouped --render-limit 240 --serve --open
graphfakos-ui --demo-scenario timeline --screen timeline --layout timeline --serve --open
graphfakos-ui --demo-scenario pathfinding --screen path --source-node-id provider:entry --target-node-id artifact:result --serve --open
graphfakos-ui --demo-scenario workbench-mixed --screen explore --focus-node-id agent:reviewer --serve --open
Render the built-in third-party fixture manually:
graphfakos-ui --screen explore --html-out .graphfakos-preview/graphfakos-ui-preview.html --json
Render a diff view plus export machine-readable and Markdown reports:
graphfakos-ui \
--screen diff \
--comparison-graph-id fixture-baseline \
--artifact-out graphfakos-artifact.json \
--embed-out graphfakos-embed.html \
--report-out graphfakos-report.json \
--markdown-report-out graphfakos-report.md \
--dot-out graphfakos-report.dot \
--bundle-out graphfakos-replay.json \
--json
Jump straight into a built-in review flow:
graphfakos-ui --preset focus --focus-node-id provider:third-party --html-out graphfakos-focus.html --json
Serve the local viewer:
graphfakos-ui --screen neighborhood --serve --open
Filter a graph and inspect an edge:
graphfakos-ui \
--screen explore \
--node-kind provider \
--edge-kind serves \
--selected-edge-id edge:provider-serves-spec \
--html-out graphfakos-filtered.html \
--json
Build or parse a shareable viewer route from Python:
from graphfakos import GraphFakosRequest, build_viewer_route, parse_viewer_request
request = GraphFakosRequest(
screen="diff",
query="kind:file has:provenance",
comparison_graph_id="structural_baseline",
)
route = build_viewer_route(request)
parsed = parse_viewer_request("/diff", {"query": ["kind:file has:provenance"]})
Render from a persisted GraphFakos artifact instead of the built-in fixture:
graphfakos-ui \
--graph-json graphfakos-artifact.json \
--comparison-graph-json graphfakos-baseline.json \
--screen diff \
--html-out graphfakos-from-artifact.html \
--json
Render from a real provider module:
graphfakos-ui \
--provider-module my_package.graph_provider \
--provider-class MyGraphProvider \
--provider-config-json '{"workspace": ".graph-workspace"}' \
--screen provider_status \
--html-out graphfakos-provider.html \
--json
Package adapters stay responsible for their own semantics:
- Sophiagraph maps durable memories, candidates, trust signals, structural links, and provenance into GraphFakos DTOs.
- PragmaGraph maps source files, documents, symbols, chunks, citations, freshness, and provider status into the same DTOs.
Persist and reload one provider-neutral graph artifact from Python:
from graphfakos import (
FixtureGraphProvider,
GraphFakosRequest,
load_graph_artifact,
load_provider_graph,
write_graph_artifact,
)
graph = load_provider_graph(FixtureGraphProvider(), GraphFakosRequest())
write_graph_artifact(graph, "graphfakos-artifact.json")
reloaded = load_graph_artifact("graphfakos-artifact.json")
For package-to-package replay flows, CI attachments, and issue-review examples, see Artifact interchange.
Docs and Release
- API compatibility
- Release process
- Package docs
- Artifact interchange
- Custom provider example
- UI contracts
- Source tree owner map
Run local release checks:
.venv/bin/python3.11 scripts/release_check.py --skip-twine --skip-wheel-smoke
License and Brand-use Boundary
GraphFakos is distributed under the Apache License 2.0. The license covers code use and contribution terms. It does not grant rights to imply endorsement by OpenMinion, Sophiagraph, PragmaGraph, or related project brands.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graphfakos-0.0.2.tar.gz.
File metadata
- Download URL: graphfakos-0.0.2.tar.gz
- Upload date:
- Size: 182.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95a5d3d1a2ba7aee7865a84be2dfa14095047364a8c72ae716f73dabb4855bfa
|
|
| MD5 |
3b99523945cfb969e7c510d5241c1af4
|
|
| BLAKE2b-256 |
39ae2d522ae11526448e62f8f2643596a72107237904958e3a3b726bc9356cb6
|
Provenance
The following attestation bundles were made for graphfakos-0.0.2.tar.gz:
Publisher:
release.yml on openminion/graphfakos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
graphfakos-0.0.2.tar.gz -
Subject digest:
95a5d3d1a2ba7aee7865a84be2dfa14095047364a8c72ae716f73dabb4855bfa - Sigstore transparency entry: 2055043085
- Sigstore integration time:
-
Permalink:
openminion/graphfakos@b9e2fbe189a8b2f2b8a47bcb774364d94268a93b -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/openminion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b9e2fbe189a8b2f2b8a47bcb774364d94268a93b -
Trigger Event:
push
-
Statement type:
File details
Details for the file graphfakos-0.0.2-py3-none-any.whl.
File metadata
- Download URL: graphfakos-0.0.2-py3-none-any.whl
- Upload date:
- Size: 126.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
697ee45f5bbe02dfe902b259652cf840806bf412c64bb208490bf4f1c187c45a
|
|
| MD5 |
d52b169f06b7311a24bafd9969ea2cc9
|
|
| BLAKE2b-256 |
54903ec151bc81c0c319c79adb55a63520e8be5e111eb581593f5bf076469bdf
|
Provenance
The following attestation bundles were made for graphfakos-0.0.2-py3-none-any.whl:
Publisher:
release.yml on openminion/graphfakos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
graphfakos-0.0.2-py3-none-any.whl -
Subject digest:
697ee45f5bbe02dfe902b259652cf840806bf412c64bb208490bf4f1c187c45a - Sigstore transparency entry: 2055043283
- Sigstore integration time:
-
Permalink:
openminion/graphfakos@b9e2fbe189a8b2f2b8a47bcb774364d94268a93b -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/openminion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b9e2fbe189a8b2f2b8a47bcb774364d94268a93b -
Trigger Event:
push
-
Statement type: