Live data from Hacker News

Ask HN: What are some tools / libraries you built yourself?

news.ycombinator.com

301–310 of 617 posts

Re: Ask HN: What are some tools / libraries you built yourself?

#301
post #256

I built a safe PostgreSQL driver for node from scratch with zero dependencies in about 1200 lines. I did this mostly because of the plumbing required to make the goto node driver tolerable to work with. In the process I made it 4-5 times faster as well. https://github.com/porsager/postgres

Very nice! I'd ditch pg-promise in a heartbeat for something simpler. I kinda dislike the tagged template literal helpers magic. I'd be more comfortable with explicit references to substituted arguments. Though it seems like I can just use the unsafe api all the time for that. The rest of the API is very nice, .stream, .cursor, notify support, all that.

Thanks!

I'm curious - What's the reason you don't like the tagged template literal? It's those that give you implicit safe parameters and let's you avoid doing parameter counting when writing queries.

Re: Ask HN: What are some tools / libraries you built yourself?

#302

Open source spinoffs from Tarsnap: https://www.tarsnap.com/open-source.html scrypt: Because the world didn't have any strong password-based key derivation functions. spiped: Because using stunnel or ssh tunnelling to connect to servers is gross . kivaloo: Because I wanted a high performance KV store optimized for small values (e.g. 40 bytes) rather than larger "items" (each containing multiple key-value pairs) or "bl…

Did you also write bsdiff [1] or is that someone with a similar name?

[1] http://www.daemonology.net/bsdiff/

Re: Ask HN: What are some tools / libraries you built yourself?

#303
Something I call Event Stream Assistant. I found myself commonly having to code small utilities for message brokering management/assistance (over and over again)- for the simple things like: Flat File Processing, Flat n' Sort, Single State, Single State Merge, CnC (CLI for managing (SAS) ESP projects). Logic Engine (basic logical engine / schema interpreter) Pika (AMQP), MQTT wrappers, and Websocket Async services...

Some of these items are in production environments. I plan on releasing it open source (fully) once I get around to it. It's really useful.

Re: Ask HN: What are some tools / libraries you built yourself?

#304
Passport Reader API for on device scanning and verifying passports. The idea was to let people do touchless on boarding for their users.

Some cool RFID cryptography and some machine learning that had to be done on device (privacy and security reasons).

passportreader.app/

Pleased with the service and how it is so far.

Re: Ask HN: What are some tools / libraries you built yourself?

#307
I made react-guitar, a beautiful and accessible guitar component for React:

https://react-guitar.com

It started as a guitar fretboard exploration tool that did not survive, but I ended up publishing it as a reusable component.

I also made Creepyface, a JavaScript library to make your face look at the pointer:

https://creepyface.io

I originally developed this to use it in my resume, and then ended up building a site for it and a plugin system to make faces even dance.

Re: Ask HN: What are some tools / libraries you built yourself?

#308
I needed a way to embed arbitrary strings in URLs, as readably as possible. I thought "hey, isn't that what Punycode does?" It turns out, no: Punycode only works for embedding non-ASCII text in URLs, it does not turn ASCII into valid URLs.

So I made my own encoding, and called it Dashycode:

https://github.com/smogon/pokemon-showdown/blob/master/lib/D...

Re: Ask HN: What are some tools / libraries you built yourself?

#309
I build a ncurses distributed CRM system (that also have a web frontend). I use it for my consult business, with invoicing, event logging, todo lists, projects and so on.

I love a quick, keyboard driven application and I also have good codebase to use as a testing ground for CI/CD, code analysis etc.

Two weeks ago I actually got my first customer buying a license for it, after being in development for 9 years!

Re: Ask HN: What are some tools / libraries you built yourself?

#310
Quite some time ago, I built `j2pp` to be a general text file preprocessor, à la m4 or cpp but using Jinja2 syntax: https://github.com/riccardomurri/j2pp (being written in Python seriously hinders its deployment, though)

Another tool that I wrote (and have used quite a lot) is ElastiCluster: https://elasticluster.readthedocs.io/ It's a CLI tool to deploy compute clusters (of different types (well, it's basically a large collection of Ansible playbooks with a Python wrapper), but mostly focused on batch-queueing systems) on IaaS clouds. There's now multiple tools for doing the same but I think this one is still one of the few (if not unique) to be able to deploy multiple types of clusters on multiple clouds.

Post reply on HN