A MySQL adapter for GunJS (Gun v0.x). Current version 0.0.5, pre-alpha status with unstable API and no test suite. Enables GunJS to persist data in MySQL by automatically creating and managing tables. Key differentiator: allows use of MySQL as a backend for GunJS instead of the default JSON file or LevelDB. Not recommended for production as the project is experimental and unmaintained (no recent updates). Release cadence: sporadic, no activity since 2017.
npm install gun-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation and basic setup of gun-mysql adapter with custom MySQL config.
Do not use in production. Contribute to stabilize or use alternative adapters like gun-level.
Consider migrating to gun-level or gun-mongo adapter.
Install mysql@2 explicitly: npm install mysql@2
Ensure require order: Gun, then gun-mysql, then new Gun()
Use with caution or implement custom backup.
Run: npm install mysql
Change server port: server.listen(3001) or kill the process using port 3000.
Ensure const Gun = require('gun') is before new Gun(...).