
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
metanet-identity-react
Advanced tools
React components for resolving identity information on the MetaNet.
The code is hosted on GitHub and the package is available through NPM.
npm i metanet-identity-react
import React, { useState } from 'react'
import { IdentitySearchField, Identity } from 'metanet-identity-react'
const IdentityDisplay: React.FC = () => {
const [selectedIdentity, setSelectedIdentity] = useState<Identity | null>(null)
return (
<div>
<IdentitySearchField onIdentitySelected={(identity) => {
setSelectedIdentity(identity)
}}/>
{selectedIdentity && (
<div>
<h2>Selected Identity</h2>
<p>Name: {selectedIdentity.name}</p>
<p>Identity Key: {selectedIdentity.identityKey}</p>
</div>
)}
</div>
)
}
import { useIdentitySearch } from "metanet-identity-react"
const App = () => {
const {
identities,
isLoading,
setIsLoading,
inputValue,
setInputValue,
selectedIdentity,
setSelectedIdentity,
} = useIdentitySearch()
return (
<>
<div style={{ display: "flex", flexDirection: "column" }}>
<input
onChange={(e) => {
setInputValue(e, e.target.value)
}}
/>
{isLoading ? (
<p>Loading identities...</p>
) : (
<>
{inputValue !== "" && (
<>
{identities.map((identity, index) => {
return (
<button key={index}
onClick={(e) => {
setSelectedIdentity(e, identity)
}}
>
{identity.name}
</button>
)
})}
</>
)}
</>
)}
{selectedIdentity && (
<>
<h1>Selected Identity:</h1>
<p>{selectedIdentity.name}</p>
<img src={selectedIdentity.profilePhoto} width={64} />
<p style={{ wordWrap: "break-word" }}>
Identity Key: {selectedIdentity.identityKey}
</p>
</>
)}
</div>
</>
)
}
export default App
The license for the code in this repository is the Open BSV License.
FAQs
React components for resolving identity information on the MetaNet.
The npm package metanet-identity-react receives a total of 34 weekly downloads. As such, metanet-identity-react popularity was classified as not popular.
We found that metanet-identity-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.