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.
GraphFakos is a 0.0.1 semantic-alpha package. The initial public release is
intended for local package integrations, adapter development, and visual graph
inspection. The stable starting contract is the provider-neutral DTO model,
GraphFakosProvider, static HTML export, local preview serving, console
scripts, and reusable viewer assertions.
- 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.
- 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
python3.11 -m pip install graphfakosFor sibling-package development before the first PyPI release, install from a local checkout:
python3.11 -m pip install -e .- 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
- 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, node-kind, edge-kind, tag, source, and score filters plus public deep-link route helpers
- depth-aware neighborhood expansion and path source/target controls
- public query syntax guidance for
kind:,tag:,source:,edge:,id:,label:,summary:, andhas:tokens - snapshot metadata on graph envelopes plus provider-owned comparison and overlay workflows
- static HTML export for portable inspection
- embeddable HTML fragments for host package shells
- JSON and Markdown graph reports for CI proof, issue attachments, 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
- durable memory persistence
- source ingestion
- fact extraction
- graph construction
- OpenMinion runtime policy
- Sophiagraph trust semantics
- PragmaGraph freshness or source semantics
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.
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.
Render the built-in third-party fixture:
graphfakos-ui --screen explore --html-out graphfakos-ui-preview.html --jsonRender a diff view plus export machine-readable and Markdown reports:
graphfakos-ui \
--screen diff \
--comparison-graph-id fixture-baseline \
--embed-out graphfakos-embed.html \
--report-out graphfakos-report.json \
--markdown-report-out graphfakos-report.md \
--jsonServe the local viewer:
graphfakos-ui --screen neighborhood --serve --openFilter 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 \
--jsonBuild 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"]})Sophiagraph should expose a second-brain adapter that maps durable memories, candidates, trust signals, structural links, and provenance into GraphFakos DTOs. PragmaGraph should expose a third-brain adapter that maps source files, documents, symbols, chunks, citations, freshness, and provider status into the same DTOs.
- API compatibility
- Release process
- Package docs
- 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-smokeGraphFakos 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.
