worldcredit-badge
v1.2.6
Published
World Credit Trust Badge SDK — embed verified trust scores in any website
Maintainers
Readme
World Credit Badge SDK — Web
Embed verified trust badges on any website. Zero dependencies.
Quick Start
<!-- Configure your API key -->
<script>
window.WorldCredit = { apiKey: "your-api-key" };
</script>
<!-- Look up by email (recommended for integrations) -->
<div data-email="[email protected]" data-style="pill"></div>
<!-- Or by World Credit handle -->
<div data-worldcredit="johndoe12" data-style="pill"></div>
<!-- Load SDK (before </body>) -->
<script src="https://world-credit.com/sdk/badge.js"></script>Or install via npm:
npm install worldcredit-badgeAPI key required. Get yours at world-credit.com/#pricing
Badge Styles
| Style | Use Case |
|-------|----------|
| inline | Compact, next to usernames |
| pill | Logo + score + tier capsule |
| card | Rich display for profile sidebars |
| shield | Minimal verified checkmark |
<div data-email="[email protected]" data-style="inline"></div>
<div data-email="[email protected]" data-style="pill"></div>
<div data-email="[email protected]" data-style="card"></div>
<div data-email="[email protected]" data-style="shield"></div>Options
| Attribute | Values | Default |
|-----------|--------|---------|
| data-email | User email (recommended) | — |
| data-worldcredit | World Credit handle | — |
| data-style | inline pill card shield | inline |
| data-theme | dark light | dark |
| data-size | sm md lg | md |
Tip: Use
data-emailfor B2B integrations — your platform already knows your users' emails.
Unverified Badges
When a user doesn't have a World Credit account, badges automatically render an unverified state. No special handling needed.
| Style | Unverified Behavior |
|-------|-------------------|
| inline | "Not Verified" in muted gray |
| pill | "—" score with "NOT VERIFIED" tag |
| card | "Not Verified" with "GET VERIFIED →" CTA |
| shield | "?" instead of checkmark |
Trust Tiers
| Tier | Score | Color |
|------|-------|-------|
| Bronze | 1 – 19 | #CD7F32 |
| Silver | 20 – 49 | #C0C0C0 |
| Gold | 50 – 79 | #FFD700 |
| Platinum | 80 – 100 | #00FFC8 |
Other Platforms
- iOS — Swift Package Manager
- Android — JitPack
- Flutter — pub.dev: worldcredit_badge
Links
License
MIT — © 2026 World Credit Inc.
