craigbeck.lab67.me

Posts in "libraries"

georgeguimaraes/arcana

Embeddable RAG library for Elixir/Phoenix with agentic pipelines and dashboard.

This looks like a really well-thought-out approach to adding RAG capabilities to Phoenix apps. The three-function API (ingest, search, ask) keeps things simple, but it also supports more advanced agentic pipelines with query expansion, multi-hop reasoning, and self-correction, with built-in LiveDashboard integration and swappable backends (pgvector, Bumblebee for local embeddings)

Effection: Structured Concurrency for JavaScript

Structured Concurrency and Effects for JavaScript. Stop worrying about asynchronous bugs and memory leaks. Effection gives you leak-proof, composable operations with the structured concurrency guarantees you didn’t know you needed.

Effection takes a different angle on async JavaScript – instead of bolting cleanup and cancellation onto promises after the fact, it bakes structured concurrency in from the ground up. Every operation automatically cleans up after itself, including all child operations it spawned, so resource leaks become a thing of the past. The API feels familiar too – just regular let, const, try/catch/finally – no exotic abstractions to learn. Dependency-free and under 5KB gzipped, with first-class TypeScript support. The GitHub repo is worth a look.

Also see their post The Hearbreaking Inadequacy of AbortController for a great explianer of the type of problem Effection is solving.

react-spring

react-spring is a set of simple, spring-physics based primitives (as in building blocks) that should cover most of your UI related animation needs once plain CSS can’t cope any longer. Forget easings, durations, timeouts and so on as you fluidly move data from one state to another. This isn’t meant to solve each and every problem but rather to give you tools flexible enough to confidently cast ideas into moving interfaces.

Some really cool demos here and a good explanation another react animation library is needed

Streamich/libreact

Collection of useful React components

HOCs for inversion (similar to recompose HOC components) as well as a useful collection of Sensor components (Active, Idle, Size), and more…

Draft-js Pieces

Draft-js is a highly programmatic rich text editor created by facebook. But it’s not what you might expect. Draft-js is just the underpinnings, leaving everything, and I mean everything, else up to you. When you render an Editor you get a textbox. This is because facebook wanted rich text in a number of different contexts, like all that commenting crap they do. I don’t know.

A useful seven-part series introducing the essential components of Facebook’s Draft.js text editor.

Alexjc/neural-enhance

As seen on TV! What if you could increase the resolution of your photos using technology from CSI laboratories? Thanks to deep learning and #NeuralEnhance, it’s now possible to train a neural network to zoom in to your images at 2x or even 4x. You’ll get even better results by increasing the number of neurons or training with a dataset similar to your low resolution image.

I remember the scene from Blade Runner with Deckard “enhancing” a low quality photo to reveal details not visible in the original, so literally, science-ficiton in 1984. Cue ahead a couple of decades and I would have been complaining about the bullshit they pull in shows like CSI (if you could have got me to watch it) when it comes to this stuff. Now it’s real, and downloadable from Github, and available in a docker image…