Archive post
π **Hilariously Epic: My Misadventures Building an Open Source Hive Login Package!** ππ»
β’ sagarkothari88
Follow my emoji-filled journey building an open-source Hive login package β with memes, open source vibes & UI upgrades
### π **Hey Hive Legends!**
Hope you all had an *awesome* weekend! π In my last post, I shared the woes of integrating aioha into our project. TL;DR: it was a bumpy ride! Soβin classic developer fashionβI decided to cook up my **own** package... just for fun (and the memes). Today, Iβm serving you all the juicy details π plus my blunders, breakthroughs, and a sprinkle of open source goodness!
---
### π **Stage 1: Creating an Open Source Repo**

First up, big moves: public repo time! Dashed to GitHub and birthed a shiny new home for my ideas.
---
### β‘οΈ **Stage 2: Project Kickoff with Vite**

Next stop: project scaffolding with Viteβthe real MVP. Seriously, Vite + ReactJS + typescript = productivity BOOST! πͺ
---
### π¦ **Stage 3: The Essentials β Package Install Party**
Packages I embraced in my project:
- `"hive-auth-wrapper": "^1.0.0"`,
- `"keychain-sdk": "^0.9.4"`,
- `"buffer": "^6.0.3"`,
- `"tailwindcss": "^4.1.12"`,
- `"@tailwindcss/vite": "^4.1.12"`,
**Why? Curious? Hereβs the scoop:**
- `hive-auth-wrapper`: π HiveAuth login power!
- `keychain-sdk`: πͺ Unlocks HiveKeychain in-app.
- `@esbuild-plugins/node-globals-polyfill`, `@esbuild-plugins/node-modules-polyfill`, `buffer`: Make Keychain SDK play nice with React.
---
### π¨ **Stage 4: Let's Build That Login-UI**

Crafted a *fancy* modal: avatar? βοΈ Username field? βοΈ Plenty of buttons? βοΈ Version 1 felt like assembling IKEA furniture... without instructions! πͺπ
---
### π― **Stage 5: UI Evolution β Login Options Arrive**

Iteration 2: Dropped in login options galore:
- Keychain
- HiveAuth
- Private posting key
FYI: NON-functional buttons at this stage. UI firstβlogic after! π€
---
### π± **Stage 6: Iteration 3 β Icons & Mobile Friendliness**

Added icons before each login option, re-jigged buttons, andβvoilΓ βmobile-ready! Because, letβs be honest, we all code from our phones at some point. π€³
---
### π **Stage 7: Iteration 4 β Private Key UI & State Chaos**

Added UI for βlogin with private posting keyβ. But hereβs a meme to sum up the struggle:

Managing React state? More like herding cats! π
So many components:
- Username field (now with *avatar action*)
- Password field (plus key-image avatar)
- Login options (icons + radio group)
- Parent managing ALL state
- Child hustling hard to update stats
React newbies, I see you. Solidarity. π€
---
### π **Open Source FTW!**

Everything here? 100% open source.
Check it out: [https://github.com/sag333ar/hive-login-react](https://github.com/sag333ar/hive-login-react)
Drop your feedback. Roast my UI. I dare you! π
---
### πͺ **More Power to the Hive!**

- To @keychain team: π
- To @hiveauth team: π‘οΈ
- To *all* Hive community members: π€
- To Hive blockchainβthe moon and beyond! π
**Hive on, fam. Drop your thoughts, code critiques, memes, and suggestions below! πβ¨**
---
### π Final Note
- I asked perplexity to help optimize this post to make it more readable and viewer-friendly.
- Here is the link where you can find both original content & improvements made by AI
- https://www.perplexity.ai/search/296f3d7e-fb54-4509-af6b-d267bd649494
---
### π My Contributions to β¦οΈ Hive Ecosystem
| Contribution | To | Hive | Ecosystem |
|--------------|----|------|-----------|
| Hive Witness Node | Hive API Node (in progress) | 3Speak Video Encoder Node Operator (highest number of nodes) | 3Speak Mobile App Developer |
| 3Speak Podcast App Developer | 3Speak Shorts App Developer | 3Speak Support & Maintenance Team | [Distriator Developer](https://distriator.com/) |
| [CheckinWithXYZ](https://checkinwith.xyz/) | [Hive Inbox](https://hive-inbox.the-hive-mobile.app/) | [HiFind](https://hifind.the-hive-mobile.app/) | [Hive Donate App](https://donate.the-hive-mobile.app/) |
| Contributed to HiveAuth Mobile App | Ecency β 3Speak Integration | Ecency β InLeo Integration | Ecency β Actifit Integration |
| [Hive Stats App](https://stats.the-hive-mobile.app/) | [Vote for Witness App](https://witness.the-hive-mobile.app/) | [HiveFlutterKit](https://hiveflutterkit.sagarkothari88.one/docs/intro) | [New 3Speak App](https://3speak.sagarkothari88.one/#/?tab=home) |
---
### π Support Back
β€οΈ **Appreciate my work? Consider supporting @threespeak & @sagarkothari88!** β€οΈ
| Vote | For | Witness |
|------|-----|---------|
| [](https://witness.the-hive-mobile.app/#/witnesses/@sagarkothari88) | [sagarkothari88](https://witness.the-hive-mobile.app/#/witnesses/@sagarkothari88) | @sagarkothari88 |
| [](https://witness.the-hive-mobile.app/#/witnesses/@threespeak) | [threespeak](https://witness.the-hive-mobile.app/#/witnesses/@threespeak) | @threespeak |
---