Pittro commited on
Commit
4bf1e6b
·
verified ·
1 Parent(s): 2e5a071

Upgrade to product landing page: hero, architecture flow, 6-framework quickstart tabs; Live Inspector API logic unchanged

Browse files
Files changed (1) hide show
  1. index.html +271 -5
index.html CHANGED
@@ -16,6 +16,7 @@
16
  --yellow: #9a6700;
17
  --red: #cf222e;
18
  --gray: #6e7781;
 
19
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
20
  }
21
  @media (prefers-color-scheme: light) {
@@ -37,6 +38,7 @@
37
  }
38
  .wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 64px; }
39
  h1 { font-size: 1.55rem; margin-bottom: 4px; }
 
40
  .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
41
  .intro { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 24px; font-size: 0.94rem; }
42
  .intro code { background: rgba(127,127,127,0.15); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 0.88em; }
@@ -67,6 +69,7 @@
67
  .badge.yellow { background: var(--yellow); }
68
  .badge.red { background: var(--red); }
69
  .badge.gray { background: var(--gray); }
 
70
  .note { color: var(--muted); font-size: 0.88em; margin-top: 10px; }
71
  .raw { margin-top: 10px; }
72
  .raw summary { cursor: pointer; color: var(--muted); font-size: 0.85em; }
@@ -78,21 +81,264 @@
78
  .status-msg.err { color: var(--red); }
79
  footer { margin-top: 40px; color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--border); padding-top: 16px; }
80
  footer a { color: var(--accent); }
 
81
  hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
82
  #verifyInput { width: 100%; font-family: var(--mono); font-size: 0.88rem; padding: 8px 10px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  </style>
84
  </head>
85
  <body>
86
  <div class="wrap">
87
- <h1>TTTPS Proof-of-Time Explorer</h1>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  <div class="sub">Live demo of a proposal specification, not a ratified standard.</div>
89
 
90
  <div class="intro">
91
- Live demo of the <strong>TTTPS</strong> (Time-Token Transport Protocol Suite) self-sealing
92
- provenance API, served from <a href="https://kpp.kenosian.com" target="_blank" rel="noopener">kpp.kenosian.com</a>.
93
- This page calls the real, public <code>/v1/anchor</code> and <code>/v1/verify</code>
94
  endpoints directly from your browser &mdash; nothing here is simulated, and there is no
95
- backend server for this demo other than your own browser and the API itself.
 
96
  <br><br>
97
  <strong>What a receipt is, and is not:</strong> a receipt cryptographically attests
98
  <em>when</em> a content hash was sealed, its <em>order</em> relative to other seals, and
@@ -129,6 +375,11 @@
129
  Backend: <code>https://kpp.kenosian.com</code> &middot; API spec: proposal, not a ratified standard &middot;
130
  Source endpoints: <code>POST /v1/keys</code>, <code>POST /v1/anchor</code>, <code>POST /v1/verify</code>
131
  &middot; This is a static page; your browser talks to the API directly (CORS-enabled).
 
 
 
 
 
132
  </footer>
133
  </div>
134
 
@@ -296,6 +547,21 @@ verifyBtn.addEventListener("click", async () => {
296
  verifyBtn.disabled = false;
297
  }
298
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  </script>
300
  </body>
301
  </html>
 
16
  --yellow: #9a6700;
17
  --red: #cf222e;
18
  --gray: #6e7781;
19
+ --blue: #1f6feb;
20
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
21
  }
22
  @media (prefers-color-scheme: light) {
 
38
  }
39
  .wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 64px; }
40
  h1 { font-size: 1.55rem; margin-bottom: 4px; }
41
+ h2 { font-size: 1.15rem; margin: 0 0 10px; }
42
  .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
43
  .intro { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 24px; font-size: 0.94rem; }
44
  .intro code { background: rgba(127,127,127,0.15); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 0.88em; }
 
69
  .badge.yellow { background: var(--yellow); }
70
  .badge.red { background: var(--red); }
71
  .badge.gray { background: var(--gray); }
72
+ .badge.blue { background: var(--blue); }
73
  .note { color: var(--muted); font-size: 0.88em; margin-top: 10px; }
