Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@justweb3/widget
Advanced tools
The **@justweb3/widget** library offers a complete identity solution for dApps. In just a few minutes, you can start issuing ENS subnames, authenticating users with SIWENS, managing profiles securely, and preventing Sybil attacks through social verificati
The @justweb3/widget library offers a complete identity solution for dApps. In just a few minutes, you can start issuing ENS subnames, authenticating users with SIWENS, managing profiles securely, and preventing Sybil attacks through social verifications and Proof of Personhood. The widget also integrates seamlessly with the Admin Dashboard to provide analytics and community engagement tools.
For detailed documentation, visit the official JustaName Documentation.
The JustWeb3 Widget is designed to simplify identity management for dApps. It provides:
Install the widget with your preferred package manager:
bash
Copy code
npm install @justweb3/widget
You will also need additional dependencies:
bash
Copy code
npm install wagmi @rainbow-me/rainbowkit @tanstack/react-query
Below is a sample setup for Next.js or Vite projects. The widget works with RainbowKit or any other wallet provider like WalletConnect, Privy, or Web3Auth.
'use client';
import "@rainbow-me/rainbowkit/styles.css";
import '@justweb3/widget/styles.css';
import {
getDefaultConfig,
getDefaultWallets,
RainbowKitProvider,
} from "@rainbow-me/rainbowkit";
import { WagmiProvider } from "wagmi";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { JustWeb3Provider, JustWeb3Button } from "@justweb3/widget";
import { mainnet, sepolia } from "wagmi/chains";
const Providers = ({ children }) => {
const { wallets } = getDefaultWallets();
const config = getDefaultConfig({
appName: "Your dApp",
wallets,
chains: [mainnet, sepolia],
});
const justweb3Config = {
config: {
origin: "http://localhost:3000/",
domain: "localhost",
signInTtl: 86400000,
},
openOnWalletConnect: true,
allowedEns: "all",
logo: "",
ensDomains: [
{
ensDomain: "yourdomain.eth",
apiKey: "YOUR_API_KEY",
chainId: 1,
},
],
};
const queryClient = new QueryClient();
return (
<WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>
<RainbowKitProvider>
<JustWeb3Provider config={justweb3Config}>
{children}
</JustWeb3Provider>
</RainbowKitProvider>
</QueryClientProvider>
</WagmiProvider>
);
};
export default Providers;
const justweb3Config = {
config: {
origin: "http://localhost:3000/",
domain: "localhost",
signInTtl: 86400000,
},
openOnWalletConnect: true,
allowedEns: "all",
logo: "https://yourdomain.com/your-logo.png",
ensDomains: [
{
chainId: 1,
domain: 'your_ens_domain.eth',
apiKey: 'your-api-key' // Not recommended for production, use a backend server to protect your API key
}
],
backendUrl: 'https://your-backend-url.com', // Leave empty for same origin (e.g when using Next.js)
color: {
primary: 'hsl(216, 90%, 58%)', // Sky Blue
background: 'hsl(0, 0%, 100%)', // White
destructive: 'hsl(0, 100%, 50%)', // Red
},
};
The widget supports easy appearance customization to fit your dApp's branding.
const justweb3Config = {
color: {
primary: 'hsl(216, 90%, 58%)',
background: 'hsl(0, 0%, 100%)',
destructive: 'hsl(0, 100%, 50%)',
},
logo: 'https://yourdomain.com/logo.png',
};
The widget supports Ethereum Mainnet and Sepolia Testnet. Use public RPCs or provide custom URLs.
const justweb3Config = {
networks: [
{ chainId: 1, providerUrl: "YOUR_MAINNET_PROVIDER_URL" },
{ chainId: 11155111, providerUrl: "YOUR_SEPOLIA_PROVIDER_URL" },
],
};
If no custom provider is specified, the widget defaults to public RPC URLs.
This project is licensed under the MIT License. For more details, refer to the official JustaName Documentation.
FAQs
The **@justweb3/widget** library offers a complete identity solution for dApps. In just a few minutes, you can start issuing ENS subnames, authenticating users with SIWENS, managing profiles securely, and preventing Sybil attacks through social verificati
The npm package @justweb3/widget receives a total of 591 weekly downloads. As such, @justweb3/widget popularity was classified as not popular.
We found that @justweb3/widget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.