THL Library
Programs, SDKs, and code you can pull straight into your own projects — pip-installable packages, embeddable engines, and open-source building blocks. Take what you need, wire it in, ship.
Packages in the THL Library
Convert
Change an image between PNG, JPEG, WebP and AVIF without uploading it anywhere.
The same tool through three doors: a page that runs on a canvas, a plain-english request to the assistant, and thl convert in a terminal. One spec describes the arguments, so all three take the same ones and cannot drift apart.
thl convert photo.jpg --format webp --quality 70
thehallucinatedlab
Every tool in the lab, as an ordinary Python method — and as a page you can open in a browser.
One spec describes each tool: its arguments, their bounds, and the words that mean it. The website builds its convert and its argument table from that spec, the assistant parses plain english against it, and this package validates against it. There is no second copy to fall out of date.
thl "convert photo.jpg to png" works, and it is rules rather than a model — instant, offline, and tested.
convert handles PNG, JPEG, WebP and AVIF, flattening transparency onto a colour you choose.
pip install thehallucinatedlab
More on the Shelf Soon
The Library grows as we extract the reusable parts of everything we build — packages, engines, and snippets designed to bolt straight onto your project.
Request a package