74
  .raw { margin-top: 10px; }
75
  .raw summary { cursor: pointer; color: var(--muted); font-size: 0.85em; }
 
81
  .status-msg.err { color: var(--red); }
82
  footer { margin-top: 40px; color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--border); padding-top: 16px; }
83
  footer a { color: var(--accent); }
84
+ footer .badges { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
85
  hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
86
  #verifyInput { width: 100%; font-family: var(--mono); font-size: 0.88rem; padding: 8px 10px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
87
+
88
+ /* --- Hero --- */
89
+ .hero { margin-bottom: 28px; }
90
+ .hero h1 { font-size: 1.9rem; margin-bottom: 8px; }
91
+ .hero .tagline { font-size: 1.02rem; color: var(--text); opacity: 0.85; max-width: 640px; margin-bottom: 18px; }
92
+ .stats-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
93
+ .stat {
94
+ background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
95
+ padding: 10px 16px; min-width: 150px; flex: 1;
96
+ }
97
+ .stat .num { font-size: 1.15rem; font-weight: 700; }
98
+ .stat .lbl { font-size: 0.78em; color: var(--muted); margin-top: 2px; }
99
+
100
+ /* --- Architecture flow --- */
101
+ .flow {
102
+ display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin: 14px 0 6px;
103
+ }
104
+ .flow-box {
105
+ background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
106
+ padding: 12px 14px; font-size: 0.85rem; text-align: center; flex: 1; min-width: 150px;
107
+ }
108
+ .flow-box .t { font-weight: 700; margin-bottom: 3px; }
109
+ .flow-box .d { color: var(--muted); font-size: 0.82em; }
110
+ .flow-arrow { color: var(--muted); font-size: 1.3rem; padding: 0 10px; flex: 0 0 auto; }
111
+ @media (max-width: 640px) {
112
+ .flow { flex-direction: column; align-items: stretch; }
113
+ .flow-arrow { text-align: center; padding: 4px 0; transform: rotate(90deg); }
114
+ }
115
+
116
+ /* --- Quickstart tabs --- */
117
+ .tabs { margin-top: 10px; }
118
+ .tab-bar { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 0; }
119
+ .tab-btn {
120
+ background: transparent; color: var(--muted); border: none; border-bottom: 2px solid transparent;
121
+ border-radius: 0; padding: 9px 14px; font-size: 0.86rem; font-weight: 600; cursor: pointer;
122
+ }
123
+ .tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
124
+ .tab-btn:hover:not(.active) { color: var(--text); filter: none; }
125
+ .tab-panel { display: none; padding-top: 14px; }
126
+ .tab-panel.active { display: block; }
127
+ .tab-status { margin-bottom: 10px; }
128
+ pre.code {
129
+ background: rgba(127,127,127,0.08); border: 1px solid var(--border); border-radius: 8px;
130
+ padding: 14px; overflow-x: auto; font-size: 0.82rem; font-family: var(--mono); line-height: 1.5;
131
+ white-space: pre;
132
+ }
133
  </style>
134
  </head>
135
  <body>
136
  <div class="wrap">
137
+
138
+ <!-- ============ HERO ============ -->
139
+ <div class="hero">
140
+ <h1>TTTPS Proof-of-Time Explorer</h1>
141
+ <div class="tagline">
142
+ A <strong>Layer 7 AI control-plane primitive</strong>: cryptographic proof-of-time
143
+ receipts for LLM and agent outputs. Any framework's output gets hashed, sealed with a
144
+ signed timestamp, and independently verifiable after the fact &mdash; without ever
145
+ blocking or altering the original response.
146
+ </div>
147
+ <div class="stats-row">
148
+ <div class="stat">
149
+ <div class="num">3.7&ndash;4.2ms</div>
150
+ <div class="lbl">core PoT engine processing time (local; the public self-serve API's
151
+ round trip is network-bound, ~44&ndash;193ms observed &mdash; see Live Inspector below)</div>
152
+ </div>
153
+ <div class="stat">
154
+ <div class="num">Fail-open, always</div>
155
+ <div class="lbl">a sealing failure never blocks or mutates your LLM response &mdash;
156
+ it degrades to a status flag</div>
157
+ </div>
158
+ <div class="stat">
159
+ <div class="num">6 frameworks</div>
160
+ <div class="lbl">LangChain &middot; LiteLLM &middot; LlamaIndex &middot; smolagents &middot;
161
+ vLLM &middot; Ollama &mdash; see Quickstart tabs below</div>
162
+ </div>
163
+ </div>
164
+ </div>
165
+
166
+ <!-- ============ ARCHITECTURE ============ -->
167
+ <h2>How it fits into your stack</h2>
168
+ <div class="flow">
169
+ <div class="flow-box">
170
+ <div class="t">Your app / agent</div>
171
+ <div class="d">LangChain, LiteLLM, LlamaIndex, smolagents, vLLM, or Ollama</div>
172
+ </div>
173
+ <div class="flow-arrow">&rarr;</div>
174
+ <div class="flow-box">
175
+ <div class="t">OpenTTT integration</div>
176
+ <div class="d">sha256(output) computed locally, sent async, fail-open</div>
177
+ </div>
178
+ <div class="flow-arrow">&rarr;</div>
179
+ <div class="flow-box">
180
+ <div class="t">KPP Provenance API</div>
181
+ <div class="d"><code>kpp.kenosian.com</code> &mdash; signs + timestamps the hash</div>
182
+ </div>
183
+ <div class="flow-arrow">&rarr;</div>
184
+ <div class="flow-box">
185
+ <div class="t">Verifiable receipt</div>
186
+ <div class="d"><code>receipt_id</code> + signature, independently re-checkable anytime</div>
187
+ </div>
188
+ </div>
189
+ <div class="note" style="margin-bottom:28px;">
190
+ Your original LLM/agent response is never touched or delayed &mdash; only its hash leaves
191
+ your process, asynchronously, and only a receipt comes back.
192
+ </div>
193
+
194
+ <hr>
195
+
196
+ <!-- ============ QUICKSTART ============ -->
197
+ <h2>Quickstart &mdash; pick your framework</h2>
198
+ <div class="note" style="margin-top:-6px; margin-bottom:2px;">
199
+ Every integration attaches a cryptographic audit-trail timestamp. None of them certify
200
+ legal or regulatory compliance (EU AI Act, FDA, etc.) on their own.
201
+ </div>
202
+ <div class="tabs">
203
+ <div class="tab-bar" id="tabBar">
204
+ <button class="tab-btn active" data-tab="langchain">LangChain</button>
205
+ <button class="tab-btn" data-tab="litellm">LiteLLM</button>
206
+ <button class="tab-btn" data-tab="llamaindex">LlamaIndex</button>
207
+ <button class="tab-btn" data-tab="smolagents">smolagents</button>
208
+ <button class="tab-btn" data-tab="vllm">vLLM</button>
209
+ <button class="tab-btn" data-tab="ollama">Ollama</button>
210
+ </div>
211
+
212
+ <div class="tab-panel active" id="tab-langchain">
213
+ <div class="tab-status">
214
+ <span class="badge blue">PyPI: v0.2.0 published</span>
215
+ <span class="badge yellow">public-endpoint class: locally verified, not yet released</span>
216
+ </div>
217
+ <div class="note" style="margin-top:0;">
218
+ <code>pip install langchain-openttt</code> installs the published v0.2.0 package today,
219
+ which ships <code>TTTPSTimestampCallbackHandler</code> for our internal PoT server. The
220
+ public-API class shown below, <code>TTTPSTimestampCallbackHandlerKPPLive</code>, is
221
+ code-complete and verified in an isolated venv this session, but has not been published
222
+ to PyPI yet &mdash; treat the snippet as a preview of the next release.
223
+ </div>
224
+ <pre class="code">pip install langchain-openttt # v0.2.0 today; KPPLive class ships in an upcoming v0.3.0
225
+
226
+ import os
227
+ os.environ["KPP_API_KEY"] = "kpp_prov_..." # mint free: POST https://kpp.kenosian.com/v1/keys
228
+
229
+ from langchain_openttt import TTTPSTimestampCallbackHandlerKPPLive
230
+
231
+ resp = llm.invoke("hi", config={"callbacks": [TTTPSTimestampCallbackHandlerKPPLive()]})
232
+ # resp.generation_info["tttps_receipt"]
233
+ # -> {"status": "ok", "receipt_id": "...", "receipt": "...", "time": "...", ...}</pre>
234
+ </div>
235
+
236
+ <div class="tab-panel" id="tab-litellm">
237
+ <div class="tab-status">
238
+ <span class="badge yellow">locally built + verified (wheel ready) &mdash; PyPI upload pending</span>
239
+ </div>
240
+ <pre class="code">pip install litellm-openttt # package built + verified locally, not yet on PyPI
241
+
242
+ import litellm
243
+ from litellm_openttt import TTTPSTimestampLoggerKPPLive
244
+
245
+ litellm.callbacks = [TTTPSTimestampLoggerKPPLive()]
246
+
247
+ resp = litellm.completion(
248
+ model="gpt-3.5-turbo",
249
+ messages=[{"role": "user", "content": "hi"}],
250
+ )
251
+ print(resp.tttps_receipt)
252
+ # {"status": "ok", "receipt_id": "...", "receipt": "...", "time": "...", ...}</pre>
253
+ </div>
254
+
255
+ <div class="tab-panel" id="tab-llamaindex">
256
+ <div class="tab-status">
257
+ <span class="badge yellow">locally built + verified (wheel ready) &mdash; PyPI upload pending</span>
258
+ </div>
259
+ <pre class="code">pip install llamaindex-openttt # package built + verified locally, not yet on PyPI
260
+
261
+ from llama_index.core import Settings
262
+ from llama_index.core.callbacks import CallbackManager
263
+ from llamaindex_openttt import TTTPSTimestampCallbackHandlerKPPLive
264
+
265
+ Settings.callback_manager = CallbackManager([TTTPSTimestampCallbackHandlerKPPLive()])
266
+
267
+ resp = llm.complete("hi")
268
+ print(resp.additional_kwargs["tttps_receipt"])
269
+ # {"status": "ok", "receipt_id": "...", "receipt": "...", "time": "...", ...}</pre>
270
+ </div>
271
+
272
+ <div class="tab-panel" id="tab-smolagents">
273
+ <div class="tab-status">
274
+ <span class="badge yellow">locally built + verified (wheel ready) &mdash; PyPI upload pending</span>
275
+ </div>
276
+ <pre class="code">pip install smolagents-openttt # package built + verified locally, not yet on PyPI
277
+
278
+ from smolagents import CodeAgent
279
+ from smolagents_openttt import ttts_pot_step_callback_kpp_live
280
+
281
+ agent = CodeAgent(
282
+ tools=[],
283
+ model=your_model,
284
+ step_callbacks=[ttts_pot_step_callback_kpp_live],
285
+ )
286
+ result = agent.run("your task")
287
+
288
+ for step in agent.memory.steps:
289
+ print(getattr(step, "tttps_receipt", None))
290
+ # {"status": "ok", "receipt_id": "...", "receipt": "...", "time": "...", ...}</pre>
291
+ </div>
292
+
293
+ <div class="tab-panel" id="tab-vllm">
294
+ <div class="tab-status">
295
+ <span class="badge gray">prototype &mdash; internal PoT server only, not yet packaged</span>
296
+ </div>
297
+ <div class="note" style="margin-top:0;">
298
+ Registers via vLLM's official <code>--middleware</code> flag (confirmed live against
299
+ vLLM's own <code>build_app()</code>). This prototype currently anchors against our
300
+ internal-only PoT server, not the public <code>kpp.kenosian.com</code> API used by the
301
+ other integrations &mdash; swapping it over is a tracked follow-up.
302
+ </div>
303
+ <pre class="code"># vllm_tttps_middleware.py must be importable (e.g. on PYTHONPATH)
304
+ vllm serve facebook/opt-125m \
305
+ --middleware vllm_tttps_middleware.TTTPSMiddleware
306
+
307
+ # curl http://localhost:8000/v1/completions ...
308
+ # -> response header: X-TTTPS-Receipt: {"status": "ok", "pot_chain_digest": "...", ...}</pre>
309
+ </div>
310
+
311
+ <div class="tab-panel" id="tab-ollama">
312
+ <div class="tab-status">
313
+ <span class="badge gray">prototype &mdash; reverse proxy, not yet packaged</span>
314
+ </div>
315
+ <div class="note" style="margin-top:0;">
316
+ Ollama has no plugin/middleware extension point (confirmed by reading
317
+ <code>server/routes.go</code>), so this is a small reverse proxy in front of it. It
318
+ already targets the public <code>kpp.kenosian.com</code> API. Both non-streaming and
319
+ streaming (NDJSON) responses are supported &mdash; streaming gets a receipt attached to
320
+ its final <code>done:true</code> line only, with zero added per-token latency.
321
+ </div>
322
+ <pre class="code">KPP_API_KEY=kpp_prov_... python ollama_proxy.py --port 11435
323
+ # point your Ollama client at localhost:11435 instead of 11434
324
+
325
+ curl localhost:11435/api/generate -d '{"model":"qwen2.5:0.5b","prompt":"hi","stream":false}'
326
+ # -> ollama's normal JSON, plus a "tttps_receipt" field and
327
+ # X-TTTPS-Receipt / X-TTTPS-Status response headers</pre>
328
+ </div>
329
+ </div>
330
+
331
+ <hr>
332
+
333
+ <!-- ============ LIVE INSPECTOR (existing, untouched logic) ============ -->
334
+ <h2>Live Inspector &mdash; try it yourself, right now</h2>
335
  <div class="sub">Live demo of a proposal specification, not a ratified standard.</div>
336
 
337
  <div class="intro">
338
+ This section calls the real, public <code>/v1/anchor</code> and <code>/v1/verify</code>
 
 
339
  endpoints directly from your browser &mdash; nothing here is simulated, and there is no
340
+ backend server for this demo other than your own browser and the API itself, served from
341
+ <a href="https://kpp.kenosian.com" target="_blank" rel="noopener">kpp.kenosian.com</a>.
342
  <br><br>
343
  <strong>What a receipt is, and is not:</strong> a receipt cryptographically attests
344
  <em>when</em> a content hash was sealed, its <em>order</em> relative to other seals, and
 
375
  Backend: <code>https://kpp.kenosian.com</code> &middot; API spec: proposal, not a ratified standard &middot;
376
  Source endpoints: <code>POST /v1/keys</code>, <code>POST /v1/anchor</code>, <code>POST /v1/verify</code>
377
  &middot; This is a static page; your browser talks to the API directly (CORS-enabled).
378
+ <div class="badges">
379
+ <a href="https://pypi.org/project/langchain-openttt/" target="_blank" rel="noopener"><span class="badge blue">PyPI: langchain-openttt</span></a>
380
+ <a href="https://datatracker.ietf.org/doc/draft-helmprotocol-tttps/" target="_blank" rel="noopener"><span class="badge gray">IETF Internet-Draft: draft-helmprotocol-tttps (proposal, not ratified)</span></a>
381
+ <a href="https://github.com/Helm-Protocol/OpenTTT" target="_blank" rel="noopener"><span class="badge gray">GitHub: Helm-Protocol/OpenTTT</span></a>
382
+ </div>
383
  </footer>
384
  </div>
385
 
 
547
  verifyBtn.disabled = false;
548
  }
549
  });
550
+
551
+ // --- Quickstart tabs (new, additive; does not touch anything above) ---
552
+ (function () {
553
+ const bar = document.getElementById("tabBar");
554
+ if (!bar) return;
555
+ bar.addEventListener("click", (e) => {
556
+ const btn = e.target.closest(".tab-btn");
557
+ if (!btn) return;
558
+ document.querySelectorAll(".tab-btn").forEach(b => b.classList.remove("active"));
559
+ document.querySelectorAll(".tab-panel").forEach(p => p.classList.remove("active"));
560
+ btn.classList.add("active");
561
+ const panel = document.getElementById("tab-" + btn.dataset.tab);
562
+ if (panel) panel.classList.add("active");
563
+ });
564
+ })();
565
  </script>
566
  </body>
567
  </html>