this post was submitted on 19 Jul 2023
21 points (88.9% liked)

Selfhosted

39275 readers
200 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hello,

I'm looking for a unit converter written in JS / client-side only that I can self-host / add to a bunch of tools I already use.

I was looking for a suggestion to get something similar to the good old https://joshmadison.com/convert-for-windows/ but that runs a browser.

Thank you for your suggestions.

top 12 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (1 children)

That app was the best back in the day!

I’m not aware of a JS equivalent, but it’s something that could be written solo once you get the formulas worked out.

[–] [email protected] 2 points 1 year ago

back in the day? This post just made me aware of it, and it's great! Less clicks than modern systems and more customizable. And it's portable (one .exe).

This is now added to my portable apps collection!

[–] [email protected] 2 points 1 year ago (1 children)

https://github.com/tiffany352/rink-rs is pretty cool, but it’s in rust, so you’d have to make some Wasm bindings

[–] [email protected] 1 points 1 year ago (1 children)

o wait, there is a wasm build in the repo! You could probably host their interface too?

https://github.com/tiffany352/rink-rs/tree/master/web

[–] [email protected] 4 points 1 year ago
[–] [email protected] 1 points 1 year ago (1 children)

All you need is wine-wasm (if only it existed) and youre sorted!

[–] [email protected] 1 points 1 year ago

Yeah! Let's build that :D Maybe it will render UIs better than native wine? :D

[–] [email protected] 1 points 1 year ago

This library looks like it could be a good starting point - https://convert.js.org/

[–] [email protected] 1 points 1 year ago (1 children)

Cyperchef might not exactly what you are looking for, but it is selfhosted and has some conversion functions.

[–] [email protected] 1 points 1 year ago

That looks like a really neat util, and I can't wait to find a docker container to spin that up.

[–] [email protected] 1 points 1 year ago (1 children)

There are a number of unit conversion libraries in JavaScript. Building your own is not that hard. A simple SPA shall suffice.

[–] [email protected] 1 points 1 year ago

mathjs doesn't provide 1/10 of the units available in convert.exe. It is cool and I use it for other things but it simply doesn't cut it for this.