Skip to content
openricPublic

About

Pure-browser data-entry tool for any OpenRiC-conformant server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

@openric/capture

A pure-browser data-entry tool for any server that implements the OpenRiC Viewing + Write API (/api/ric/v1/*). You supply a server URL and an API key; the app POSTs captured entities straight to that server. No backend. No Heratio assumptions.

Live demo: capture.openric.org Sibling project: @openric/viewer

What it does

  • Create Records, Agents, Repositories, Functions, Places, Rules, Activities, Instantiations, and Relations against any OpenRiC-conformant server (8 entity types per spec v0.37 §6).
  • Pull the taxonomy (type pickers) live from /api/ric/v1/vocabulary/{taxonomy}, so form options always match whatever taxonomy the server actually publishes.
  • Remember the server URL in localStorage; keep the API key for the browser session only (sessionStorage). The key is sent nowhere except the server you configured.
  • Log the last 20 captures in localStorage so you can verify and navigate.

Spec v0.37 dual-read

Capture is namespace-agnostic by design: forms POST native DB-column field names (name, title, start_date, etc.), not JSON-LD CURIEs. On load-for-editing the loadForEditing helper strips every @* and xxx:yyy key from server responses, reading only the native columns. This means Capture works unchanged against:

  • Pre-spec-v0.37 servers that emit rico:heldBy / rico:hasInstantiation / rico:Production
  • Spec-v0.37+ servers that emit rico:hasOrHadHolder / rico:hasOrHadInstantiation / rico:Activity + rico:hasActivityType
  • Servers using the openricx: extension namespace for description / contact / DateRange / etc.

The tile help text reflects spec v0.37 framing (Mechanism is a canonical Agent subclass; Repository / Function are API surfaces with documented canonical mappings; Activity uses hasActivityType IRIs).

Why standalone

OpenRiC is implementation-neutral. The viewer was extracted from Heratio to prove that any OpenRiC-conformant server can drive it; this tool is the mirror of that story on the capture side. Heratio, the GLAM platform from the same maintainers, has its own capture screens at heratio.theahg.co.za/ric-capture; this is not that.

Run locally

Zero build step. Open docs/index.html in a browser, or:

python3 -m http.server -d docs 8000
# http://localhost:8000

Deploy

GitHub Pages serves docs/ on the main branch. Custom domain via docs/CNAME.

Licence

AGPL-3.0-or-later.

About

Pure-browser data-entry tool for any OpenRiC-conformant server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors