Trust metadata viewer, embedder, and auditor for Google Docs, Sheets, and Slides.
- AKF menu in Docs, Sheets, and Slides (View Trust, Run Audit, Embed Metadata)
- Sidebar with tabbed UI — Overview, Claims, Provenance, Audit, Detection
- Card Service homepage for the add-on panel
- 7 compliance checks with score and recommendations
- 10 AI-specific detection classes (hallucination risk, knowledge laundering, trust degradation, etc.)
- Claim creation — add claims with confidence, source attribution, and AI risk tagging
- Metadata stored via
DocumentProperties(persists within Google Workspace)
npm install -g @google/clasp
clasp loginclasp create --type standalone --title "AKF Trust Metadata"This generates .clasp.json with your project's scriptId.
cd extensions/google-workspace
clasp pushclasp openIn the Apps Script editor, click Deploy → Test deployments → select a Google Doc/Sheet/Slide to test with.
- Set up a GCP project and link it to the Apps Script project
- Configure the OAuth consent screen
- Submit via the Google Workspace Marketplace SDK
Code.gs— entry point: menu setup, sidebar launcher, Card homepage triggerAKF.gs— metadata storage (DocumentProperties), embed logic, 7-check audit, 10 detection classes, trust computationCards.gs— Card Service UI for homepage, claims list, audit results, detection cardSidebar.html— rich sidebar with tabs (Overview, Claims, Provenance, Audit, Detection), claim creation form, dark theme
Document Properties don't survive export to .docx. For DOCX interop, use the Python CLI (akf embed) to re-embed after export.