Developer Tool
Code to Image
Create beautiful code screenshots for Twitter, LinkedIn and GitHub. 8 themes, 5 fonts, one-click PNG.
Settings
Theme
Typography
Layout
index.ts
1// Fibonacci with memoization
2function fibonacci(n: number, memo: Record<number, number> = {}): number {
3 if (n in memo) return memo[n];
4 if (n <= 1) return n;
5 memo[n] = fibonacci(n - 1, memo) + fibonacci(n - 2, memo);
6 return memo[n];
7}
8
9console.log(fibonacci(10)); // 55
REST API
Generate code images programmatically — embed in CI pipelines, bots, or content systems
# POST /api/v1/code-image — returns Base64 PNG
curl -X POST https://tulz.org/api/v1/code-image \
-H "Content-Type: application/json" \
-d '{"code":"const x = 1;","language":"javascript","theme":"Dracula","fontSize":14,"padding":48,"lineNumbers":true}'
{ "imageBase64": "data:image/png;base64,..." }