
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.
fastintear
Advanced tools
Interact with FAST-INT-NEAR Protocol blockchain including transaction signing, utilities, and more.
[!WARNING] This package is an experimental fork of @fastnear/js-monorepo that has some minor package improvements (will make their way upstream) and exclusively uses INTEAR Wallet.
bun add fastintear
import { createNearClient } from "fastintear";
// Create isolated NEAR client instance
const nearClient = createNearClient({ networkId: "mainnet" });
// External state management (e.g., better-near-auth)
const externalClient = createNearClient({
networkId: "mainnet",
stateManager: myExternalStateManager,
callbacks: {
onStateChange: (state) => updateUI(state),
onConnect: (account) => showWelcome(account),
onDisconnect: () => showSignIn()
}
});
// Safe mode (memory-only state)
const safeClient = createNearClient({
networkId: "mainnet",
isolateState: true
});
// Sign in with contract for LAK signing
await nearClient.requestSignIn({ contractId: "your-contract.near" });
// Send transaction (uses LAK if conditions met, wallet popup otherwise)
await nearClient.sendTx({
receiverId: "your-contract.near",
actions: [
nearClient.actions.functionCall({
methodName: "your_method",
args: { key: "value" },
gas: "30000000000000",
deposit: "0"
})
]
});
// Listen for state changes
const unsubscribe = nearClient.subscribe((state) => {
console.log("State changed:", state);
});
// Listen for transaction updates
const unsubscribeTx = nearClient.onTx((txStatus) => {
console.log(`Transaction ${txStatus.txId}: ${txStatus.status}`);
});
// Sign out
await nearClient.signOut();
Benefits of createNearClient:
import * as near from "fastintear";
// or for specific imports with full type safety
import {
config,
requestSignIn,
sendTx,
actions,
createNearClient,
type Action,
type TxStatus
} from "fastintear";
// Configure network
near.config({ networkId: "mainnet" });
// Sign in with contract for LAK signing
await near.requestSignIn({ contractId: "your-contract.near" });
// Send transaction (uses LAK if conditions met, wallet popup otherwise)
await near.sendTx({
receiverId: "your-contract.near",
actions: [
near.actions.functionCall({
methodName: "your_method",
args: { key: "value" },
gas: "30000000000000",
deposit: "0"
})
]
});
// Sign out
await near.signOut();
<script src="https://cdn.jsdelivr.net/npm/fastintear/dist/umd/browser.global.js"></script>
<script>
// Global `near` object is now available
near.config({ networkId: "mainnet" });
// Also available: window.$$ = near.utils.convertUnit
const amount = $$`1 NEAR`; // "1000000000000000000000000"
</script>
Safe Mode for Static HTML:
<!-- Safe mode (memory-only state) -->
<script src="https://cdn.jsdelivr.net/npm/fastintear/dist/umd/browser.global.js?memory"></script>
<!-- Or use ?safe parameter -->
<script src="https://cdn.jsdelivr.net/npm/fastintear/dist/umd/browser.global.js?safe"></script>
isolateState: true in createNearClient or ?memory/?safe URL parameters for IIFEinterface ExternalStateManager {
getState(): Promise<WalletState | null>;
setState(state: WalletState): Promise<void>;
clearState(): Promise<void>;
}
const client = createNearClient({
networkId: "mainnet",
stateManager: myExternalStateManager
});
For comprehensive implementation details, API reference, and advanced usage patterns, see the LLM.txt file which contains detailed documentation designed for both developers and AI systems.
This package provides a complete, production-ready SDK for NEAR Protocol with browser-first design and INTEAR Wallet integration. The core functionality is stable and feature-complete.
Make sure to visit the project-level README for more information about the monorepo structure.
FAQs
Interact with FAST-INT-NEAR Protocol blockchain including transaction signing, utilities, and more.
The npm package fastintear receives a total of 64 weekly downloads. As such, fastintear popularity was classified as not popular.
We found that fastintear 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.