nonboard
v1.0.7
Published
A Nostr onboarding widget built with MithrilJS that helps users get started with Nostr.
Readme
Nonboard
A Nostr onboarding widget built with MithrilJS that helps users get started with Nostr.
Installation
npm install nonboard
# or
pnpm add nonboardUsage
Quick Start
import nb from './src/index'
const app = nb({
appUrl: window.origin,
appName: "Nonboard test",
appImage: "https://hbr.coracle.social/daa09e37ff8c2db52f0b905e24b647e00db770f2a590bd197d27a5808666a656.jpg",
onSignup: payload => console.log("signed up:", payload),
onLogin: payload => console.log("logged in:", payload),
onError: error => console.log("recevied error:", error),
onInfo: message => console.log("recevied info:", message),
})
app.mount(document.getElementById('#app'))
// Call app.destroy() when you're doneDevelopment
# Install dependencies
pnpm install
# Build the library
pnpm run build
# Development mode
pnpm run devLicense
MIT
