
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
noauth-connect
Advanced tools
Easy to use web component for NIP-46 Nostr authentication and event signing using Noauth. Visit Nostr Profile Manager for a reference implementation of this project or read below for full details.
CDN:
<script src="https://unpkg.com/noauth-connect/dist/noauth-connect.umd.js"></script>
npm:
npm install noauth-connect
<noauth-connect app-name="My App"></noauth-connect>
<script>
const widget = document.querySelector('noauth-connect');
widget.addEventListener('noauth-connected', (e) => {
const { bunkerUrl, pubkey } = e.detail;
localStorage.setItem('bunkerUrl', bunkerUrl);
// Use bunkerUrl for signing
});
</script>
Set these as HTML attributes:
<noauth-connect
app-name="Your App Name"
app-url="https://yourapp.com"
app-icon="https://yourapp.com/icon.png"
permissions="sign_event:1,sign_event:0,nip04_encrypt"
button-text="Connect"
button-color="#2563eb"
button-text-color="#ffffff"
theme="dark"
></noauth-connect>
Defaults:
app-name → "My App"app-url → current page originapp-icon → nonepermissions → "sign_event:1,sign_event:0"button-text → "Connect with Noauth"button-color → purple gradientbutton-text-color → whitetheme → "light"Permissions you can request:
sign_event:1 - Notes/postssign_event:0 - Profile updatessign_event:4 - Encrypted DMsnip04_encrypt / nip04_decrypt - NIP-04 encryptionnip44_encrypt / nip44_decrypt - NIP-44 encryption// User connected
widget.addEventListener('noauth-connected', (e) => {
// e.detail: { bunkerUrl, pubkey, relays }
});
// User disconnected
widget.addEventListener('noauth-disconnected', () => {});
// Error occurred
widget.addEventListener('noauth-error', (e) => {
// e.detail: { error, message }
});
// Widget ready
widget.addEventListener('noauth-ready', () => {});
widget.open() // Open connection flow
widget.disconnect() // Disconnect
widget.getConnection() // Get current connection or null
When someone clicks connect:
https://use.nsec.app/nostrconnect/<pubkey>?name=YourApp&url=https://yourapp.com&perms=sign_event:1&secret=xyz&relay=wss://relay.nsec.app
Save it and use it with your Nostr client library for signing. It works across sessions.
Works with any framework that supports web components.
React:
function App() {
const ref = useRef();
useEffect(() => {
const widget = ref.current;
const handleConnect = (e) => console.log(e.detail);
widget?.addEventListener('noauth-connected', handleConnect);
return () => widget?.removeEventListener('noauth-connected', handleConnect);
}, []);
return <noauth-connect ref={ref} app-name="My App" />;
}
Vue:
<template>
<noauth-connect ref="widget" @noauth-connected="handleConnect" />
</template>
<script setup>
import { ref } from 'vue';
const widget = ref(null);
const handleConnect = (e) => console.log(e.detail);
</script>
Use your own Noauth instance:
<noauth-connect backend-url="https://your-bunker.com"></noauth-connect>
Your backend needs to:
/nostrconnect/<pubkey>?name=...&url=...&perms=...&secret=...&relay=...git clone https://github.com/letdown2491/noauth-connect
cd noauth-connect
npm install
npm run dev # Development server at localhost:5173
npm run build # Build for production
FAQs
Embeddable web component for NIP-46 Nostr authentication via Noauth
We found that noauth-connect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.