Socket
Book a DemoInstallSign in
Socket

@gun-vue/gun-es

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gun-vue/gun-es

ES version of GunJS Database

0.4.1240
latest
Source
npmnpm
Version published
Weekly downloads
84
58.49%
Maintainers
1
Weekly downloads
 
Created
Source

gun-es

Gun database ESM build

For use of GUN in <script type="module"></script> environments in browser or in ESM first bundlers like Vite.

How to install

Install via npm/pnpm/yarn/bun/deno.

pnpm i @gun-vue/gun-es

How to use

Import Gun and SEA as module and use them.

import { Gun, SEA } from "@gun-vue/gun-es";

const pair = await SEA.pair();
const gun = Gun();
gun.user().auth(pair);

Key derivation add-on

Original Gun SEA (Security Encryption Authorization) doesn't provide key derivation that coulld be used to deterministically generate key pairs from an arbitrary input. It may be different sources of entropy from just a string to a BIP39 mnemonic, WebAuthn credId, other keypair or just about anything - even an image. You can only generate a random key - this is very secure, but a little limiting.

Now we have a secure key derivation function for Gun. With it we can reliably generate keys from any given input. This opens many new ways for authentication and user creation. Try it!

import { Gun, SEA } from "@gun-vue/gun-es";
import derivePair from "@gun-vue/gun-es/derive";

const pair = await derivePair("password or another string", [
	"extra",
	"entropy",
	"sources",
]);
const gun = Gun();
gun.user().auth(pair);

FAQs

Package last updated on 07 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.