Overview
The API accepts query parameters to customize the rendered SVG sections. All parameters are optional, with sensible defaults.Parameters Reference
section
Specifies which section type to render.Valid Values:
top- Header section with navigation and statslink-resume- Resume link buttonlink-website- Website link buttonlink-linkedin- LinkedIn link buttonlink-facebook- Facebook link buttonlink-instagram- Instagram link buttonlink-twitter- Twitter link buttonfallback- Firefox compatibility section- (empty) - Main profile section (default)
theme
Controls the color scheme of the rendered section.Valid Values:
light- Light mode with dark text on light backgrounddark- Dark mode with light text on dark background
- Text:
#202020(black) - Background dots: White to black gradient (5 levels)
- Border:
rgba(32, 32, 32, 0.06)
- Text:
#FFFFFF(white) - Background dots: Dark gray to white gradient (5 levels)
- Border:
rgba(255, 255, 255, 0.06)
i
Index parameter for link sections to stagger animations.Purpose:Effect on Animations:
- Creates staggered fade-in effects for multiple links
- Adds variety to animation timing
- Calculates animation delay:
1s + (index × 1.2s)
- Any non-negative integer
- Typically
0through5for social links
i=0: Delay = 1.0si=1: Delay = 2.2si=2: Delay = 3.4si=3: Delay = 4.6s
link-* sections. Other sections ignore this parameter.Width and Height Handling
Dimensions are not configurable via parameters. Each section has fixed dimensions defined in the source code:Fixed Dimensions by Section
| Section | Width | Height |
|---|---|---|
top | 100% | 20px |
| Main (default) | 100% | 310px |
link-resume | 100px | 18px |
link-website | 100px | 18px |
link-linkedin | 100px | 18px |
link-facebook | 100px | 18px |
link-instagram | 100px | 20px |
link-twitter | 100px | 18px |
fallback | 420px | 180px |
< 550px: Mobile layout (6-column grid)550px - 700px: Medium layout> 700px: Large layout
Request Examples
Basic Request
Get the main section with default theme:Top Section (Dark Theme)
Social Link with Index
Multiple Parameters
Parameter Validation
Invalid Values
The API handles invalid parameters gracefully:- Invalid
section: Renders main section as fallback - Invalid
theme: Defaults tolight - Invalid
i: Converts to number, uses0if NaN
Missing Parameters
Advanced Usage
Combining Parameters
All parameters can be combined:Parameter Order
Parameter order doesn’t matter:URL Encoding
Special characters in parameters should be URL encoded:Implementation Details
Fromworker.ts:src/worker.ts:16:
Link Index Parsing
Fromworker.ts:src/worker.ts:26:
i parameter is converted to a number, defaulting to 0 if missing or invalid.
Parameter Summary
| Parameter | Type | Default | Required | Sections |
|---|---|---|---|---|
section | string | "" | No | All |
theme | "light" | "dark" | "light" | No | All |
i | number | 0 | No | link-* only |