oculon 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/dist/cli/main.js +1 -1
- package/dist/mcp.js +1 -1
- package/dist/web/assets/fx.js +27 -0
- package/dist/web/docs.html +20 -7
- package/dist/web/index.html +11 -8
- package/dist/web/landing.html +2 -2
- package/dist/web/legal.html +2 -2
- package/dist/web/mcp.html +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,19 +35,19 @@ npx oculon ask "why is Nvidia in the news this week?"
|
|
|
35
35
|
|
|
36
36
|
| Module | Command | What it does | Sources |
|
|
37
37
|
|---|---|---|---|
|
|
38
|
-
| Scam check | `oculon scam "<message>"` · Telegram: forward the message | Is this SMS, email or chat message a scam? Every link goes through the URL check, the sender is compared with any brand it names, and known scam patterns are matched in code (parcel fees, account locked, one-time codes, gift cards and crypto, "hi mum" new number asking for money, prizes, job and investment promises); a verdict, a 0-100 risk, the reasons and what to do |
|
|
38
|
+
| Scam check | `oculon scam "<message>"` · Telegram: forward the message | Is this SMS, email or chat message a scam? Every link goes through the URL check, the sender is compared with any brand it names, and known scam patterns are matched in code (parcel fees, account locked, one-time codes, gift cards and crypto, "hi mum" new number asking for money, prizes, job and investment promises); a verdict, a 0-100 risk, the reasons and what to do | Google Safe Browsing, URLhaus, urlscan.io, RDAP, Groq, Gemini, Mistral |
|
|
39
39
|
| URL check | `oculon url <link>` | Is a link dangerous? A verdict (malicious, suspicious, no known threats), a 0-100 risk and the reasons: Safe Browsing and URLhaus matches, community tags on urlscan.io scans, domain age and registrar, and warning signs in the URL itself (a brand name on someone else's domain, punycode look-alikes, risky top-level domains, `@` tricks). Big platforms are not blamed for files their users upload | Google Safe Browsing, URLhaus (abuse.ch), urlscan.io, RDAP |
|
|
40
|
-
| Fact check | `oculon factcheck "<claim>"` or a news URL | Published fact checks about the claim (Snopes, AFP, PolitiFact, Full Fact and others) plus current reporting; an LLM weighs only that evidence and cites it by number, giving true, mostly true, mixed, misleading, false or unverified with a confidence. Without an LLM the published ratings decide | Google Fact Check Tools, Tavily
|
|
40
|
+
| Fact check | `oculon factcheck "<claim>"` or a news URL | Published fact checks about the claim (Snopes, AFP, PolitiFact, Full Fact and others) plus current reporting; an LLM weighs only that evidence and cites it by number, giving true, mostly true, mixed, misleading, false or unverified with a confidence. Without an LLM the published ratings decide | Google Fact Check Tools, Tavily, Exa, Jina Reader, Groq, Gemini, Mistral |
|
|
41
41
|
| Audit | `oculon audit [package.json\|requirements.txt\|npm:name@ver ...]` | Dependency health for npm and PyPI: known vulnerabilities with CVSS, deprecation, years since the last release, major versions behind, OpenSSF Scorecard and its "Maintained" check, license; a 0-100 risk per package (dev dependencies weigh less) | deps.dev (Google Open Source Insights), OpenSSF Scorecard, OSV |
|
|
42
42
|
| Travel | `oculon travel <place>` | What a visitor should know for the coming week: US State Department level and UK FCDO advice, 7-day weather warnings (storms, heavy rain, strong gusts, heat, cold, UV), PM2.5, WHO disease outbreak news, orange and red disaster alerts, nearby strong earthquakes, satellite heat detections and confirmed internet outages; a level from low to severe | US State Department, UK FCDO, Open-Meteo, OpenAQ, WHO, GDACS, USGS, NASA FIRMS, Cloudflare Radar |
|
|
43
43
|
| Recall | `oculon recall <VIN\|"2018 Honda Accord"\|product>` | Is this car or product recalled? A VIN is decoded to make, model and year; vehicles get NHTSA safety recalls with do-not-drive and park-outside warnings; products get US consumer recalls and FDA food, drug and device enforcement reports from the last few years | NHTSA (vPIC and recalls), CPSC SaferProducts, openFDA |
|
|
44
44
|
| Email security | `oculon email <domain>` | Can someone send mail that looks like it comes from a domain? SPF (qualifier, DNS lookup count), DMARC (policy, coverage, reporting), DKIM on common selectors, MTA-STS, TLS reporting, BIMI, CAA and DNSSEC, a 0-100 score, a verdict (spoofable, partly protected, protected) and the fixes in order | Google Public DNS (DNS over HTTPS) |
|
|
45
|
-
| Papers | `oculon papers "<topic>"` | Research brief: the most cited papers of recent years among the most relevant, the newest relevant ones, papers per year (growing, steady or shrinking), PubMed counts for medical topics, and a short overview that cites the numbered papers | OpenAlex, PubMed, Semantic Scholar
|
|
45
|
+
| Papers | `oculon papers "<topic>"` | Research brief: the most cited papers of recent years among the most relevant, the newest relevant ones, papers per year (growing, steady or shrinking), PubMed counts for medical topics, and a short overview that cites the numbered papers | OpenAlex, PubMed, Semantic Scholar, Groq, Gemini, Mistral |
|
|
46
46
|
| Country | `oculon country <name>` | One-page country brief: GDP, growth, GDP per person, inflation, unemployment and population, the IMF outlook for this year and next, head of state and government, capital, currency and its rate to the dollar, US and UK travel advice, internet outages, disaster alerts and the latest headlines | World Bank, IMF, Wikidata, open.er-api.com, US State Department, UK FCDO, Cloudflare Radar, GDACS, Guardian |
|
|
47
47
|
| Airport | `oculon airport <JFK\|EGLL\|name>` | Is an airport running normally? Current METAR and TAF (flight category, wind, visibility, ceiling), FAA ground stops, ground delay programs, delays and closures at US airports, and aircraft squawking an emergency within 150 km | aviationweather.gov (NOAA), FAA NAS status, adsb.lol, OurAirports |
|
|
48
48
|
| Share | web app · `/r/<id>` | Any everyday check can be shared as a link: the server runs the check, keeps a snapshot and serves it as a page with a preview card for X, Telegram, WhatsApp and Slack | Oculon |
|
|
49
49
|
| Personal monitors | web app · Telegram `/monitor` | Each visitor (a random id in a cookie, no account) or Telegram chat keeps up to 10 monitors of its own, written in plain language and re-checked about hourly; changes are kept as alerts and sent by email (after a confirmation link, with one-click unsubscribe) or to the Telegram chat | Resend (email), Meerkat |
|
|
50
|
-
| Monitor | `oculon monitor "<request>"` | Watch anything in plain language: "internet outages in Iran", "critical CVEs for nginx", "earthquakes above 6 near Tokyo", "news about OpenAI", "travel risk changes for Bangkok", "flood or cyclone alerts for the Philippines". The request becomes a watchlist rule; only changes are reported, with evidence, in the app, Telegram and the signal feed |
|
|
50
|
+
| Monitor | `oculon monitor "<request>"` | Watch anything in plain language: "internet outages in Iran", "critical CVEs for nginx", "earthquakes above 6 near Tokyo", "news about OpenAI", "travel risk changes for Bangkok", "flood or cyclone alerts for the Philippines". The request becomes a watchlist rule; only changes are reported, with evidence, in the app, Telegram and the signal feed | Groq, Gemini, Mistral (with a pattern fallback), Meerkat |
|
|
51
51
|
| Live | `oculon live` / `serve --live` | Listens to two real-time streams: English Wikipedia articles suddenly edited by several people (6+ human edits by 3+ editors in 15 minutes), and names or hashtags surging in English Bluesky posts against their own last hour (watched companies and topics get a lower bar) | Wikimedia EventStreams, Bluesky Jetstream |
|
|
52
52
|
| Calendar | `oculon calendar [days]` | Catalysts ahead: earnings (watched companies first, then the largest by revenue estimate), IPOs, key US macro releases (CPI, jobs, GDP, PCE, JOLTS...), rules taking effect and comment periods closing at market-moving agencies, and high-volume prediction markets that close; also added to the daily brief | Finnhub, FRED, Federal Register, Polymarket |
|
|
53
53
|
| Connect | `oculon connect <A> to <B>` / `resolve` | Entity resolution merges duplicates across kinds (`org:nvidia` = `company:nvidia` = `nvidia.com`), then finds the shortest chain of typed links between two things in the graph | Oculon graph |
|
|
@@ -67,20 +67,20 @@ npx oculon ask "why is Nvidia in the news this week?"
|
|
|
67
67
|
| Social pulse | `oculon social <subject>` | Recent posts about a subject on X, Reddit, TikTok and Bluesky: count per platform, the most engaged and the newest posts with links, and Reddit's pace over the last six hours versus the day before; a sharp acceleration is a signal | Apify (X, Reddit, TikTok; pay per result), Bluesky |
|
|
68
68
|
| Feedback | Telegram buttons / `oculon feedback` | Every alert has Useful and Noise buttons; votes move that module's alert bar (from the third vote, capped at -10/+20 points) | your votes |
|
|
69
69
|
| Sanctions | `oculon sanctions <IMO\|name>` | Screens against the US OFAC SDN list and, for names, sanctions, PEP and wanted lists worldwide (OpenSanctions, free non-commercial key): vessel IMO numbers, exact names and aliases; for a confident name match, its owners, subsidiaries, directors and associates, sanctioned ones first. Runs automatically on every vessel seen over AIS | OFAC SDN, OpenSanctions |
|
|
70
|
-
| Narratives | `oculon narratives [run]` | Groups headlines into storylines that persist across days and flags new or fast-growing ones | Guardian, NYT, Hacker News, Oculon signals,
|
|
70
|
+
| Narratives | `oculon narratives [run]` | Groups headlines into storylines that persist across days and flags new or fast-growing ones | Guardian, NYT, Hacker News, Oculon signals, Groq, Gemini, Mistral |
|
|
71
71
|
| Calibration | `oculon calibrate` | Replays past days with the Time Machine, checks which radar items became news within three days, picks the signal threshold with the best F1 and per-source weights; the live radar uses them | Time Machine, Guardian |
|
|
72
72
|
| Company health | `oculon health <company>` | 0-100 early-warning score from hiring momentum, new lawsuits, insider selling, news tone, shipping and the stock move, each part explained; a sharp drop is a signal | Hound sources |
|
|
73
73
|
| Disaster impact | `oculon impact [place]` | People living within the affected radius of M6+ quakes and severe storms, plus night-light change once data covers the days after | USGS, NASA EONET, Wikidata, NASA VIIRS |
|
|
74
|
-
| Contradictions | `oculon contradictions <topic>` | Reads several outlets and lists factual claims that conflict, each side with its source | Tavily, GNews, Guardian, Jina,
|
|
74
|
+
| Contradictions | `oculon contradictions <topic>` | Reads several outlets and lists factual claims that conflict, each side with its source | Tavily, GNews, Guardian, Jina, Groq, Gemini, Mistral |
|
|
75
75
|
| Report | `oculon report` | A self-contained weekly HTML report; sent to Telegram on Mondays | everything above |
|
|
76
76
|
| Plugins | `oculon plugin list/run` | Local `.mjs` plugins add tools to the CLI and MCP server (see `examples/plugins/show-hn.mjs`) | your code |
|
|
77
|
-
| Case Files | `oculon case new "<question>"` | Deep investigations: an agent runs up to 10 tool steps, cross-checks sources and looks for contrary evidence, then writes a case file (answer, findings with confidence, timeline, entities, open questions). Citations are verified in code against what the tools returned; a finding needs two independent sources for "high". Watched cases are re-investigated daily and only new findings are reported | every tool below,
|
|
77
|
+
| Case Files | `oculon case new "<question>"` | Deep investigations: an agent runs up to 10 tool steps, cross-checks sources and looks for contrary evidence, then writes a case file (answer, findings with confidence, timeline, entities, open questions). Citations are verified in code against what the tools returned; a finding needs two independent sources for "high". Watched cases are re-investigated daily and only new findings are reported | every tool below, Groq, Gemini, Mistral |
|
|
78
78
|
| First to Know | `oculon scoops` | For each strong signal, finds when major media first covered the subject (oldest-first search from a week before) and records the lead time, positive or negative. An honest scoreboard of how often Oculon was ahead | Guardian, NYT, GNews |
|
|
79
79
|
| Lynx | `oculon markets` | Cross-checks Polymarket against Kalshi and Manifold; an LLM confirms each pair asks exactly the same question before gaps are reported | Polymarket, Kalshi, Manifold |
|
|
80
80
|
| Launch Radar | `oculon launches <company>` | New Hugging Face models/datasets/Spaces, new iOS apps and updates, new npm packages, plus (with a domain) new hostnames, pages and repos | Hugging Face, App Store, npm, Ferret sources |
|
|
81
81
|
| Time Machine | `oculon rewind <date>` | What Oculon would have seen on a past date: Wikipedia spikes against the weeks before, top Hacker News stories, strong earthquakes and that day's Guardian headlines, fused | Wikimedia, HN, USGS, Guardian |
|
|
82
82
|
| Geofences | `oculon fence add <name> <place>` | Boxes on the map, checked every scan for new military aircraft, military vessels, earthquakes and natural events; draw them on the dashboard map | adsb.lol, aisstream, USGS, NASA EONET |
|
|
83
|
-
| Octopus | `oculon ask "<question>"` | Tool-using AI agent: picks Oculon tools, searches and reads the web, answers with sources. Read-only. | Claude (optional, pay per use: Opus 5.5, Fable 5.2 for case files), then Groq, Gemini, Mistral, NVIDIA NIM, OpenRouter (
|
|
83
|
+
| Octopus | `oculon ask "<question>"` | Tool-using AI agent: picks Oculon tools, searches and reads the web, answers with sources. Read-only. | Claude (optional, pay per use: Opus 5.5, Fable 5.2 for case files), then Groq, Gemini, Mistral, NVIDIA NIM, OpenRouter (automatic fallback) |
|
|
84
84
|
| Owl | `oculon radar` | Global anomaly radar: Wikipedia readership spikes, Hacker News traction, prediction-market swings, trending coins, NYT top stories, earthquakes, natural events and space weather, fused across sources | Wikimedia, HN, Polymarket, CoinGecko, NYT, USGS, NASA EONET, NOAA SWPC |
|
|
85
85
|
| Hound | `oculon dossier <name> [--deep]` | Dossier on a company, person or project: profile and readership spike, stock quote, insider trades and insider sentiment, analyst ratings and their shift, peers, key financials, earnings surprises, decoded 8-K events, news from five outlets, web results, federal court dockets, job openings, UK registry, brand, prediction markets, repos, YouTube, Bluesky; FDA recalls and clinical trials for health and food companies; with `--deep` lobbying, federal contracts, visa filings and patents; one merged timeline | Wikipedia, Finnhub, SEC EDGAR, openFDA, ClinicalTrials.gov, GDELT, GNews, Guardian, NYT, Tavily, CourtListener, Adzuna, Companies House, Brandfetch, Polymarket, GitHub, YouTube, Bluesky |
|
|
86
86
|
| Cricket | `oculon hype <topic>` | Hype-cycle phase (DORMANT, EMERGING, RISING, PEAK, COOLING, STEADY) from 8 weeks of readers, developers, news, press, research, scholarly output and builders | Wikimedia, HN, GDELT, Guardian, arXiv, OpenAlex, GitHub |
|
|
@@ -96,10 +96,14 @@ npx oculon ask "why is Nvidia in the news this week?"
|
|
|
96
96
|
Requires Node.js 22.13 or newer (it uses the built-in `node:sqlite`).
|
|
97
97
|
|
|
98
98
|
```sh
|
|
99
|
-
npm install -g oculon
|
|
100
|
-
oculon
|
|
99
|
+
npm install -g oculon # install the oculon command
|
|
100
|
+
oculon tour # what you can try right away
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
+
Or try it without installing: put `npx` in front of any command, for example `npx oculon scam "Your package is on hold, pay the customs fee"`.
|
|
104
|
+
|
|
105
|
+
`oculon doctor` checks your setup afterwards: the Node.js version, the data folder and which optional API keys are set. Keys are read from the environment or from a `.env` file in the folder you run `oculon` in.
|
|
106
|
+
|
|
103
107
|
Data is stored in `~/.oculon` (set `OCULON_HOME` to change it).
|
|
104
108
|
|
|
105
109
|
## CLI
|
|
@@ -124,7 +128,7 @@ oculon ships "Port of Rotterdam" # live vessels (AIS)
|
|
|
124
128
|
oculon watch add company Nvidia # watchlist: company domain plane topic lights air port
|
|
125
129
|
oculon watch run # report only what changed since last time
|
|
126
130
|
oculon brief # today's brief
|
|
127
|
-
oculon quota # today's API usage vs
|
|
131
|
+
oculon quota # today's API usage vs daily budgets
|
|
128
132
|
oculon ask "is there a geomagnetic storm right now?"
|
|
129
133
|
oculon radar # what the world is suddenly watching
|
|
130
134
|
oculon dossier Nvidia # company / person dossier
|
|
@@ -235,10 +239,6 @@ Press Ctrl+K anywhere to search entities or run a module (CVE ids, AS numbers, d
|
|
|
235
239
|
|
|
236
240
|
Free-tier quotas are protected by daily per-source budgets (`oculon quota`); when one is spent, Oculon serves the last cached result or labels the source unavailable instead of calling it.
|
|
237
241
|
|
|
238
|
-
## Splice skill
|
|
239
|
-
|
|
240
|
-
`integrations/splice/oculon` packages keyless tools (radar, space weather, military air, new subdomains) as a Splice skill: `manifest.json`, `SKILL.md`, `tools/`, `tests/`, `examples/`, with network access limited to the seven hosts it uses.
|
|
241
|
-
|
|
242
242
|
## Telegram bot
|
|
243
243
|
|
|
244
244
|
Create a bot with @BotFather, then set:
|
|
@@ -262,7 +262,7 @@ All optional, read from the environment or a `.env` file in the working director
|
|
|
262
262
|
| `OCULON_DB` | Database path override |
|
|
263
263
|
| `OCULON_CONTACT` | Contact email, sent only to SEC EDGAR (which requires one); no other API receives it |
|
|
264
264
|
| `GITHUB_TOKEN` | Raises GitHub limits from 60 to 5000 requests/hour |
|
|
265
|
-
| LLM, search, news, markets, company, security, social and air keys | See `.env.example`; each is optional
|
|
265
|
+
| LLM, search, news, markets, company, security, social and air keys | See `.env.example`; each is optional. `oculon doctor` shows which groups are on |
|
|
266
266
|
|
|
267
267
|
API keys never appear in output: provenance URLs, errors and agent tool results are scrubbed of every key in the environment.
|
|
268
268
|
|
|
@@ -299,7 +299,7 @@ The repository includes a `Dockerfile` and `railway.json`. Mount a persistent vo
|
|
|
299
299
|
|
|
300
300
|
## Limits
|
|
301
301
|
|
|
302
|
-
-
|
|
302
|
+
- Public APIs rate-limit; GDELT and arXiv in particular answer 429 after heavy use. Affected sources are reported as errors and the rest of the result still returns.
|
|
303
303
|
- The Wayback Machine CDX API is often slow; Ferret caps it at 45 s.
|
|
304
304
|
- crt.sh can lag behind the CT logs by weeks.
|
|
305
305
|
- OpenTimestamps proofs stay PENDING until a calendar commits to Bitcoin, usually a few hours.
|
|
@@ -323,7 +323,7 @@ The repository includes a `Dockerfile` and `railway.json`. Mount a persistent vo
|
|
|
323
323
|
- Exposure uses InternetDB, which reflects Shodan's last scan (days to weeks old) and knows nothing about machines behind a CDN.
|
|
324
324
|
- Social pulse samples are small (X returns about 10 posts per search on Apify's free plan) and X, TikTok and Bluesky are fetched by popularity, so pace is measured on Reddit only. Address labels come from a community dataset (MIT) and can be incomplete or stale.
|
|
325
325
|
- Plugins run with full Node permissions; install only code you trust.
|
|
326
|
-
- `oculon ask` answers are written by
|
|
326
|
+
- `oculon ask` answers are written by an LLM from tool results; they can still misread data, so check the cited sources.
|
|
327
327
|
- Respect each data provider's terms. OpenStreetMap, Nominatim and adsb.lol data are ODbL-licensed and require attribution.
|
|
328
328
|
|
|
329
329
|
## Development
|
package/dist/cli/main.js
CHANGED
|
@@ -161,7 +161,7 @@ ${c.bold('Live')}
|
|
|
161
161
|
${c.bold('Graph')}
|
|
162
162
|
oculon connect <A> to <B> how two things are linked (shortest path)
|
|
163
163
|
oculon resolve merge duplicates: org:nvidia = company:nvidia = nvidia.com
|
|
164
|
-
oculon quota today's API usage vs
|
|
164
|
+
oculon quota today's API usage vs daily budgets
|
|
165
165
|
|
|
166
166
|
${c.bold('Radar')}
|
|
167
167
|
oculon radar what the world is suddenly paying attention to
|
package/dist/mcp.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createInterface } from 'node:readline';
|
|
|
7
7
|
import { Oculon, summarizeProvenance } from './index.js';
|
|
8
8
|
import { ONCHAIN_TOOLS, onchainEnabled } from './core/features.js';
|
|
9
9
|
import { availableKinds } from './modules/monitor.js';
|
|
10
|
-
export const SERVER_INFO = { name: 'oculon', version: '0.1.
|
|
10
|
+
export const SERVER_INFO = { name: 'oculon', version: '0.1.2' };
|
|
11
11
|
const SUPPORTED = ['2025-06-18', '2025-03-26', '2024-11-05'];
|
|
12
12
|
const str = (d) => ({ type: 'string', description: d });
|
|
13
13
|
const num = (d) => ({ type: 'number', description: d });
|
package/dist/web/assets/fx.js
CHANGED
|
@@ -176,3 +176,30 @@ void main(){
|
|
|
176
176
|
|
|
177
177
|
window.OculonFX = { liquid, stream, reduce: REDUCE };
|
|
178
178
|
})();
|
|
179
|
+
|
|
180
|
+
/*
|
|
181
|
+
* Clean addresses: links to a part of the same page scroll there without adding "#section" to the
|
|
182
|
+
* address bar, and a "#section" that arrives from another page is removed once the page has used it.
|
|
183
|
+
* A page with its own views (the app) sets window.onOculonHash(name) to handle names that are not elements.
|
|
184
|
+
*/
|
|
185
|
+
(function () {
|
|
186
|
+
if (window.__oculonCleanUrl) return;
|
|
187
|
+
window.__oculonCleanUrl = true;
|
|
188
|
+
window.oculonInitialHash = decodeURIComponent(location.hash.slice(1));
|
|
189
|
+
document.addEventListener('click', (e) => {
|
|
190
|
+
if (e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
|
191
|
+
const a = e.target.closest && e.target.closest('a[href]');
|
|
192
|
+
if (!a || (a.target && a.target !== '_self') || a.hasAttribute('download')) return;
|
|
193
|
+
const raw = a.getAttribute('href');
|
|
194
|
+
if (raw === '#') { e.preventDefault(); return; }
|
|
195
|
+
const u = new URL(a.href, location.href);
|
|
196
|
+
if (!u.hash || u.origin !== location.origin || u.pathname !== location.pathname || u.search !== location.search) return;
|
|
197
|
+
const name = decodeURIComponent(u.hash.slice(1));
|
|
198
|
+
const el = document.getElementById(name);
|
|
199
|
+
if (el) { e.preventDefault(); el.scrollIntoView({ behavior: 'smooth', block: 'start' }); return; }
|
|
200
|
+
if (typeof window.onOculonHash === 'function') { e.preventDefault(); window.onOculonHash(name); }
|
|
201
|
+
});
|
|
202
|
+
const clear = () => { if (location.hash) history.replaceState(history.state, '', location.pathname + location.search); };
|
|
203
|
+
window.oculonClearHash = clear;
|
|
204
|
+
addEventListener('load', () => setTimeout(clear, 2500));
|
|
205
|
+
})();
|
package/dist/web/docs.html
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
|
|
18
18
|
a{color:inherit}
|
|
19
19
|
.lbl{font:12px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--mut)}
|
|
20
|
-
header{position:sticky;top:0;z-index:5;background
|
|
20
|
+
header{position:sticky;top:0;z-index:5;background:#000;border-bottom:1px solid var(--line)}
|
|
21
21
|
header .in{display:flex;align-items:center;justify-content:space-between;padding:18px clamp(20px,3vw,40px);gap:20px}
|
|
22
22
|
.logo{font-size:17px;font-weight:600;letter-spacing:.4em;text-decoration:none}
|
|
23
23
|
.logo span{color:var(--mut);letter-spacing:.2em;font-weight:400;margin-left:10px}
|
|
@@ -34,7 +34,7 @@ main{padding:64px clamp(20px,5vw,72px) 120px;max-width:1020px}
|
|
|
34
34
|
main h1{margin:14px 0 18px;font-size:clamp(44px,5vw,64px);font-weight:300;letter-spacing:-.04em;line-height:1}
|
|
35
35
|
main h2{margin:72px 0 16px;font-size:36px;font-weight:300;letter-spacing:-.03em;padding-top:28px;border-top:1px solid var(--line)}
|
|
36
36
|
main h3{margin:36px 0 10px;font-size:22px;font-weight:400}
|
|
37
|
-
main p,main li{font-size:17px;line-height:1.7;color:var(--soft);font-weight:300}
|
|
37
|
+
main p,main li{font-size:17px;line-height:1.7;color:var(--soft);font-weight:300;overflow-wrap:anywhere}
|
|
38
38
|
main ul{padding-left:20px}
|
|
39
39
|
main strong{color:#fff;font-weight:500}
|
|
40
40
|
main a{color:#fff;text-decoration-color:var(--y);text-underline-offset:3px}
|
|
@@ -54,7 +54,7 @@ td:first-child{color:#fff;white-space:nowrap}
|
|
|
54
54
|
/* motion, shared with the landing page */
|
|
55
55
|
#liquidbg{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.34}
|
|
56
56
|
header,.layout{position:relative;z-index:1}
|
|
57
|
-
header{position:sticky}
|
|
57
|
+
header{position:sticky;z-index:5}
|
|
58
58
|
header::after{content:'';position:absolute;left:-30%;bottom:-1px;width:30%;height:1px;background:linear-gradient(90deg,transparent,var(--y),transparent);animation:hscan 6s linear infinite}
|
|
59
59
|
@keyframes hscan{to{left:100%}}
|
|
60
60
|
.logo{background:linear-gradient(90deg,#fff 40%,var(--y) 50%,#fff 60%);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shim 7s linear infinite}
|
|
@@ -91,7 +91,7 @@ aside.left a.on{text-shadow:0 0 18px rgba(0,240,255,.6)}
|
|
|
91
91
|
.qc h3{margin:8px 0 6px;font-size:18px;font-weight:500}
|
|
92
92
|
.qc p{margin:0;font-size:14px !important;line-height:1.55 !important;color:var(--mut) !important}
|
|
93
93
|
.qc .cmd{margin-top:12px;display:flex;align-items:center;gap:10px;background:#050a0b;border:1px solid #1a2629;padding:9px 10px 9px 12px;font:12.5px var(--mono);color:#e6fbff}
|
|
94
|
-
.qc .cmd code{background:none;border:0;padding:0;font-size:12.5px;flex:1;min-width:0;
|
|
94
|
+
.qc .cmd code{background:none;border:0;padding:0;font-size:12.5px;flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}
|
|
95
95
|
.qc .cmd .p{color:var(--y)}
|
|
96
96
|
.cp{background:none;border:1px solid #2a3b3f;color:#9fd8e2;font:11px var(--mono);padding:4px 9px;cursor:pointer;flex:none;transition:all .2s}
|
|
97
97
|
.cp:hover{border-color:var(--y);color:#fff}.cp.ok{border-color:#3fd16b;color:#3fd16b}
|
|
@@ -138,7 +138,7 @@ aside.left a.on{text-shadow:0 0 18px rgba(0,240,255,.6)}
|
|
|
138
138
|
<div class="dstats"><div><span>Version</span><b id="ds-ver">—</b></div><div><span>Modules</span><b id="ds-mod">—</b></div><div><span>MCP tools</span><b id="ds-mcp">—</b></div><div><span>Public sources</span><b id="ds-src">—</b></div></div>
|
|
139
139
|
<div class="dsec"><h2 id="start-here">Start here</h2><p class="sub">Four commands, in the order most people run them.</p>
|
|
140
140
|
<div class="qs">
|
|
141
|
-
<div class="qc"><div class="n">01</div><h3>Install</h3><p>Needs Node.js 22.13 or newer. No runtime dependencies
|
|
141
|
+
<div class="qc"><div class="n">01</div><h3>Install</h3><p>Needs Node.js 22.13 or newer (<a href="https://nodejs.org" target="_blank" rel="noopener">nodejs.org</a>). No runtime dependencies. To try it without installing, put <code>npx</code> in front of any command, e.g. <code>npx oculon tour</code>.</p><div class="cmd"><span class="p">$</span><code>npm install -g oculon</code><button class="cp" type="button">copy</button></div></div>
|
|
142
142
|
<div class="qc"><div class="n">02</div><h3>Take the tour</h3><p>Shows what this install knows and what to try next.</p><div class="cmd"><span class="p">$</span><code>oculon tour</code><button class="cp" type="button">copy</button></div></div>
|
|
143
143
|
<div class="qc"><div class="n">03</div><h3>Open the web app</h3><p>Overview page, console, dashboard and these docs, with the schedule and live streams running.</p><div class="cmd"><span class="p">$</span><code>oculon serve --watch 15 --live</code><button class="cp" type="button">copy</button></div></div>
|
|
144
144
|
<div class="qc"><div class="n">04</div><h3>Connect an agent</h3><p>Add the remote MCP server to Claude Code, or run <code>oculon mcp</code> on stdio.</p><div class="cmd"><span class="p">$</span><code>claude mcp add --transport http oculon https://mcp.oculon.live</code><button class="cp" type="button">copy</button></div></div>
|
|
@@ -197,6 +197,8 @@ function md(src) {
|
|
|
197
197
|
if (/^\s*[-*]\s+/.test(l)) { const items = []; while (i < lines.length && /^\s*[-*]\s+/.test(lines[i])) { let item = lines[i++].replace(/^\s*[-*]\s+/, ''); while (i < lines.length && /^\s{2,}\S/.test(lines[i]) && !/^\s*[-*]\s+/.test(lines[i])) item += ' ' + lines[i++].trim(); items.push(item); } html += `<ul>${items.map((t) => `<li>${inline(t)}</li>`).join('')}</ul>`; continue; }
|
|
198
198
|
if (/^\s*\d+\.\s+/.test(l)) { const items = []; while (i < lines.length && /^\s*\d+\.\s+/.test(lines[i])) items.push(lines[i++].replace(/^\s*\d+\.\s+/, '')); html += `<ol>${items.map((t) => `<li>${inline(t)}</li>`).join('')}</ol>`; continue; }
|
|
199
199
|
if (!l.trim()) { i++; continue; }
|
|
200
|
+
// Badge rows ([](...)) are for GitHub; the docs page skips them.
|
|
201
|
+
if (/^\s*\[!\[/.test(l)) { i++; continue; }
|
|
200
202
|
const buf = []; while (i < lines.length && lines[i].trim() && !/^(#|```|\||\s*[-*]\s|\s*\d+\.\s)/.test(lines[i])) buf.push(lines[i++]);
|
|
201
203
|
html += `<p>${inline(buf.join(' '))}</p>`;
|
|
202
204
|
}
|
|
@@ -221,9 +223,20 @@ fetch('/api/readme').then((r) => r.json()).then((j) => {
|
|
|
221
223
|
const first = doc.querySelector('p'); if (first) first.classList.add('intro');
|
|
222
224
|
buildNav(); reveal();
|
|
223
225
|
// A link straight to a section (#remote-mcp) skips the rise-in, which could leave the jumped-to text hidden on phones.
|
|
224
|
-
|
|
226
|
+
const target = window.oculonInitialHash || decodeURIComponent(location.hash.slice(1));
|
|
227
|
+
if (target) {
|
|
225
228
|
document.querySelectorAll('.rv').forEach((el) => { el.classList.add('in'); rvio.unobserve(el); });
|
|
226
|
-
|
|
229
|
+
// Cards above the README (module finder, live fusion) fill in after this, which moves the section down;
|
|
230
|
+
// keep it in place for a moment unless the reader starts scrolling.
|
|
231
|
+
const el = document.getElementById(target);
|
|
232
|
+
if (el) {
|
|
233
|
+
let moved = false;
|
|
234
|
+
const stop = () => { moved = true; };
|
|
235
|
+
['wheel', 'touchstart', 'keydown'].forEach((ev) => addEventListener(ev, stop, { once: true, passive: true }));
|
|
236
|
+
const go = () => { if (!moved) el.scrollIntoView({ behavior: 'instant', block: 'start' }); };
|
|
237
|
+
go(); [150, 500, 1000, 1800, 3000].forEach((ms) => setTimeout(go, ms));
|
|
238
|
+
}
|
|
239
|
+
window.oculonClearHash?.();
|
|
227
240
|
}
|
|
228
241
|
}).catch((e) => { $('doc').textContent = `Could not load the README: ${e.message}`; });
|
|
229
242
|
fetch('/api/meta').then((r) => r.json()).then((m) => { $('ver').textContent = `v${m.version}`; }).catch(() => {});
|
package/dist/web/index.html
CHANGED
|
@@ -400,7 +400,7 @@ nav button { white-space: nowrap; }
|
|
|
400
400
|
<article class="ov w2"><div class="ovh"><span>Forecast and proof</span><a data-go="forecasts">Forecasts →</a></div><div id="ov-fc" class="ovb"><div class="ov-sk"></div></div><div class="ovf">Raven · Tortoise · OpenTimestamps</div></article>
|
|
401
401
|
<article class="ov"><div class="ovh"><span>Watchlist</span><a data-go="watch">Watch →</a></div><div id="ov-watch" class="ovb"><div class="ov-sk"></div></div><div class="ovf">Meerkat</div></article>
|
|
402
402
|
<article class="ov"><div class="ovh"><span>Case files</span><a data-go="cases">Cases →</a></div><div id="ov-cases" class="ovb"><div class="ov-sk"></div></div><div class="ovf">Sourced investigations</div></article>
|
|
403
|
-
<article class="ov w4"><div class="ovh"><span>
|
|
403
|
+
<article class="ov w4"><div class="ovh"><span>API budgets today</span><a href="/docs#configuration">Docs →</a></div><div id="ov-quota" class="ovb"><div class="ov-sk"></div></div><div class="ovf">oculon quota</div></article>
|
|
404
404
|
</div>
|
|
405
405
|
</section>
|
|
406
406
|
<!--onchain--> <section id="tab-robinhood" hidden>
|
|
@@ -1439,7 +1439,6 @@ const signalCard = (s) => shareCard({ kicker: `${s.module} · ${String(s.created
|
|
|
1439
1439
|
function openEntity(id) {
|
|
1440
1440
|
document.querySelectorAll('nav button').forEach((x) => x.setAttribute('aria-selected', 'false'));
|
|
1441
1441
|
document.querySelectorAll('main > section').forEach((s) => { s.hidden = s.id !== 'tab-entity'; });
|
|
1442
|
-
history.replaceState(null, '', '#entity:' + encodeURIComponent(id));
|
|
1443
1442
|
scrollTo({ top: 0 });
|
|
1444
1443
|
loadEntity(id);
|
|
1445
1444
|
}
|
|
@@ -1465,7 +1464,7 @@ async function loadEntity(id) {
|
|
|
1465
1464
|
const d = document.getElementById('ent-dossier'); if (d) d.onclick = () => runInvestigate('dossier', p.name);
|
|
1466
1465
|
} catch (e) { body.innerHTML = `<p class="err">${esc(e.message)}</p>`; }
|
|
1467
1466
|
}
|
|
1468
|
-
addEventListener('hashchange', () => {
|
|
1467
|
+
addEventListener('hashchange', () => { const n = decodeURIComponent(location.hash.slice(1)); if (n) { openView(n); history.replaceState(null, '', location.pathname + location.search); } });
|
|
1469
1468
|
function runInvestigate(kind, q) {
|
|
1470
1469
|
goTab('investigate');
|
|
1471
1470
|
const sel = document.getElementById('inv-kind'); sel.value = kind; sel.dispatchEvent(new Event('change'));
|
|
@@ -1769,11 +1768,15 @@ async function loadAccuracy() {
|
|
|
1769
1768
|
/* ================================================================== PWA */
|
|
1770
1769
|
if ('serviceWorker' in navigator) navigator.serviceWorker.register('/sw.js').catch(() => {});
|
|
1771
1770
|
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
if (
|
|
1776
|
-
else
|
|
1771
|
+
// Views are opened by name (#overview, #entity:org:x) from links, but the address bar stays clean.
|
|
1772
|
+
const openView = (name) => {
|
|
1773
|
+
if (!name) return;
|
|
1774
|
+
if (name.startsWith('entity:')) openEntity(name.slice(7));
|
|
1775
|
+
else document.querySelector(`nav button[data-tab="${CSS.escape(name)}"]`)?.click();
|
|
1776
|
+
};
|
|
1777
|
+
window.onOculonHash = openView;
|
|
1778
|
+
const arrived = decodeURIComponent(location.hash.slice(1));
|
|
1779
|
+
if (arrived) { openView(arrived); history.replaceState(null, '', location.pathname + location.search); }
|
|
1777
1780
|
loadInbox().catch(() => {});
|
|
1778
1781
|
if (!loaded.overview && !document.getElementById('tab-overview').hidden) { loaded.overview = true; loadOverview(); }
|
|
1779
1782
|
|
package/dist/web/landing.html
CHANGED
|
@@ -480,7 +480,7 @@ footer.sitefoot{border-top:1px solid rgba(255,255,255,.12);background:transparen
|
|
|
480
480
|
<div class="card"><div class="cmd">$ oculon case new "<q>"</div><h3>Case files</h3><div class="cd">A deep investigation with a citation on every finding, rerun on demand.</div><div class="src">All modules</div></div>
|
|
481
481
|
<div class="card"><div class="cmd">$ oculon rewind <date></div><h3>Time machine</h3><div class="cd">What Oculon would have seen on a past day, used to tune the radar.</div><div class="src">Archives · Wayback</div></div>
|
|
482
482
|
<div class="card"><div class="cmd">$ oculon connect A to B</div><h3>How two things link</h3><div class="cd">Shortest path through companies, domains, repos and people.</div><div class="src">Evidence graph</div></div>
|
|
483
|
-
<div class="card"><div class="cmd">$ oculon ask "<q>"</div><h3>An agent with every tool</h3><div class="cd">Ask in plain English; it picks modules and cites what it used.</div><div class="src">
|
|
483
|
+
<div class="card"><div class="cmd">$ oculon ask "<q>"</div><h3>An agent with every tool</h3><div class="cd">Ask in plain English; it picks modules and cites what it used.</div><div class="src">Groq · Gemini · Mistral · Claude</div></div>
|
|
484
484
|
</div>
|
|
485
485
|
</section>
|
|
486
486
|
|
|
@@ -612,7 +612,7 @@ r.provenance <span class="d">// every source used</span></pre></div></div>
|
|
|
612
612
|
<div class="faq">
|
|
613
613
|
<details><summary>Does it cost anything?</summary><p>No. Oculon is MIT licensed. About 20 sources work with no key, and the rest use free tiers. A daily budget per source keeps usage inside those free limits.</p></details>
|
|
614
614
|
<details><summary>Where does my data go?</summary><p>Into a local SQLite file in <code>~/.oculon</code>. Nothing is sent to the authors; there is no telemetry. Queries go only to the sources a command needs. See <a href="/privacy">Privacy</a>.</p></details>
|
|
615
|
-
<details><summary>What do I need to run it?</summary><p>Node.js 22.13 or newer. <code>npm i -g oculon</code>, then <code>oculon tour</code> shows what your install can already do
|
|
615
|
+
<details><summary>What do I need to run it?</summary><p>Node.js 22.13 or newer. <code>npm i -g oculon</code>, then <code>oculon tour</code> shows what your install can already do. To try it without installing, use <code>npx oculon tour</code>.</p></details>
|
|
616
616
|
<details><summary>Can my AI agent use it?</summary><p>Yes. Add <code>https://mcp.oculon.live</code> as a remote MCP server in Claude, Cursor or VS Code and its <span class="mcpn">71</span> tools are ready with nothing to install. <code>oculon mcp</code> runs the same server locally on stdio, and the TypeScript SDK returns the same result objects as the CLI.</p></details>
|
|
617
617
|
<!--onchain--> <details><summary>Does Robinhood Chain need a key?</summary><p>No. Heron reads pool data from GeckoTerminal and contract data from Blockscout without keys.</p></details>
|
|
618
618
|
<details><summary>Are the verdicts audits?</summary><p>No. Token and deployer verdicts are heuristics over pool and explorer data, and every verdict lists the reasons behind it so you can judge them.</p></details><!--/onchain-->
|
package/dist/web/legal.html
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}
|
|
17
17
|
body{margin:0;background:#000;color:#fff;font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
|
|
18
18
|
a{color:inherit}
|
|
19
|
-
header{position:sticky;top:0;z-index:5;background
|
|
19
|
+
header{position:sticky;top:0;z-index:5;background:#000;border-bottom:1px solid var(--line)}
|
|
20
20
|
header .in{display:flex;align-items:center;justify-content:space-between;padding:18px clamp(20px,3vw,40px);gap:20px}
|
|
21
21
|
.logo{font-size:17px;font-weight:600;letter-spacing:.4em;text-decoration:none}
|
|
22
22
|
header nav{display:flex;gap:24px;font-size:14px}header nav a{text-decoration:none;color:var(--soft)}
|
|
@@ -36,7 +36,7 @@ footer a{color:var(--mut)}
|
|
|
36
36
|
/* motion, shared with the landing page and docs */
|
|
37
37
|
#liquidbg{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.36}
|
|
38
38
|
header,main,footer{position:relative;z-index:1}
|
|
39
|
-
header{position:sticky}
|
|
39
|
+
header{position:sticky;z-index:5}
|
|
40
40
|
header::after{content:'';position:absolute;left:-30%;bottom:-1px;width:30%;height:1px;background:linear-gradient(90deg,transparent,var(--y),transparent);animation:hscan 6s linear infinite}
|
|
41
41
|
@keyframes hscan{to{left:100%}}
|
|
42
42
|
.logo{background:linear-gradient(90deg,#fff 40%,var(--y) 50%,#fff 60%);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shim 7s linear infinite}
|
package/dist/web/mcp.html
CHANGED
|
@@ -17,7 +17,7 @@ body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-we
|
|
|
17
17
|
a{color:inherit}
|
|
18
18
|
#liquidbg{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.3}
|
|
19
19
|
header,main,footer{position:relative;z-index:1}
|
|
20
|
-
header{position:sticky;top:0;z-index:5;background
|
|
20
|
+
header{position:sticky;top:0;z-index:5;background:#000;border-bottom:1px solid var(--line)}
|
|
21
21
|
header .in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px clamp(16px,3vw,40px);max-width:1100px;margin:0 auto}
|
|
22
22
|
.logo{font-size:17px;font-weight:600;letter-spacing:.4em;text-decoration:none}
|
|
23
23
|
.logo span{color:var(--y);letter-spacing:.2em;font-weight:400;margin-left:8px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oculon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Open-source intelligence engine and agent: cross-source signals with provenance from 50+ public sources (routing, exploits, ships, aircraft, satellites, markets), forecasts timestamped on Bitcoin. CLI, SDK, MCP server, web app and Telegram bot.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"osint",
|