
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.
nexus-react-core
Advanced tools
A comprehensive React toolkit with services, hooks, and Redux store management
A comprehensive React toolkit with services, hooks, and Redux store management for modern applications.
npm install nexus-react-core
Make sure you have the following peer dependencies installed:
npm install @reduxjs/toolkit react react-redux axios
For full functionality, you may also want:
# For DALL-E image generation
npm install openai
# For face detection
npm install @tensorflow/tfjs @tensorflow-models/blazeface
# For blockchain trading
npm install @solana/web3.js @solana/spl-token
# For WebSocket connections
npm install socket.io-client
import { initializeDGN } from "nexus-react-core";
initializeDGN({
apiBaseUrl: process.env.NEXT_PUBLIC_API_URL!,
wsUrl: process.env.NEXT_PUBLIC_WS_URL,
csrfEnabled: false,
});
import { Provider } from "react-redux";
import { store } from "nexus-react-core";
function App() {
return (
<Provider store={store}>
<YourApp />
</Provider>
);
}
import { apiCall, useIsMobile, useAppSelector } from "nexus-react-core";
function MyComponent() {
const isMobile = useIsMobile();
const user = useAppSelector((state) => state.user);
const fetchData = async () => {
const data = await apiCall("/api/data", "GET");
console.log(data);
};
return (
<div>
<h1>Welcome, {user.name}</h1>
<p>Device: {isMobile ? "Mobile" : "Desktop"}</p>
</div>
);
}
If you're migrating from an existing DGN Platform project:
Install the package: npm install nexus-react-core
Replace imports:
// Before
import { apiCall } from "@/hooks/apiCall";
import { useAppSelector } from "@/contexts/rootStore";
// After
import { apiCall, useAppSelector } from "nexus-react-core";
Initialize configuration as shown above
Remove local copies of services, hooks, and store files
# Install dependencies
npm install
# Build the package
npm run build
# Run linting
npm run lint
# Run tests
npm test
# Build and publish
npm run prepublishOnly
npm publish
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)MIT License - see LICENSE file for details.
FAQs
A comprehensive React toolkit with services, hooks, and Redux store management
We found that nexus-react-core 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.