A shortcut drawn as 3D keycaps on a keyboard deck with "+" between them, the action as the headline and a tip below.
These are real renders from the API with the example values in the table below. Switch the size above: the same template lays itself out for all 6 sizes — send size or sizes with the request.
For SaaS products, dev tools and docs posting a tip per shortcut. Known keys get the platform's glyph and name (Cmd becomes ⌘ command on macOS and Ctrl on Windows and Linux; Shift, Option, Alt, Enter, Tab, Esc and the arrows too); any other key is printed as typed. Caps grow or shrink with the number of keys, a chord of more than five ends in a "+N" cap, and with no keys two empty caps stand in. Wide and square frames lay the keys in a row; vertical frames run them down the frame.
Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.
| Field | Type | Description | Example |
|---|---|---|---|
action |
text | What the shortcut does, as the headline. default: Shortcut | Open the command palette |
keys |
text |
Keys separated by ;, in order, e.g. Cmd;Shift;P. Modifier names like Cmd, Ctrl, Shift, Alt or Option become glyphs.
|
Cmd;Shift;P |
platform |
text | mac, windows or linux; sets the modifier glyphs and the chip at the top right. one of: mac | windows | linux default: mac | mac |
app |
text | Product name next to the logo. | Northwind Studio |
tip |
text | One or two sentences under the keys. | Jump to any template, render or setting without leaving the keyboard. |
logo |
image URL | Product logo, square. | https://example.com/images/logo-northwind.png |
accent |
colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. default: #38bdf8 | #38bdf8 |
theme |
dark | light | Colour scheme: dark or light. | — |
Use the slug as template. The response holds the URL of the finished PNG; ?wait=true keeps the connection open until it is ready.
curl -X POST "https://shareglint.com/v1/images?wait=true" \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"template": "keyboard-shortcut",
"modifications": {
"action": "Open the command palette",
"keys": "Cmd;Shift;P",
"platform": "mac",
"app": "Northwind Studio",
"tip": "Jump to any template, render or setting without leaving the keyboard.",
"logo": "https://example.com/images/logo-northwind.png"
}
}'
For static sites, Webflow, Shopify and no-code tools: put the fields in the query string and sign it with your signing secret. The first request renders the image, every later one is a redirect to the cached file. How to compute the signature.
<meta property="og:image" content="https://shareglint.com/i/acc_YOUR_ACCOUNT_ID/keyboard-shortcut.png?action=Open%20the%20command%20palette&app=Northwind%20Studio&keys=Cmd%3BShift%3BP&platform=mac&tip=Jump%20to%20any%20template%2C%20render%20or%20setting%20without%20leaving%20the%20keyboard.&s=YOUR_SIGNATURE">
accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.
curl -X POST "https://shareglint.com/v1/templates/library/keyboard-shortcut/copy" \
-H "Authorization: Bearer sk_live_YOUR_KEY"