![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@notifi-network/notifi-node
Advanced tools
@notifi-networks/notifi-node
Node SDK for Notifi APIs.
This SDK is intended for use with Servers who have obtained a SID / Secret pair from Notifi. Please reach out to us for help on Discord!
import {
NotifiClient,
NotifiEnvironment,
createAxiosInstance,
} from '@notifi-network/notifi-node';
import axios from 'axios';
const env: NotifiEnvironment = 'Production'; // Or 'Development'
const axiosInstance = createAxiosInstance(axios, env);
const client = new NotifiClient(axiosInstance);
import {
NotifiClient,
} from '@notifi-network/notifi-node';
const client: NotifiClient = getNotifiClient();
// Log in to obtain a token
const { token, expiry } = await client.logIn({ sid: MY_SID, secret: MY_SECRET });
// Use the token to create a tenant user
const userId = await client.createTenantUser(
token,
{
walletBlockchain: 'NEAR', // Or 'SOLANA'
walletPublicKey: 'juni-kim.near', // Or other address
},
);
await persistUserIdSomehow(userId);
// Use the token and the user ID to subscribe the user to Direct Push alerts
const alertObject = await client.createDirectPushAlert(
token,
{
userId,
emailAddresses: [...userEmails],
phoneNumbers: [...userPhoneNumbers], // Currently we only support US phone numbers e.g. '+1xxxAAAyyyy' (include +1)
}
);
await persistAlertIdSomehow(userId, alertObject.id);
import {
NotifiClient,
} from '@notifi-network/notifi-node';
const client: NotifiClient = getNotifiClient();
// Log in to obtain a token
const { token, expiry } = await client.logIn({ sid: MY_SID, secret: MY_SECRET });
// Use the token to send a message to anyone subscribed to that wallet
await client.sendDirectPush(token, {
key: randomUUID(), // Idempotency key, use the same value for each unique event
walletBlockchain: 'NEAR', // Or 'SOLANA'
walletPublicKey: 'juni-kim.near', // Or other address
message: 'Hello world',
});
FAQs
Server-initiated operations with Notifi
The npm package @notifi-network/notifi-node receives a total of 279 weekly downloads. As such, @notifi-network/notifi-node popularity was classified as not popular.
We found that @notifi-network/notifi-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.