I created a fork of GunDB and rewrote it in TypeScript using Vibe Code
Israel Martins has created a fork of GunDB, rewriting it in TypeScript and introducing a new graph database called Garfo. This modernized version retains the familiar GUN graph API while incorporating significant improvements for the JavaScript ecosystem. Key features include support for Nostr transport, enhanced storage options, and a focus on browser-first applications.
- ▪Garfo is designed to fill the gaps left by GUN.js, adapting to the evolving JavaScript ecosystem.
- ▪It includes features like optional Nostr transport for peer-to-peer communication and various storage options such as IndexedDB.
- ▪The project is aimed at local-first and decentralized applications, with practical use cases like peer-to-peer chat and collaborative tools.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3511921) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Israel Martins Posted on May 30 I created a fork of GunDB and rewrote it in TypeScript using Vibe Code #database #showdev #typescript #vibecoding Inspired by a similar project called GenosDB and Cloudflare’s initiative to rebuild Next.js, I decided to rebuild GunDB with a modern coding style, incorporating improvements and addressing shortcomings in the original technology.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).