
Research
/Security News
Popular Go Decimal Library Targeted by Long-Running Typosquat with DNS Backdoor
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.
@trust-engine/widget
Advanced tools
A JavaScript widget for content verification using the TrustEngine blockchain registry.
Simple setup (auto-initialization):
<!-- Minimal setup with defaults -->
<script src="https://cdn.jsdelivr.net/npm/@trust-engine/widget@1.0.0/dist/trust-engine-widget.js"></script>
<!-- With custom configuration via data attributes -->
<script
src="https://cdn.jsdelivr.net/npm/@trust-engine/widget@1.0.0/dist/trust-engine-widget.js"
data-enabled-elements='["img","video","audio"]'
data-badge-position="bottom-right"
data-theme="light"
data-auto-scan="true"
data-observe-dynamic-content="true"
data-show-tooltip="true"
data-debug="false">
</script>
Manual initialization:
<script src="https://cdn.jsdelivr.net/npm/@trust-engine/widget@1.0.0/dist/trust-engine-widget.js"></script>
<script>
TrustEngineWidget.init({
enabledElements: ['img', 'video', 'audio'],
badgePosition: 'bottom-right',
theme: 'light',
autoScan: true,
observeDynamicContent: true,
showTooltip: true,
debug: false
});
</script>
<script src="https://cdn.trustengine.org/widget/latest/trust-engine-widget.js"></script>
<script>
TrustEngineWidget.init({
apiBaseUrl: 'https://core-api-server.onrender.com'
});
</script>
npm install @trustengine/widget
import { TrustEngineWidget } from '@trustengine/widget';
const widget = new TrustEngineWidget({
apiBaseUrl: 'https://core-api-server.onrender.com'
});
widget.initialize();
The widget works with sensible defaults out of the box. All configuration options are optional:
// Minimal setup (recommended)
TrustEngineWidget.init();
// With custom options
TrustEngineWidget.init({
enabledElements: ['img', 'video', 'audio'], // Media types to scan
badgePosition: 'bottom-right', // Badge position: 'top-left', 'top-right', 'bottom-left', 'bottom-right'
theme: 'light', // Theme: 'light' or 'dark'
autoScan: true, // Auto-scan page on load
observeDynamicContent: true, // Monitor for dynamically added content
showTooltip: true, // Show hover tooltips
debug: false // Enable debug logging in console
});
| Option | Data Attribute | Type | Default | Description |
|---|---|---|---|---|
enabledElements | data-enabled-elements | string[] | ['img', 'video', 'audio'] | HTML elements to scan for verification |
badgePosition | data-badge-position | string | 'bottom-right' | Position of verification badge |
theme | data-theme | string | 'light' | Visual theme ('light' or 'dark') |
autoScan | data-auto-scan | boolean | true | Automatically scan page when widget loads |
observeDynamicContent | data-observe-dynamic-content | boolean | true | Monitor for new content added to the page |
showTooltip | data-show-tooltip | boolean | true | Show tooltips on badge hover |
debug | data-debug | boolean | false | Enable debug logging for development |
Note: For data-enabled-elements, use JSON array format: '["img","video","audio"]'
The widget uses the TrustEngine SDK to verify content:
npm run build
npm run dev # Start development server
Open test/sample-page/index.html to test the widget.
js-widget/
├── src/
│ ├── scanner/ # Media detection
│ ├── ui/badge/ # Verification badges
│ ├── utils/ # Utilities
│ └── styles/ # CSS styles
├── config/ # Build configuration
├── test/ # Test pages
└── dist/ # Built files
MIT License
FAQs
TrustEngine content verification widget for websites
We found that @trust-engine/widget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.

Research
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.