ai newsFr., 4. Dez.
EilmeldungAlibaba Releases Qwen4-35B-A3B: Open-Weight MoE Model With 1M Context

Building a 100% client-side AI signature generator (no backend, no uploads)

Most "signature generator" sites either slap a cursive font on your name, or upload your image to a server. I wanted neither: real pen strokes, and nothing ever leaving the browser. Here is how I built one that runs entirely client-side. Fonts don't look like signatures A font repeats the same glyp

dev.toDonnerstag 03:47 · 03.12.1 Min. Lesezeit
Bild: dev.to

Most "signature generator" sites either slap a cursive font on your name, or upload your image to a server. I wanted neither: real pen strokes, and nothing ever leaving the browser. Here is how I built one that runs entirely client-side.

A font repeats the same glyph every time — a dead giveaway. Real signatures are one or two continuous strokes with variable-width ink, connected letters, and a flourished initial and tail. So instead of a font I used a small recurrent neural network (Alex Graves' handwriting-synthesis model) that outputs pen offsets (dx, dy, pen-up) step by step.

const offsets = model. write ( name, { bias, style, seed } ); const line = offsetsToLine ( offsets ); // -> strokes of [x, y] points Enter fullscreen mode Exit fullscreen mode bias controls neatness, style picks one of ~80 handwriting styles, and seed makes a result reproducible. About 2.6 MB of weights load once into the browser.

Raw model output looks like neat handwriting, not a signature. Three passes fix that:

Everything renders to vector SVG, so export is a transparent-background SVG or PNG — no server round-trip.

You can try the finished tool for free (no signup, no watermark): RoodyTools AI Signature Generator. There is also a draw-and-practice pad and a bunch of other free client-side tools.

Happy to answer anything about the stroke model or the client-side setup in the comments.

Quelle: dev.to (dev.to). Original öffnen