
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.
@predicate/core
Advanced tools
The core package is a TypeScript client for directly interacting with the Predicate API. It handles:
Use this package when you need to integrate Predicate's policy evaluation capabilities into your backend services or when building custom frontend integrations without React.
npm install @predicate/core
import {PredicateClient, PredicateRequest} from '@predicate/core';
const predicateClient = new PredicateClient({
apiUrl: 'https://api.predicate.io/',
apiKey: process.env.PREDICATE_API_KEY!
});
if (!process.env.PREDICATE_API_KEY) {
console.error("Error: PREDICATE_API_KEY is not set.");
process.exit(1);
}
const request: PredicateRequest = {
from: '0xSenderAddress',
to: '0xPredicatedContractAddress',
data: '0xEncodedArguments',
msg_value: '0'
}
async function main() {
const evaluationResult = await predicateClient.evaluatePolicy(request);
console.log("Policy evaluation result:", evaluationResult);
}
main().catch((error) => {
console.error("Error evaluating policy:", error);
process.exit(1);
});
For detailed documentation, visit docs.predicate.io.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Core utilities for interacting with Predicate API
The npm package @predicate/core receives a total of 2 weekly downloads. As such, @predicate/core popularity was classified as not popular.
We found that @predicate/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
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.