
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.
@simple-api/react-native
Advanced tools
The mobile-optimized adapter for simple-api.
@simple-api/react-native is a specialized wrapper around @simple-api/react, tuned for the mobile environment. It ensures that your API engine performs optimally on iOS and Android devices, focusing on battery efficiency, connectivity resilience, and shared logic.
npm install @simple-api/react-native @simple-api/core @tanstack/react-query
// shared/api.ts
import { createApi } from "@simple-api/core";
export const apiDefinition = createApi({
baseUrl: "https://api.myapp.com",
services: {
posts: {
list: { method: "GET", path: "/posts" },
create: { method: "POST", path: "/posts" },
},
},
});
// hooks/useApi.ts
import { createReactAdapter } from "@simple-api/react-native";
import { apiDefinition } from "../shared/api";
export const useMobileApi = createReactAdapter(apiDefinition);
The React Native adapter includes a powerful createOfflineQueue utility for handling mutations when the device is disconnected.
import { createOfflineQueue } from "@simple-api/react-native";
const queue = createOfflineQueue({
onSuccess: (id, res) => console.log("Synced!", res),
maxRetries: 5,
});
// Add anytime. If online, it fires. If offline, it waits.
queue.add(() => api.posts.create({ body: { text: "Offline post" } }));
// Replay manually or on network event
queue.flush();
MIT © Elnatan Samuel
FAQs
React Native adapter for SimpleAPI Engine
We found that @simple-api/react-native 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.