Anton Lavrenov

2.8K posts

Anton Lavrenov banner
Anton Lavrenov

Anton Lavrenov

@lavrton

Making Design Editor SDK https://t.co/fqol0vuiqa. Maintaining https://t.co/ZReblIxvVC for many years.

Katılım Ekim 2010
112 Takip Edilen4.5K Takipçiler
Sabitlenmiş Tweet
Anton Lavrenov
Anton Lavrenov@lavrton·
While text rendering is hot on X. 🚀 I built render-tag: the fastest way to draw HTML rich text on canvas. Pure 2D API, no SVG/foreignObject workarounds. 5x faster than the SVG approach, even more with large fonts. Built this to solve my biggest pain point working on a web design editor. Building a canvas app? Take a look!
English
4
14
151
12.7K
Anton Lavrenov
Anton Lavrenov@lavrton·
Thinking about adding deep pdf editing to polotno. honestly have no idea what the market looks like. Anyone here building something that would actually need a pdf editor SDK?
English
0
0
0
136
Anton Lavrenov
Anton Lavrenov@lavrton·
Looks like markdown is the wrong format for llm research projects. I am doing several projects with claude cowork: taxes, health questions, some work-related. Started with heavy markdown structure. But it's hard to read! every line same visual weight. I can't see what's important. HTML dashboards are much better: colors, real tables, nice layout, tags, visualizations, some js to make it even nicer. I noticed I don't update markdown myself anyway. claude does. Markdown's "easy to read" is not a feature any more.
English
0
0
1
174
Anton Lavrenov
Anton Lavrenov@lavrton·
Interesting. I tried the same logic for design generation in Polotno, instead of our JSON schema I asked the LLM to output SVG, assuming it has seen way more SVG than our custom format. The SVGs came out uglier than the JSON. Did not expect that. HTML is next I guess.
Joshua Xu@joshua_xu_

Great question (and I'm also very pro-HTML). It's not just the build step complexity, though that matters. The real reasons are agent ergonomics and renderability. LLMs already think in HTML. They've trained on massive amounts of web code: DOM, CSS, animations, CodePen patterns. React + Remotion is a tiny slice of training data. HTML lets agents produce better visuals, faster. Less framework tax. With React/Remotion, the agent burns tokens fighting hooks, lifecycle rules, forbidden patterns, project structure. Raw HTML + GSAP, just describe the scene and go. One file in, video out. No package.json, no bundler, no composition setup. Fewer moving parts = fewer random failures in agentic workflows. Anything the browser renders, we render. Chrome can handle it, we capture it. Vanilla Three.js, shader canvases, random DOM libraries, weird web tricks. All stuff that feels awkward in a React-first world. HTML is both the render layer and the editable source. Same DOM you see is what you edit. Makes building a real visual editor (selection, drag & drop, property panels, timeline) natural, exactly like Paper . Design does it. With React, the source of truth is code + build tooling. Round-tripping through a visual editor gets painful fast. TL;DR: HTML fits agents and real editing workflows way better.

English
1
0
2
496
Anton Lavrenov
Anton Lavrenov@lavrton·
First thing I do in any new claude project (code or cowork): ask it to NEVER use memory and force claude.md (or similar) files. I have no idea how to control or debug memory. Everything should be in files. so I can find how decisions are made and change them.
English
0
0
4
389
tldraw
tldraw@tldraw·
tldraw. off the wall
English
3
5
91
10.5K
Anton Lavrenov
Anton Lavrenov@lavrton·
Around 12 years ago a client asked me to hook browser back/forward into undo/redo functions for a spa graphical app. I think I pushed back. felt very wrong to me. Today google officially calls this spam
Anton Lavrenov tweet media
English
0
0
39
3.3K
Anton Lavrenov
Anton Lavrenov@lavrton·
I was walking on a tourist street in Medellin (Colombia). half the paintings for sale are AI generated. catched one with a typo! So I guess if someone is selling this, then someone is buying this.
Anton Lavrenov tweet media
English
1
0
1
310
Anton Lavrenov
Anton Lavrenov@lavrton·
Added an extra check to konva.js: if bug is detected - do a workaround with buffer canvas rendering
English
0
0
1
112
Anton Lavrenov
Anton Lavrenov@lavrton·
Just today I catched the bug with 2d canvas text rendering: - set globalAlpha to 0 (yeah, fully transparent) - set some shadows - try to render text with a fill What normal browsers will render? Nothing (because of alpha). BUT NOT SAFARI! IT SHOWS THE TEXT!
English
1
0
1
108
Anton Lavrenov
Anton Lavrenov@lavrton·
html-in-canvas is so promising. Can't wait when in 15 years Safari will support it!
English
7
20
340
22.1K
Anton Lavrenov
Anton Lavrenov@lavrton·
Do you fix typos in your prompts? Or just randomly continue?
English
1
0
1
104
Vanilagy
Vanilagy@vanilagy·
Who needs tests when you can just give your git diff to Gemini
Vanilagy tweet media
English
2
0
8
957
Anton Lavrenov
Anton Lavrenov@lavrton·
It is all very slow. 150 tests are running more then a hour. So it is not good old automated testing. More like "unfrequent human-like testing". If it found something - create real automatic test for that.
English
0
0
0
63
Anton Lavrenov
Anton Lavrenov@lavrton·
So I build a claude skill that is calling many sub-agents to do isolated testing. Better context usage, more strict rules for sub-agents, so they never do anything that human wouldn't.
English
1
0
0
100
Anton Lavrenov
Anton Lavrenov@lavrton·
It took me a couple of days to polish ai-agentic testing of the app. I asked to open the app and run some tests cases. At first it worked good. Agent was testing and confirming that test is passed or failed. But over time, the testing quality dropped. Failed tests are passed, some crazy hack implemented to make test pass no matter what (like DOM mutation or dirrect js calling).
English
2
0
2
261