▶ Hackathon project
§ Project file

Fedimint-Web

The permanent record for this hackathon project: write-up, links, team, tags, and prizes.
Submitted Bitcoin++ - ecash Edition
Browser lightning/nostr extension that leverages the fedimint web sdk.
The write-up

Inspiration

Thought about a good use case for the fedimint web sdk and came up with this. I figured it'd be cool to have a lightning browser extension that also supports ecash as well.

What it does

Exposes some essential APIs through the window such as window.nostr, window.webln, and a new one - window.fedimint. Provides handlers for each method that requires approval.

Also serves as a lightning wallet you can open by clicking on the extension icon.

How me built it

Blood, Sweat, Tears, other bodily fluids.

A night with two hours of sleep.

And Neovim, btw.

Challenges me ran into

Web SDK didn't work since it was attempting to run a web worker from a service worker, lacking lots of browser APIs.

Couldn't polyfill it.

I built what I could.

Accomplishments that me are proud of

A pretty polished UI scheme (in my opinion).

Learned how to make extensions and how to send messages back and forth between the browser and the extension.

Set a new record for staying up late at night.

What me learned

What a mess the javascript ecosystem is (again)

What service workers are and how they work.

What's next for Fedimint-Web

It would be a shame to trash a UI like this.

I say ship it soon.

Try it out