Live data from Hacker News

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

news.ycombinator.com

311–320 of 617 posts

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

#311
post #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/

Yes, that was also me. A very long time ago -- I wrote it in 2003 when I was at university and I've barely touched it in the past 15 years.

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

#312
post #206

I built an open source library/mini-framework to seamlessly integrate a Svelte (JS) frontend with a Crystal backend. It's really fun to build apps with this! https://nlh.me/projects/celestite Still very much a WIP, but it works. You can build your front-end in pure Svelte components and it supports server-side rendering, client-side hydration, and all that good stuff. I did this entirely to scratch my own itch - I lo…

Cool! I love working in both Crystal and Svelte. I'll definitely check it out.

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

#313
I made https://esyvite.com to solve the problem of giving hosts an easy way to let their audience add events to their calendars. With the rise of online events (meetups, friend hangout, live streams etc) I realized that hosts simply post the times on their social feeds but their audience has to do the hard work of remembering and tracking the times.

Made it simple enough such that it requires no account, no payment and no app. Developed using React, Typescript, Firebase. Credit to all the libraries that I could leverage to build this.

Feedback on esyvite.com welcome at vamsi dot narla at gmail dot com

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

#314
I built GRIT [1], originally for use in the Google Desktop project as a way to stop doing nightmare three-way merges of translated Windows resource files. It's been used in Chromium and various other projects since then to aid with i18n, and many other folks have contributed along the way. It is open source [2]

[1] https://www.chromium.org/developers/tools-we-use-in-chromium... [2] https://chromium.googlesource.com/chromium/src/tools/grit/

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

#315
I built something called Libmon (https://libmon.com/) to monetize programming libraries.

I had built one for the product I was working on, but I wasn't sure if I wanted to open source it yet and give it away just yet.

It lets you set call limits on function calls, and various counters within a library to have a "demo" period. I built it because I didn't want to stand up a service that I'd have to maintain.

Libmon handles providing tokens for customers. It integrates with Gumroad. So you just need to create a product page, drop in our library into yours and set your limits, and you're good to go.

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

#316
My first major Drupal project was for a local newspaper (now defunct… hopefully my site wasn't too big a factor in that) to which many writers were publishing articles, first to a "staging" site for sign-off to an editor, then to the live site. One of the many, many problems we ran into on that project (it was definitely a learning experience for all involved) is that the writers would link to other articles by finding the article on the staging site, copying the link, and then pasting that link into the article. When the article was published to the live site, that link was still linking to the staging site's URL which was inaccessible to the broader internet, so they were effectively broken links.

To fix this I wrote a Drupal "input filter" called Pathologic which basically found all internal links in content and tried to rewrite them to point to the same content on the "current" site (which would be the live site after the article was published there). Eventually, after feedback from others, it could do other tricks like rewrite absolute paths to relative ones and vice versa (so your paths could be relative in a web browser, but absolute when the content was published via RSS feed or email), make sure http:// vs https:// was sorted out, and so on - broadly speaking, its goal was to make sure that links to internal content were always correct in all circumstances, and except for a few bizarre edge cases (there were always bizarre edge cases, though I'm glad to say they got exceedingly bizarre as the project matured), it met that goal. It became quite popular in the Drupal ecosystem and was my most successful open source project by far in terms of the number of users.

Sadly, in recent years, I haven't been able to work with Drupal except for either small personal projects or projects that ended up failing before launch, so the code is now in disrepair and won't run well on current releases Drupal 8 or 9 if it runs at all. I'm hoping some day I'll be commissioned for a new Drupal project again and have the motivation to get it updated, but for now it has rotted. I'm still really proud of how many people it helped out in its heyday, though.

https://www.drupal.org/project/pathologic

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

#317
I recently wrote a library to abstract away the tedious aspects of WebRTC called Trystero:

Repo: https://github.com/dmotz/trystero

Demo: https://oxism.com/trystero/

The goal is to allow adding P2P/multiplayer to your web app in a few lines and no server setup.

While there are a few good abstraction libraries out there (this one builds on simple-peer), I felt the need the set up a server for matchmaking peers was too much friction for experiments and too centralized in the context of P2P apps. Trystero abstracts away the matchmaking aspect using BitTorrent, IPFS, or Firebase behind the scenes.

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

#318

I created Lua with C/C++/Java/Javascript syntax https://github.com/mingodad/ljs Also forked a scripting language https://github.com/mingodad/squilu and extended it to accept a pseudo C++/Java/CSharp/Typescript syntax to make easy to reuse code and have fast iteration when creating new functions (with it and minor changes I could get https://ssw.jku.at/Research/Projects/Coco/ parser to work for easy grammar developmen…

What in the world does with C/C++/Java/Javascript syntax mean?

Four different languages with four different syntaxes.

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

#319
- adhocify: I wanted to launch commands upon file system events, however without first configuring a daemon for that task. Therefore, I created adhocify: https://github.com/quitesimpleorg/adhocify

- qssb.h: A header library to make sandboxing applications on Linux more easier. Currently at an early stage though: https://github.com/quitesimpleorg/qssb.h The original aim was to make utilizing namespaces and seccomp easier without dealing with nuances. Currently working to get landlock in, then perhaps a CLI utility and test cases.

- raou: I found sudo too complex for the simple taks of switching users on a system. Given sudo also had some vulnerabilities in the past, I decided to write an alternative in Rust: https://gitea.quitesimple.org/crtxcr/raou

- qsni: https://github.com/quitesimpleorg/qsni At times I simply wanted to cut off a few applications from the network or to assign some specific firewall rules: https://github.com/quitesimpleorg/qsni

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

#320
I wrote a frontend template for NextJS because I was tired of having to set up everything every time I started a new project. It includes i18n, Storybook, a test suite, some VSCode defaults, linters for code and commit messages and a code formatter.

https://github.com/sbacic/frontend-template

Post reply on HN