oculon 0.1.7 → 0.2.0
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 +73 -13
- package/dist/cli/main.js +316 -1
- package/dist/core/der.d.ts +2 -0
- package/dist/core/der.js +17 -0
- package/dist/core/http.d.ts +19 -1
- package/dist/core/http.js +24 -0
- package/dist/core/qr.d.ts +23 -0
- package/dist/core/qr.js +577 -0
- package/dist/core/quota.js +5 -0
- package/dist/core/raster.d.ts +6 -0
- package/dist/core/raster.js +298 -0
- package/dist/core/safeurl.d.ts +5 -0
- package/dist/core/safeurl.js +26 -0
- package/dist/core/verdict.js +1 -1
- package/dist/core/zip.d.ts +9 -0
- package/dist/core/zip.js +46 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +99 -0
- package/dist/mcp.js +131 -5
- package/dist/modules/address.d.ts +6 -2
- package/dist/modules/address.js +32 -5
- package/dist/modules/apk.d.ts +37 -0
- package/dist/modules/apk.js +191 -0
- package/dist/modules/approvals.d.ts +40 -0
- package/dist/modules/approvals.js +155 -0
- package/dist/modules/archive.d.ts +21 -0
- package/dist/modules/archive.js +94 -0
- package/dist/modules/checks.js +33 -0
- package/dist/modules/contract.d.ts +56 -0
- package/dist/modules/contract.js +167 -0
- package/dist/modules/deployer.d.ts +42 -0
- package/dist/modules/deployer.js +90 -0
- package/dist/modules/doc.d.ts +24 -2
- package/dist/modules/doc.js +133 -7
- package/dist/modules/eml.d.ts +46 -0
- package/dist/modules/eml.js +175 -0
- package/dist/modules/hashcheck.d.ts +19 -3
- package/dist/modules/hashcheck.js +28 -4
- package/dist/modules/image.d.ts +32 -0
- package/dist/modules/image.js +276 -0
- package/dist/modules/invite.d.ts +27 -0
- package/dist/modules/invite.js +69 -0
- package/dist/modules/job.d.ts +33 -0
- package/dist/modules/job.js +64 -0
- package/dist/modules/meerkat.d.ts +1 -1
- package/dist/modules/meerkat.js +35 -2
- package/dist/modules/monitor.js +14 -0
- package/dist/modules/poisoning.d.ts +43 -0
- package/dist/modules/poisoning.js +114 -0
- package/dist/modules/qrcheck.d.ts +24 -0
- package/dist/modules/qrcheck.js +136 -0
- package/dist/modules/repo.d.ts +61 -0
- package/dist/modules/repo.js +162 -0
- package/dist/modules/report.d.ts +32 -0
- package/dist/modules/report.js +108 -0
- package/dist/modules/signature.d.ts +35 -0
- package/dist/modules/signature.js +283 -0
- package/dist/modules/site.d.ts +62 -0
- package/dist/modules/site.js +191 -0
- package/dist/modules/stocktoken.d.ts +48 -0
- package/dist/modules/stocktoken.js +99 -0
- package/dist/modules/trace.d.ts +37 -0
- package/dist/modules/trace.js +150 -0
- package/dist/modules/txexplain.d.ts +40 -0
- package/dist/modules/txexplain.js +135 -0
- package/dist/modules/urlcheck.js +15 -1
- package/dist/modules/where.d.ts +63 -0
- package/dist/modules/where.js +165 -0
- package/dist/report-pdf.js +3 -0
- package/dist/sources/cfurlscan.d.ts +24 -0
- package/dist/sources/cfurlscan.js +46 -0
- package/dist/sources/chainabuse.d.ts +17 -0
- package/dist/sources/chainabuse.js +19 -0
- package/dist/sources/evm.d.ts +135 -0
- package/dist/sources/evm.js +260 -0
- package/dist/sources/phishlists.d.ts +20 -0
- package/dist/sources/phishlists.js +90 -0
- package/dist/telegram.d.ts +17 -0
- package/dist/telegram.js +151 -4
- package/dist/web/docs.html +1 -1
- package/dist/web/index.html +147 -11
- package/dist/web/landing.html +1 -1
- package/dist/web/legal.html +3 -1
- package/dist/web/mcp.html +1 -1
- package/dist/web/openapi.js +13 -0
- package/dist/web/pages.js +2 -2
- package/dist/web/public.js +14 -1
- package/dist/web/server.d.ts +13 -0
- package/dist/web/server.js +77 -12
- package/dist/web/token.html +24 -4
- package/dist/web/token.json +12 -1
- package/package.json +2 -2
package/dist/web/legal.html
CHANGED
|
@@ -103,6 +103,7 @@ footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
|
|
|
103
103
|
<h2>What Oculon stores</h2>
|
|
104
104
|
<ul>
|
|
105
105
|
<li>A local SQLite database with signals, entities, links, cached API responses, watchlist items, geofences, case files and feedback votes, in <code>~/.oculon</code> or the folder set by <code>OCULON_HOME</code>.</li>
|
|
106
|
+
<li>Check history: each check (a link, a message, an IBAN, a document and so on) is kept for 90 days with its verdict, the result and the list of sources it called, so it can be replayed, downloaded as a PDF and compared when the same thing is checked again. Anyone with a check's link (<code>/replay/<id></code>) can open it; the id is random and not listed anywhere. Uploaded documents themselves are not kept, only what the check found in them.</li>
|
|
106
107
|
<li>API keys you add to your <code>.env</code> file. They are read locally and sent only to the service each key belongs to.</li>
|
|
107
108
|
<li>Nothing is sent to the Oculon authors. There is no usage reporting, crash reporting or tracking.</li>
|
|
108
109
|
</ul>
|
|
@@ -110,6 +111,7 @@ footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
|
|
|
110
111
|
<ul>
|
|
111
112
|
<li><strong>Queries to public data sources.</strong> When a module runs, it calls the sources it needs <!--onchain-->(for example USGS, Cloudflare Radar, Blockscout or GeckoTerminal)<!--/onchain--><!--offchain-->(for example USGS, Cloudflare Radar, NVD or NASA)<!--/offchain--> with the inputs you gave it, <!--onchain-->such as an address, a domain or a place name.<!--/onchain--><!--offchain-->such as a domain, a company or a place name.<!--/offchain--> Each source handles those requests under its own policy.</li>
|
|
112
113
|
<li><strong>Questions to language models.</strong> Commands such as <code>ask</code>, <code>case</code> and the daily brief send your question and the collected evidence to the LLM providers you configured keys for (Groq, Google Gemini, Mistral, OpenRouter, NVIDIA or Anthropic). Without a key, nothing is sent.</li>
|
|
114
|
+
<li><strong>Screenshots in the document check.</strong> To read the text in an image or a scanned PDF, the image is sent to OpenRouter or Google Gemini when a key for them is set. PDFs with a text layer are read on the server only. The result says when an image was sent.</li>
|
|
113
115
|
<li><strong>Telegram.</strong> If you run the bot, alerts and answers go to the chats you allow-listed, through Telegram's servers.</li>
|
|
114
116
|
<li><strong>This web page.</strong> The landing page, app and docs load fonts from Google Fonts, map libraries from cdnjs and map outlines from jsDelivr, so your browser contacts those services when it opens them.</li>
|
|
115
117
|
</ul>
|
|
@@ -156,7 +158,7 @@ footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
|
|
|
156
158
|
<p>These terms ship with the software and may change between versions.</p>
|
|
157
159
|
</article>
|
|
158
160
|
</main>
|
|
159
|
-
<footer><div class="in"><span>© <span id="year"></span> Oculon contributors · MIT</span><span><a href="/">Home</a> · <a href="/docs">Docs</a> · <a href="/app">App</a> · <a href="/thetoken">Token</a></span></div><div class="in" style="padding-top:0"><div class="social" style="margin-top:0"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/
|
|
161
|
+
<footer><div class="in"><span>© <span id="year"></span> Oculon contributors · MIT</span><span><a href="/">Home</a> · <a href="/docs">Docs</a> · <a href="/app">App</a> · <a href="/thetoken">Token</a></span></div><div class="in" style="padding-top:0"><div class="social" style="margin-top:0"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculonportal" target="_blank" rel="noopener" aria-label="Oculon community on Telegram" title="Oculon community on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div><p style="margin:10px 0 0;font:12px ui-monospace,Consolas,monospace;color:#7d8f93">Telegram bot: <a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" style="color:#9fb0b4">@oculon_radar_bot</a></p></div></footer>
|
|
160
162
|
<script src="/assets/fx.js"></script>
|
|
161
163
|
<script>
|
|
162
164
|
if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); }
|
package/dist/web/mcp.html
CHANGED
|
@@ -92,7 +92,7 @@ footer a{color:var(--soft)}
|
|
|
92
92
|
<div class="f"><strong>Open source</strong>Run your own copy with <code>oculon serve</code>; it serves this endpoint at <code>/mcp</code>.</div>
|
|
93
93
|
</div>
|
|
94
94
|
</main>
|
|
95
|
-
<footer><div class="social" style="justify-content:center;margin:0 0 14px"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/
|
|
95
|
+
<footer><div class="social" style="justify-content:center;margin:0 0 14px"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculonportal" target="_blank" rel="noopener" aria-label="Oculon community on Telegram" title="Oculon community on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div><p style="margin:10px 0 0;font:12px ui-monospace,Consolas,monospace;color:#7d8f93">Telegram bot: <a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" style="color:#9fb0b4">@oculon_radar_bot</a></p><a href="/">oculon.live</a> · <a href="/docs#remote-mcp">Docs</a> · <a href="/privacy">Privacy</a> · <a href="/terms">Terms</a> · <a href="/thetoken">Token</a></footer>
|
|
96
96
|
<script src="/assets/fx.js"></script>
|
|
97
97
|
<script>
|
|
98
98
|
if (window.OculonFX) { try { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); } catch {} }
|
package/dist/web/openapi.js
CHANGED
|
@@ -16,6 +16,19 @@ const E = [
|
|
|
16
16
|
['/api/lookalike', 'lookalikes', 'Lookalike domains of a brand that exist in DNS, and new certificates naming the brand.', [{ name: 'domain', desc: 'The real domain', example: 'example.com', required: true }]],
|
|
17
17
|
['/api/honeypot', 'honeypotCheck', 'Can this token be sold? Buy and sell simulation with taxes (Ethereum, BNB Chain, Base).', [{ name: 'address', desc: 'Token contract address', example: '0x6982508145454Ce325dDbE47a25d4ec3d2311933', required: true }, { name: 'chain', desc: 'eth, bsc or base', example: 'eth' }]],
|
|
18
18
|
['/api/address', 'addressCheck', 'Crypto address check without keys: chain, OFAC sanctions, balance and activity.', [{ name: 'address', desc: 'Crypto address', example: 'bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh', required: true }, { name: 'network', desc: '"robinhood" for Robinhood Chain 0x addresses', example: 'robinhood' }]],
|
|
19
|
+
['/api/approvals', 'approvalsCheck', 'Who can take tokens out of this wallet: active ERC-20 and NFT approvals, re-read on chain, risky spenders flagged.', [{ name: 'address', desc: 'Wallet address', example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', required: true }, { name: 'chain', desc: 'eth, arbitrum or polygon', example: 'eth' }]],
|
|
20
|
+
['/api/contract', 'contractRisk', 'What the owner of a token contract can still do: mint, blacklist, taxes, upgrades; owner, holders and liquidity.', [{ name: 'address', desc: 'Token contract address', example: '0x6982508145454Ce325dDbE47a25d4ec3d2311933', required: true }, { name: 'chain', desc: 'eth, base, bsc, arbitrum or polygon', example: 'eth' }]],
|
|
21
|
+
['/api/poisoning', 'poisoningCheck', 'Lookalike addresses, zero-value transfers and fake tokens planted in a wallet history.', [{ name: 'address', desc: 'Wallet address', example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', required: true }, { name: 'chain', desc: 'eth, arbitrum or polygon', example: 'eth' }]],
|
|
22
|
+
['/api/trace', 'traceFunds', 'Follow funds out of an address hop by hop until exchanges, mixers, bridges or sanctioned addresses.', [{ name: 'address', desc: 'Wallet address', example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', required: true }, { name: 'chain', desc: 'eth, arbitrum or polygon', example: 'eth' }, { name: 'hops', desc: 'Hops to follow, 1-4', example: '3' }]],
|
|
23
|
+
['/api/repo', 'repoCheck', 'Is this GitHub repo safe to run? Install hooks, remote code, wallet and browser theft, obfuscation, fake stars.', [{ name: 'repo', desc: 'owner/name or github.com link', example: 'expressjs/express', required: true }]],
|
|
24
|
+
['/api/report/domain', 'domainReport', 'Full report on a domain: link check, email protection, exposure, lookalikes, company.', [{ name: 'domain', desc: 'Domain', example: 'example.com', required: true }]],
|
|
25
|
+
['/api/report/wallet', 'walletReport', 'Full report on a wallet (address, approvals, poisoning, fund trace) or a token (contract risk, sell simulation).', [{ name: 'address', desc: 'Wallet address', example: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045', required: true }, { name: 'chain', desc: 'eth, arbitrum, polygon, base or bsc', example: 'eth' }]],
|
|
26
|
+
['/api/site', 'siteCheck', 'Open a page and look for wallet drainer code and phishing forms, brand copies and Telegram exfiltration.', [{ name: 'url', desc: 'Page link', example: 'https://example.com', required: true }]],
|
|
27
|
+
['/api/tx', 'explainTx', 'Explain a transaction: function, transfers, approvals, tokens taken with an earlier approval.', [{ name: 'hash', desc: 'Transaction hash', example: '0xe8701d00f5a33788ab823bb8c32a3863395083914c43c2d97fd50dc33e65ceb5', required: true }, { name: 'chain', desc: 'eth, base, arbitrum, bsc or polygon (found automatically)', example: 'eth' }]],
|
|
28
|
+
['/api/creator', 'creatorCheck', 'Who created a token and how many of their other tokens are dead.', [{ name: 'address', desc: 'Token contract address', example: '0x6982508145454Ce325dDbE47a25d4ec3d2311933', required: true }, { name: 'chain', desc: 'eth, arbitrum or polygon', example: 'eth' }]],
|
|
29
|
+
['/api/archive', 'archivePage', 'Save a page in the Wayback Machine as evidence, with its hash and status.', [{ name: 'url', desc: 'Page link', example: 'https://example.com', required: true }]],
|
|
30
|
+
['/api/invite', 'inviteCheck', 'What is behind a Telegram or Discord invite: members, age, verified badge, scam labels, impersonation.', [{ name: 'link', desc: 'Invite link', example: 'https://t.me/durov', required: true }]],
|
|
31
|
+
['/api/stocktoken', 'stockToken', 'Robinhood Stock Tokens: official contract, live price, corporate actions; or whether an address is a fake one.', [{ name: 'q', desc: 'Ticker, token address, or empty', example: 'TSLA' }]],
|
|
19
32
|
['/api/check', 'getCheck', 'An earlier check by its id (returned as check.id by every check): verdict, every source call in order, what changed since the check before it, and the full result.', [{ name: 'id', desc: 'Check id', example: 'qQcUfNGmZgrcQ9kD', required: true }]],
|
|
20
33
|
['/api/status', 'sourceStatus', 'Which sources are up, slow, degraded or down, from real calls: success rate, median time, last error.', [{ name: 'hours', desc: 'Window in hours (default 24, max 48)', example: '24' }]],
|
|
21
34
|
['/api/satellites', 'satellites', 'Satellites launched in the last 30 days, or one object\'s orbit, owner and status.', [{ name: 'q', desc: 'Satellite name or NORAD number (optional)', example: '25544' }]],
|
package/dist/web/pages.js
CHANGED
|
@@ -83,9 +83,9 @@ function firstSentence(d) {
|
|
|
83
83
|
/** /llms.txt: a short guide for AI agents (llmstxt.org format). */
|
|
84
84
|
export function llmsTxt(tools, base, mcpUrl) {
|
|
85
85
|
const groups = [
|
|
86
|
-
['Everyday checks', /scam|url_check|doc_check|iban|email_headers|lookalike|phone|password|breaches|company|email_security|recall|travel|fact_check/],
|
|
86
|
+
['Everyday checks', /scam|url_check|doc_check|image_check|qr_check|repo_check|domain_report|site_check|email_file|apk_check|job_check|photo_location|archive|invite_check|iban|email_headers|lookalike|phone|password|breaches|company|email_security|recall|travel|fact_check/],
|
|
87
87
|
['Threat intel', /ip_check|hash|ransomware|vulns|cve|package|exposure|bgp|blackout|cloud/],
|
|
88
|
-
['Crypto', /token|wallet|honeypot|address_check|robinhood|defi|protocol|sanctions/],
|
|
88
|
+
['Crypto', /token|wallet|honeypot|approvals|tx_explain|token_creator|stock_token|contract_risk|signature|poisoning|trace_funds|address_check|robinhood|defi|protocol|sanctions/],
|
|
89
89
|
];
|
|
90
90
|
const line = (t) => `- [${t.name}](${base}/llms-full.txt#${t.name}): ${firstSentence(t.description)}`;
|
|
91
91
|
const used = new Set();
|
package/dist/web/public.js
CHANGED
|
@@ -57,9 +57,22 @@ export const PUBLIC_API = new Set([
|
|
|
57
57
|
'/api/lookalike',
|
|
58
58
|
'/api/honeypot',
|
|
59
59
|
'/api/address',
|
|
60
|
+
'/api/approvals',
|
|
61
|
+
'/api/contract',
|
|
62
|
+
'/api/poisoning',
|
|
63
|
+
'/api/trace',
|
|
64
|
+
'/api/repo',
|
|
65
|
+
'/api/report/domain',
|
|
66
|
+
'/api/report/wallet',
|
|
67
|
+
'/api/site',
|
|
68
|
+
'/api/tx',
|
|
69
|
+
'/api/creator',
|
|
70
|
+
'/api/archive',
|
|
71
|
+
'/api/invite',
|
|
72
|
+
'/api/stocktoken',
|
|
60
73
|
]);
|
|
61
74
|
/** Endpoints that start outside work (a CLI process or several upstream calls) get a tighter budget. */
|
|
62
|
-
const HEAVY = new Set(['/api/console', '/api/rhtoken', '/api/verify', '/api/url', '/api/travel', '/api/audit', '/api/recall', '/api/emailsec', '/api/country', '/api/airport', '/api/scam', '/api/ip', '/api/hash', '/api/company', '/api/phone', '/api/lookalike', '/api/honeypot', '/api/address']);
|
|
75
|
+
const HEAVY = new Set(['/api/console', '/api/rhtoken', '/api/verify', '/api/url', '/api/travel', '/api/audit', '/api/recall', '/api/emailsec', '/api/country', '/api/airport', '/api/scam', '/api/ip', '/api/hash', '/api/company', '/api/phone', '/api/lookalike', '/api/honeypot', '/api/address', '/api/approvals', '/api/contract', '/api/poisoning', '/api/trace', '/api/repo', '/api/report/domain', '/api/report/wallet', '/api/site', '/api/tx', '/api/creator', '/api/archive', '/api/invite']);
|
|
63
76
|
/** Signals from these modules describe the owner's own watchlist, cases, fences, votes or raw social streams. */
|
|
64
77
|
const PRIVATE_MODULES = new Set(['meerkat', 'case', 'fence', 'feedback', 'live']);
|
|
65
78
|
export function publicSignals(list) {
|
package/dist/web/server.d.ts
CHANGED
|
@@ -73,11 +73,24 @@ export interface TokenInfo {
|
|
|
73
73
|
launchpad: string;
|
|
74
74
|
txBase: string;
|
|
75
75
|
deployBlock: number;
|
|
76
|
+
uniswap?: string;
|
|
77
|
+
dexscreener?: string;
|
|
78
|
+
pool?: {
|
|
79
|
+
dex: string;
|
|
80
|
+
pair: string;
|
|
81
|
+
id: string;
|
|
82
|
+
url?: string;
|
|
83
|
+
};
|
|
84
|
+
supply?: string;
|
|
85
|
+
launched?: string;
|
|
86
|
+
migrated?: string;
|
|
76
87
|
}
|
|
77
88
|
/** The burn section on /thetoken: total, share of supply and every burn with its time and transaction. */
|
|
78
89
|
export declare function burnBlock(b: BurnInfo | null, t: Partial<TokenInfo>): string;
|
|
79
90
|
/** The address block on /thetoken, from src/web/token.json. An empty address says no token is official yet. */
|
|
80
91
|
export declare function tokenBlock(t: Partial<TokenInfo>): string;
|
|
92
|
+
/** The details table on /thetoken: supply, pool, launch and migration, all from token.json (read from the chain). */
|
|
93
|
+
export declare function tokenDetails(t: Partial<TokenInfo>): string;
|
|
81
94
|
export declare function createWebServer(opts?: WebOptions): {
|
|
82
95
|
server: Server;
|
|
83
96
|
oculon: Oculon;
|
package/dist/web/server.js
CHANGED
|
@@ -284,6 +284,19 @@ export const ROUTES = {
|
|
|
284
284
|
'/api/lookalike': async (q, o) => slim(await o.lookalikes(need(q, 'domain', 120))),
|
|
285
285
|
'/api/honeypot': async (q, o) => slim(await o.honeypotCheck(need(q, 'address', 60), q.get('chain') ? { chain: q.get('chain').slice(0, 12) } : {})),
|
|
286
286
|
'/api/address': async (q, o) => slim(await o.addressCheck(need(q, 'address', 120), q.get('network') ? { network: q.get('network').slice(0, 20) } : {})),
|
|
287
|
+
'/api/approvals': async (q, o) => slim(await o.approvalsCheck(need(q, 'address', 60), q.get('chain') ? { chain: q.get('chain').slice(0, 12) } : {})),
|
|
288
|
+
'/api/contract': async (q, o) => slim(await o.contractRisk(need(q, 'address', 60), q.get('chain') ? { chain: q.get('chain').slice(0, 12) } : {})),
|
|
289
|
+
'/api/poisoning': async (q, o) => slim(await o.poisoningCheck(need(q, 'address', 60), q.get('chain') ? { chain: q.get('chain').slice(0, 12) } : {})),
|
|
290
|
+
'/api/trace': async (q, o) => slim(await o.traceFunds(need(q, 'address', 60), { ...(q.get('chain') ? { chain: q.get('chain').slice(0, 12) } : {}), ...(q.get('hops') ? { hops: Number(q.get('hops')) || 3 } : {}) })),
|
|
291
|
+
'/api/repo': async (q, o) => slim(await o.repoCheck(need(q, 'repo', 200))),
|
|
292
|
+
'/api/report/domain': async (q, o) => slim(await o.domainReport(need(q, 'domain', 120))),
|
|
293
|
+
'/api/report/wallet': async (q, o) => slim(await o.walletReport(need(q, 'address', 60), q.get('chain') ? { chain: q.get('chain').slice(0, 12) } : {})),
|
|
294
|
+
'/api/site': async (q, o) => slim(await o.siteCheck(need(q, 'url', 2000))),
|
|
295
|
+
'/api/tx': async (q, o) => slim(await o.explainTx(need(q, 'hash', 200), q.get('chain') ? { chain: q.get('chain').slice(0, 12) } : {})),
|
|
296
|
+
'/api/creator': async (q, o) => slim(await o.creatorCheck(need(q, 'address', 60), q.get('chain') ? { chain: q.get('chain').slice(0, 12) } : {})),
|
|
297
|
+
'/api/archive': async (q, o) => slim(await o.archivePage(need(q, 'url', 2000))),
|
|
298
|
+
'/api/invite': async (q, o) => slim(await o.inviteCheck(need(q, 'link', 300))),
|
|
299
|
+
'/api/stocktoken': async (q, o) => slim(await o.stockToken((q.get('q') ?? '').slice(0, 60))),
|
|
287
300
|
'/api/satellites': async (q, o) => slim(await o.satellites((q.get('q') ?? '').slice(0, 60))),
|
|
288
301
|
'/api/papers': async (q, o) => slim(await o.papers(need(q, 'topic', 200), q.get('years') ? { years: Number(q.get('years')) || 3 } : {})),
|
|
289
302
|
'/api/country': async (q, o) => {
|
|
@@ -362,9 +375,11 @@ export const ROUTES = {
|
|
|
362
375
|
return { version: SERVER_INFO.version, mcpTools: activeTools().length, modules, onchain: onchainEnabled() };
|
|
363
376
|
},
|
|
364
377
|
'/api/readme': () => {
|
|
378
|
+
// The GitHub header (banner and badges, written as HTML) is left out: the docs page renders Markdown only.
|
|
379
|
+
const strip = (md) => (/^<p align="center">/.test(md) ? `# Oculon\n\n${md.slice(Math.max(0, md.indexOf('**Open-source')))}` : md);
|
|
365
380
|
for (const p of [join(HERE, '..', '..', 'README.md'), join(HERE, '..', 'README.md')])
|
|
366
381
|
if (existsSync(p))
|
|
367
|
-
return { markdown: readFileSync(p, 'utf8') };
|
|
382
|
+
return { markdown: strip(readFileSync(p, 'utf8')) };
|
|
368
383
|
throw new HttpError(404, 'README not found');
|
|
369
384
|
},
|
|
370
385
|
};
|
|
@@ -387,6 +402,8 @@ async function readJson(req, limit = 10_000) {
|
|
|
387
402
|
throw new HttpError(400, 'invalid JSON body');
|
|
388
403
|
}
|
|
389
404
|
}
|
|
405
|
+
/** File uploads (base64 in a JSON body) and the check each one runs. */
|
|
406
|
+
const UPLOADS = { '/api/doc': 'doc', '/api/imagecheck': 'image', '/api/qr': 'qr', '/api/eml': 'eml', '/api/apk': 'apk', '/api/where': 'where' };
|
|
390
407
|
/** Writes that change what the whole install watches. */
|
|
391
408
|
const OWNER_ONLY = new Set(['/api/monitor', '/api/watch/delete', '/api/fences', '/api/fences/delete', '/api/cases']);
|
|
392
409
|
export const POST_ROUTES = {
|
|
@@ -397,6 +414,19 @@ export const POST_ROUTES = {
|
|
|
397
414
|
throw new HttpError(400, 'missing headers');
|
|
398
415
|
return slim(await o.headerCheck(raw.slice(0, 100_000)));
|
|
399
416
|
},
|
|
417
|
+
'/api/job': async (b, o) => {
|
|
418
|
+
const raw = String(b.message ?? '');
|
|
419
|
+
if (!raw.trim())
|
|
420
|
+
throw new HttpError(400, 'missing message');
|
|
421
|
+
return slim(await o.jobCheck(raw.slice(0, 30_000)));
|
|
422
|
+
},
|
|
423
|
+
// Signature requests (typed data JSON, calldata) can be long too.
|
|
424
|
+
'/api/signature': async (b, o) => {
|
|
425
|
+
const raw = String(b.request ?? '');
|
|
426
|
+
if (!raw.trim())
|
|
427
|
+
throw new HttpError(400, 'missing request');
|
|
428
|
+
return slim(await o.signatureCheck(raw.slice(0, 100_000), { ...(b.chain ? { chain: String(b.chain).slice(0, 12) } : {}), ...(b.to ? { to: String(b.to).slice(0, 60) } : {}) }));
|
|
429
|
+
},
|
|
400
430
|
'/api/fences': (b, o) => {
|
|
401
431
|
const box = Array.isArray(b.box) ? b.box.map(Number) : null;
|
|
402
432
|
if (!box || box.length !== 4)
|
|
@@ -565,7 +595,35 @@ export function tokenBlock(t) {
|
|
|
565
595
|
const cell = (k, v) => `<div><b>${k}</b><span>${v ? esc(v) : '-'}</span></div>`;
|
|
566
596
|
const badge = /^0x[0-9a-fA-F]{40}$/.test(ca) ? `<a class="sbadge" href="/safety/${esc(ca.toLowerCase())}" title="Live safety check of this token"><img src="/badge/${esc(ca.toLowerCase())}.svg" alt="Oculon safety badge" height="22"></a>` : '';
|
|
567
597
|
return `<div class="ca"><div class="lbl">Contract address</div><div class="addr"><code id="ca-value">${esc(ca)}</code><button id="copy-ca" type="button">COPY</button></div>${badge}`
|
|
568
|
-
+ `<div class="meta">${cell('Chain', (t.chain ?? '').trim())}${cell('Ticker', (t.ticker ?? '').trim() ? `$${(t.ticker ?? '').trim().replace(/^\$/, '')}` : '')}
|
|
598
|
+
+ `<div class="meta">${cell('Chain', (t.chain ?? '').trim())}${cell('Ticker', (t.ticker ?? '').trim() ? `$${(t.ticker ?? '').trim().replace(/^\$/, '')}` : '')}${t.pool ? cell('DEX', t.pool.dex) : `<div><b>${link ? link.k : 'Explorer'}</b><span>${link ? `<a href="${esc(link.u)}" target="_blank" rel="noopener">${esc(link.label)}</a>` : '-'}</span></div>`}</div>${tokenLinks(t)}</div>`;
|
|
599
|
+
}
|
|
600
|
+
/** Where to trade and track the token: one button per configured https link. */
|
|
601
|
+
function tokenLinks(t) {
|
|
602
|
+
const esc = (s) => s.replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
603
|
+
const safe = (u) => (/^https:\/\/[^\s"'<>]+$/.test(u ?? '') ? u : '');
|
|
604
|
+
const links = [['Uniswap', t.uniswap, 'Trade'], ['DexScreener', t.dexscreener, 'Chart'], ['Pons', t.launchpad, 'Launchpad'], ['Etherscan', t.explorer, 'Explorer']];
|
|
605
|
+
const items = links.filter(([, u]) => safe(u)).map(([name, u, kind]) => `<a href="${esc(safe(u))}" target="_blank" rel="noopener"><b>${kind}</b><span>${name}</span></a>`);
|
|
606
|
+
return items.length ? `<div class="golinks">${items.join('')}</div>` : '';
|
|
607
|
+
}
|
|
608
|
+
/** The details table on /thetoken: supply, pool, launch and migration, all from token.json (read from the chain). */
|
|
609
|
+
export function tokenDetails(t) {
|
|
610
|
+
const esc = (s) => s.replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
611
|
+
if (!(t.ca ?? '').trim())
|
|
612
|
+
return '';
|
|
613
|
+
const when = (iso) => (iso && !Number.isNaN(Date.parse(iso)) ? `${iso.slice(0, 10)} ${iso.slice(11, 16)} UTC` : '');
|
|
614
|
+
const safe = (u) => (/^https:\/\/[^\s"'<>]+$/.test(u ?? '') ? u : '');
|
|
615
|
+
const rows = [];
|
|
616
|
+
if (t.chain)
|
|
617
|
+
rows.push(['Chain', esc(t.chain)]);
|
|
618
|
+
if (t.supply)
|
|
619
|
+
rows.push(['Total supply', `${esc(t.supply)} ${esc((t.ticker ?? '').replace(/^\$/, ''))}`]);
|
|
620
|
+
if (t.pool)
|
|
621
|
+
rows.push(['Pool', `${esc(t.pool.pair)} on ${esc(t.pool.dex)}${safe(t.pool.url) ? ` · <a href="${esc(safe(t.pool.url))}" target="_blank" rel="noopener">${esc(t.pool.id.slice(0, 10))}…${esc(t.pool.id.slice(-6))}</a>` : ''}`]);
|
|
622
|
+
if (t.launched)
|
|
623
|
+
rows.push(['Launched', `${esc(when(t.launched))}${t.launchpad ? ' on the Pons launchpad' : ''}${t.deployBlock ? `, block ${t.deployBlock.toLocaleString('en-US')}` : ''}`]);
|
|
624
|
+
if (t.migrated)
|
|
625
|
+
rows.push(['Migrated', `${esc(when(t.migrated))}: the bonding curve completed and trading moved to ${esc(t.pool?.dex ?? 'a DEX pool')}. Same contract address, nothing to swap or claim.`]);
|
|
626
|
+
return rows.length ? `<h2>Details</h2><div class="dtable">${rows.map(([k, v]) => `<div><b>${k}</b><span>${v}</span></div>`).join('')}</div>` : '';
|
|
569
627
|
}
|
|
570
628
|
function send(res, status, body, type, cache = 'no-store') {
|
|
571
629
|
res.writeHead(status, {
|
|
@@ -869,22 +927,25 @@ export function createWebServer(opts = {}) {
|
|
|
869
927
|
if (req.method === 'POST' && OWNER_ONLY.has(url.pathname) && !owner) {
|
|
870
928
|
return send(res, 403, '{"error":"the shared watchlist is managed by the owner; add your own monitors instead"}', 'application/json');
|
|
871
929
|
}
|
|
872
|
-
if (url.pathname
|
|
930
|
+
if (UPLOADS[url.pathname] && req.method === 'POST') {
|
|
873
931
|
if (!sameSite())
|
|
874
932
|
return send(res, 403, '{"error":"forbidden"}', 'application/json');
|
|
875
933
|
const ip = (viaEdge && String(req.headers['x-oculon-client-ip'] ?? '').trim()) || clientIp(req);
|
|
876
934
|
if (publicMode && !isAdmin(req, adminToken) && !analystLimit(ip))
|
|
877
935
|
return send(res, 429, '{"error":"You have checked a lot this hour. Try again a bit later."}', 'application/json');
|
|
878
936
|
try {
|
|
879
|
-
const b = await readJson(req, 15_000_000);
|
|
937
|
+
const b = await readJson(req, UPLOADS[url.pathname] === 'apk' ? 56_000_000 : 15_000_000);
|
|
880
938
|
const b64 = String(b.data ?? '').replace(/^data:[^;]+;base64,/, '');
|
|
881
939
|
if (!b64)
|
|
882
940
|
throw new HttpError(400, 'choose a file first');
|
|
883
941
|
const file = Buffer.from(b64, 'base64');
|
|
884
942
|
const name = String(b.name ?? 'document').slice(0, 120);
|
|
885
943
|
const { createHash } = await import('node:crypto');
|
|
886
|
-
const
|
|
887
|
-
|
|
944
|
+
const kind = UPLOADS[url.pathname];
|
|
945
|
+
const hash = createHash('sha256').update(file).digest('hex');
|
|
946
|
+
const run = { doc: () => oculon.docCheck(file, name), image: () => oculon.imageCheck(file, name), qr: () => oculon.qrCheck(file, name), eml: () => oculon.emlCheck(file, name), apk: () => oculon.apkCheck(file, name), where: () => oculon.whereCheck(file, name) }[kind];
|
|
947
|
+
const r = await oculon.recordCheck(kind, hash, run, { label: name });
|
|
948
|
+
log(`POST ${url.pathname}`);
|
|
888
949
|
return send(res, 200, JSON.stringify({ ...slim(r.value), check: r.check }), 'application/json; charset=utf-8');
|
|
889
950
|
}
|
|
890
951
|
catch (e) {
|
|
@@ -907,10 +968,14 @@ export function createWebServer(opts = {}) {
|
|
|
907
968
|
return send(res, 403, '{"error":"forbidden"}', 'application/json');
|
|
908
969
|
}
|
|
909
970
|
try {
|
|
910
|
-
const body = await readJson(req, url.pathname === '/api/headers' ? 200_000 : undefined);
|
|
911
|
-
const out = url.pathname === '/api/
|
|
912
|
-
? await oculon.recordCheck('
|
|
913
|
-
:
|
|
971
|
+
const body = await readJson(req, url.pathname === '/api/headers' || url.pathname === '/api/signature' || url.pathname === '/api/job' ? 200_000 : undefined);
|
|
972
|
+
const out = url.pathname === '/api/job'
|
|
973
|
+
? await oculon.recordCheck('job', String(body.message ?? ''), async () => POST_ROUTES[url.pathname](body, oculon), { label: `job offer: ${String(body.message ?? '').trim().slice(0, 60)}` }).then((r) => ({ ...r.value, check: r.check }))
|
|
974
|
+
: url.pathname === '/api/signature'
|
|
975
|
+
? await oculon.recordCheck('signature', String(body.request ?? ''), async () => POST_ROUTES[url.pathname](body, oculon), { label: `signature request: ${String(body.request ?? '').trim().slice(0, 60)}` }).then((r) => ({ ...r.value, check: r.check }))
|
|
976
|
+
: url.pathname === '/api/headers'
|
|
977
|
+
? await oculon.recordCheck('headers', String(body.headers ?? ''), async () => POST_ROUTES[url.pathname](body, oculon), { label: `email headers: ${(/^subject:\s*(.+)$/im.exec(String(body.headers ?? ''))?.[1] ?? 'pasted').slice(0, 70)}` }).then((r) => ({ ...r.value, check: r.check }))
|
|
978
|
+
: await POST_ROUTES[url.pathname](body, oculon);
|
|
914
979
|
log(`POST ${url.pathname}`);
|
|
915
980
|
return send(res, 200, JSON.stringify(out), 'application/json; charset=utf-8');
|
|
916
981
|
}
|
|
@@ -1013,7 +1078,7 @@ export function createWebServer(opts = {}) {
|
|
|
1013
1078
|
info = JSON.parse(readFileSync(join(HERE, 'token.json'), 'utf8'));
|
|
1014
1079
|
}
|
|
1015
1080
|
catch { /* no file: nothing official */ }
|
|
1016
|
-
const html = readFileSync(join(HERE, 'token.html'), 'utf8').replace('{{TOKEN_BLOCK}}', tokenBlock(info) + burnBlock(await tokenBurns(info), info));
|
|
1081
|
+
const html = readFileSync(join(HERE, 'token.html'), 'utf8').replace('{{TOKEN_BLOCK}}', tokenBlock(info) + burnBlock(await tokenBurns(info), info)).replace('{{TOKEN_DETAILS}}', tokenDetails(info));
|
|
1017
1082
|
return send(res, 200, renderPage(html, siteDomain && hostName.endsWith(siteDomain) ? siteDomain : null), 'text/html; charset=utf-8');
|
|
1018
1083
|
}
|
|
1019
1084
|
if (url.pathname === '/manifest.webmanifest')
|
|
@@ -1060,7 +1125,7 @@ export function createWebServer(opts = {}) {
|
|
|
1060
1125
|
return send(res, 404, '{"error":"on-chain features are paused"}', 'application/json');
|
|
1061
1126
|
const ck = CHECK_ROUTES[url.pathname];
|
|
1062
1127
|
let out = ck && url.searchParams.get(ck.param)?.trim()
|
|
1063
|
-
? await oculon.recordCheck(ck.kind, url.searchParams.get(ck.param).trim()
|
|
1128
|
+
? await oculon.recordCheck(ck.kind, `${url.searchParams.get(ck.param).trim()}${url.searchParams.get('chain') ? `@${url.searchParams.get('chain').trim().toLowerCase()}` : ''}`, async () => route(url.searchParams, oculon)).then((r) => (r.value && typeof r.value === 'object' ? { ...r.value, check: r.check } : r.value))
|
|
1064
1129
|
: await route(url.searchParams, oculon);
|
|
1065
1130
|
if (!onchainEnabled())
|
|
1066
1131
|
out = withoutOnchain(url.pathname, out);
|
package/dist/web/token.html
CHANGED
|
@@ -51,7 +51,20 @@ code{font:.86em var(--mono);background:rgba(0,20,24,.8);border:1px solid rgba(0,
|
|
|
51
51
|
.three a{display:block;border:1px solid #1f2a2d;background:rgba(4,8,9,.85);padding:16px;text-decoration:none;transition:border-color .3s}.three a:hover{border-color:rgba(0,240,255,.5)}
|
|
52
52
|
.three b{display:block;font:400 11px var(--mono);letter-spacing:.14em;color:var(--mut)}.three span{display:block;margin-top:6px;font:700 15px var(--mono);color:var(--y);overflow-wrap:anywhere}
|
|
53
53
|
footer{border-top:1px solid var(--line);background:rgba(0,0,0,.6)}footer .in{max-width:860px;margin:0 auto;padding:26px clamp(20px,5vw,40px);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font:12px var(--mono);color:#5e5e5e}footer a{color:var(--mut)}
|
|
54
|
-
|
|
54
|
+
.golinks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
|
|
55
|
+
.golinks a{display:block;border:1px solid rgba(0,240,255,.35);background:rgba(0,240,255,.05);padding:12px 14px;text-decoration:none;transition:background .25s,border-color .25s}
|
|
56
|
+
.golinks a:hover{background:rgba(0,240,255,.14);border-color:var(--y)}
|
|
57
|
+
.golinks b{display:block;font:400 11px var(--mono);letter-spacing:.14em;color:var(--mut);text-transform:uppercase}.golinks span{display:block;margin-top:5px;font:700 15px var(--mono);color:var(--y)}
|
|
58
|
+
.dtable{border:1px solid #1f2a2d;background:rgba(4,8,9,.85)}
|
|
59
|
+
.dtable div{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;padding:13px 16px;border-bottom:1px solid #141c1e}.dtable div:last-child{border-bottom:0}
|
|
60
|
+
.dtable b{font:400 11px var(--mono);letter-spacing:.14em;color:var(--mut);text-transform:uppercase;padding-top:4px}.dtable span{font-size:16px;color:#e8eef0;line-height:1.6;overflow-wrap:anywhere}.dtable a{color:var(--y)}
|
|
61
|
+
.util{border:1px solid #1f2a2d;background:rgba(4,8,9,.85);margin-top:16px}
|
|
62
|
+
.util .uh,.util .ur{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,.8fr);gap:16px;padding:14px 16px;border-bottom:1px solid #141c1e}.util .ur:last-child{border-bottom:0}
|
|
63
|
+
.util .uh span{font:400 11px var(--mono);letter-spacing:.14em;color:var(--mut);text-transform:uppercase}
|
|
64
|
+
.util .ur>span{font:700 16px var(--mono);color:var(--y)}.util .ur>span:first-child{font:500 17px var(--sans);color:#fff}
|
|
65
|
+
.util em{display:block;font:300 14px/1.5 var(--sans);font-style:normal;color:var(--mut);margin-top:4px}
|
|
66
|
+
.ubtn{display:inline-block;font:700 13px var(--mono);letter-spacing:.08em;background:var(--y);color:#000 !important;padding:12px 16px;text-decoration:none}
|
|
67
|
+
@media (max-width:760px){.ca .meta,.three{grid-template-columns:minmax(0,1fr)}.golinks{grid-template-columns:repeat(2,minmax(0,1fr))}.dtable div{grid-template-columns:minmax(0,1fr);gap:4px}.util .uh{display:none}.util .ur{grid-template-columns:minmax(0,1fr);gap:8px}.util .ur>span[data-k]::before{content:attr(data-k);display:block;font:400 11px var(--mono);letter-spacing:.14em;color:var(--mut);text-transform:uppercase}}
|
|
55
68
|
</style>
|
|
56
69
|
</head>
|
|
57
70
|
<body>
|
|
@@ -61,6 +74,7 @@ footer{border-top:1px solid var(--line);background:rgba(0,0,0,.6)}footer .in{max
|
|
|
61
74
|
<div class="lbl">Official token</div>
|
|
62
75
|
<h1>One address.<br><span>Three places.</span></h1>
|
|
63
76
|
{{TOKEN_BLOCK}}
|
|
77
|
+
{{TOKEN_DETAILS}}
|
|
64
78
|
|
|
65
79
|
<h2>How to check an address</h2>
|
|
66
80
|
<p>The official address is posted in three places at the same time. Before you use any address, make sure it matches all three exactly, character by character.</p>
|
|
@@ -71,9 +85,15 @@ footer{border-top:1px solid var(--line);background:rgba(0,0,0,.6)}footer .in{max
|
|
|
71
85
|
</div>
|
|
72
86
|
<p>If an address is missing from any of the three, it is not Oculon. Oculon will never message you first, ask for your recovery phrase, or ask you to send funds to an address.</p>
|
|
73
87
|
|
|
74
|
-
<h2>
|
|
75
|
-
<p>
|
|
76
|
-
<
|
|
88
|
+
<h2>Utility</h2>
|
|
89
|
+
<p>Holding is the main way in: your wallet signs a one-time request and its balance is read live. Burning is optional. Everything is read from the chain, nothing leaves your wallet, and Oculon stays free for everyone.</p>
|
|
90
|
+
<div class="util">
|
|
91
|
+
<div class="uh"><span>Use</span><span>Hold</span><span>Or burn</span></div>
|
|
92
|
+
<div class="ur"><span><b>Deep investigation</b><em>A domain, wallet, token or company checked against every relevant source, published as its own page.</em></span><span data-k="Hold">1,500,000<em>one every 30 days per wallet</em></span><span data-k="Or burn">1,500,000<em>for one</em></span></div>
|
|
93
|
+
<div class="ur"><span><b>Live safety badge</b><em>A Robinhood Chain token monitored about every 15 minutes, with a badge that turns red on danger. Paying never changes the verdict.</em></span><span data-k="Hold">2,000,000<em>live while you hold, one badge per wallet</em></span><span data-k="Or burn">1,000,000<em>for 30 days</em></span></div>
|
|
94
|
+
<div class="ur"><span><b>Holder tier</b><em>Up to 30 personal monitors, checked every 15 minutes instead of every hour.</em></span><span data-k="Hold">3,500,000<em>sign once</em></span><span data-k="Or burn">-</span></div>
|
|
95
|
+
</div>
|
|
96
|
+
<p><a class="ubtn" href="/utility">Open the utility page →</a></p>
|
|
77
97
|
|
|
78
98
|
<h2>What Oculon is</h2>
|
|
79
99
|
<p>Oculon is a free, open-source OSINT engine under the MIT licence. It checks things before you trust them: a suspicious message, a link, a phone number, a leaked password, a supplier, an IP address, a vulnerability or a news claim. Every answer lists the sources it used and whether each was live, cached or unavailable.</p>
|
package/dist/web/token.json
CHANGED
|
@@ -2,8 +2,19 @@
|
|
|
2
2
|
"ca": "0x12a3f1a05d827007f17a43a250cce44868c4a263",
|
|
3
3
|
"chain": "Robinhood Chain",
|
|
4
4
|
"ticker": "OCULON",
|
|
5
|
-
"explorer": "",
|
|
5
|
+
"explorer": "https://robin.etherscan.io/token/0x12a3f1a05d827007f17a43a250cce44868c4a263",
|
|
6
6
|
"launchpad": "https://ponsfamily.com/launchpad/0x12a3f1a05d827007f17a43a250cce44868c4a263",
|
|
7
|
+
"uniswap": "https://app.uniswap.org/explore/tokens/robinhood/0x12a3f1a05d827007f17a43a250cce44868c4a263",
|
|
8
|
+
"dexscreener": "https://dexscreener.com/robinhood/0x74dcc6227ee273a799144dd31987ba5df105d10fd414057797fefbab97b6155a",
|
|
9
|
+
"pool": {
|
|
10
|
+
"dex": "Uniswap v4",
|
|
11
|
+
"pair": "OCULON / ETH",
|
|
12
|
+
"id": "0x74dcc6227ee273a799144dd31987ba5df105d10fd414057797fefbab97b6155a",
|
|
13
|
+
"url": "https://app.uniswap.org/explore/pools/robinhood/0x74dcc6227ee273a799144dd31987ba5df105d10fd414057797fefbab97b6155a"
|
|
14
|
+
},
|
|
15
|
+
"supply": "1,000,000,000",
|
|
16
|
+
"launched": "2026-11-25T14:38:27Z",
|
|
17
|
+
"migrated": "2026-11-25T21:22:31Z",
|
|
7
18
|
"txBase": "https://robin.etherscan.io",
|
|
8
19
|
"deployBlock": 123115234
|
|
9
20
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oculon",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "OSINT engine you can run, script and plug into agents:
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "OSINT engine you can run, script and plug into agents: 100+ live tools for scams, links, wallets, QR codes, AI images, IPs, malware, outages, CVEs and research, each result with its sources. CLI, SDK, MCP server and web app. Zero dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"osint",
|
|
7
7
|
"open-source-intelligence",
|