Skip to content

publicity: embeddable leaderboard widget — iframe at /embed/leaderboard for blogs + benchmarks aggregators #186

@reacher-z

Description

@reacher-z

Problem

Bloggers, HN posters, and benchmark-aggregator sites (Papers With Code, awesome-* lists, HF tags) can't easily show ClawBench's current ranking — they can only screenshot or link out. Static screenshots go stale; outbound links lose readers.

Proposal

A frameable, mobile-friendly /embed/leaderboard route:

  • Stripped-down version of the V2 Snapshot table — top 10 rows, no nav, no footer, no Quick Start
  • Auto-resizes via iframe-resizer (existing pattern in the HF Space)
  • X-Frame-Options: ALLOWALL (or remove) so cross-origin embeds work
  • Light + dark mode detection via prefers-color-scheme
  • Compact attribution: "Live leaderboard · claw-bench.com" with a click → main leaderboard
  • Query params: ?corpus=v1|v2 (default v2), ?rows=5|10|20 (default 10), ?theme=light|dark|auto

Suggested adopter snippet

<iframe src="https://claw-bench.com/embed/leaderboard?corpus=v2&rows=10"
        width="100%" height="540" frameborder="0"
        loading="lazy" referrerpolicy="no-referrer-when-downgrade"
        title="ClawBench V2 leaderboard">
</iframe>

Acceptance

  • /embed/leaderboard renders without nav/footer/CTAs — table + tiny attribution only
  • Works inside <iframe> cross-origin (no X-Frame-Options: SAMEORIGIN)
  • Mobile viewport ≤ 480px: still readable, no horizontal scroll
  • Embed snippet documented in /press (issue publicity: add a hero demo video/gif on /home (5–10s trace replay) #181) and in README under "For aggregators"

Why now

Lower the friction for the next blog post / aggregator listing to show us instead of link-out. Distribution > polish at this stage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions