# Dojo Jutsu: Web Components & Drop-In Embed SDK
Version: 1.0.0
Status: Production Ready
Architecture: Zero-Dependency Standard Web Components (CustomElementAPI) with Shadow DOM
# 1. Executive Overview
Martial arts academies running websites on WordPress, Squarespace, Webflow, Wix, or React/Next.js can embed real-time Dojo Jutsu data in under 2 minutes using standard HTML custom elements.
# Supported Embed Components:
<dojo-jutsu-schedule />: Live class schedule grid with day-of-week sorting, class duration, location names, and automatic time-slot layout.<dojo-jutsu-waiver />: Mobile-responsive electronic liability waiver and trial registration form. Submissions feed straight into the academy's prospective student pipeline.
# 2. Quick-Start Guide
Add the script tag to your site <head> or before the closing </body> tag:
HTML
<script src="https://cdn.dojojutsu.com/v1/embed.js" async></script>Then place your component anywhere on your page:
HTML
<!-- Live Schedule Embed -->
<dojo-jutsu-schedule
dojo-key="dj_pub_wakatake_a1b2c3d4e5f6"
theme="forest_green">
</dojo-jutsu-schedule># 3. Configuration Attributes
| Attribute | Required | Default | Description |
|---|---|---|---|
dojo-key | Yes | — | Publishable Client Key (dj_pub_<tenant>_<hash>) generated in Dojo Admin Console. |
theme | No | forest_green | Visual accent theme: forest_green, crimson, indigo, or obsidian_dark. |
gateway-url | No | Production Gateway | Custom API gateway URL for staging or private enterprise deployments. |
# 4. Security & CORS Whitelisting Armor
All embed requests pass through the Dojo Jutsu CORS Origin Whitelist Gate:
- Your website domain (e.g.
https://wakatakekan.com) must be registered under Dojo Settings > Allowed Website Domains. - Requests with unknown or forged
OriginorRefererheaders are rejected with HTTP 403 Forbidden. - Publishable keys (
dj_pub_...) possess read-only public scopes. They cannot query student contact details, phone numbers, or confidential pricing.