Hi all,
just wanted to share my latest project nuxt-surrealdb.
For those that don't know it SurrealDB is a multi-modal Database that can also be used as a Backend and exposed directly the web.
Supports separating Databases per Namespaces and has row-level auth support, along side with support to futures (values that get elaborated upon select), Graph relationships, live record updates, functions and Vectors.
Some of the features already available in the module:
- 🚀 Custom built-in
$surrealFetchanduseSurrealFetch(based on$fetchanduseFetchrespectively). - 📦 Custom Database Presets, to be able to use multiple Databases on a per-function/composable basis.
- ⚡️ Built-in support for RPC endpoint via
$surrealRPCanduseSurrealRPC. - 🏗️ Built-in Nuxt server
useSurrealRPCutil and server-side private host/auth for private network communication with SurrealDB. - 💡 Each RPC method is mapped to a
useSurrealDBexported function. - 🌟 Built-in support for Websocket communication with RPC methods using the
useSurrealWScomposable.
The official SDK is quite well done, but I wanted this module to take advantage of as many Nuxt features as possible, so I decided to start from zero.
I hope to be useful in building some nice projects!