🔒 "Backed by YC" Embeddable Widget

🛡️ Verification

This widget verifies that it's only displayed on official YC company domains. It fetches the YC companies database from https://yc-oss.github.io/api/companies/all.json (from the yc-oss/api GitHub repository) and validates the current domain against verified company websites.

📋 Note: The API in the repo only includes publicly launched companies with pages on the Y Combinator website. It uses the Algolia search index (updated daily via GitHub Actions) rather than scraping the YC website directly.

🚀 Quick Embed (Auto-Verified)

Add this single line to any YC company webpage:

<script src="https://yc-widget.pages.dev/yc-widget.js" data-style="badge"></script>

Widget will appear here (demo mode - verification disabled):

📦 The Verified Widget Script

Here's the embeddable JavaScript widget with domain verification:


            

⚙️ Configuration Options

Data Attributes:

  • data-style: "badge", "compact", "minimal", "card", "gradient"
  • data-company: Company name like "Stripe" or "OpenAI" (optional - auto-detected from domain)
  • data-theme: "light", "dark" (optional)
  • data-size: "small", "medium", "large" (optional)
  • data-force: "true" to bypass domain verification (dev only)

🔒 Security Features:

  • Fetches live YC companies database
  • Validates current domain against company websites
  • Auto-detects company info from domain
  • Caches verification results for performance

🎨 Verified Styles Demo

📝 Usage Examples

<!-- Auto-detect company from domain (recommended) -->
<script src="yc-widget.js" data-style="badge"></script>

<!-- Specify company by name -->
<script src="yc-widget.js" data-style="compact" data-company="Stripe"></script>

<!-- Development mode (bypasses verification) -->
<script src="yc-widget.js" data-style="card" data-force="true"></script>

<!-- Different themes and sizes -->
<script src="yc-widget.js" data-style="gradient" data-theme="dark" data-size="large"></script>

✨ Enhanced Features