Skip to main content
Drop-in components let you show a teammate their training session for today, their verified measurement record, or real-time workout cues without building those screens from scratch. Each element loads a hosted frame from TechnicallyFit and receives the teammate’s token by postMessage, never in the URL.

Available elements

Sensitive measures never appear in embedded reads.

1. Load the developer embed script

Include /embeds/developer-v1.js on a page served from an origin registered in your app’s redirect URIs:
The frame only loads on origins registered for your client_id. Unregistered origins are refused with 403 and a strict Content-Security-Policy: frame-ancestors header.

2. Place an element and hand it a token

Never pass an organization API key (tf_live_... or tf_test_...) to a drop-in component. Organization keys belong on your server and are refused immediately inside the frame.

Attributes

  • client-id (required): your member app or self-registered app client_id.
  • theme (optional): light (default) or dark.
  • accent (optional): a 6-digit hex color (#rrggbb). The frame checks WCAG AA contrast (4.5:1) against the active theme surface and falls back to the default accent if contrast is too low.

Mobile web views

Mobile apps can show the same elements inside a web view whose origin matches a registered redirect URI.