
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.
splice-api-client
Advanced tools
Type-safe HTTP client for the Splice API, built with TypeScript and designed to work seamlessly with the @splice/api types.
npm install @splice/api-client
import { SpliceApiClient } from '@splice/api-client';
const client = new SpliceApiClient({
baseURL: 'http://localhost:3000',
jwt: 'your-jwt-token', // Optional
timeout: 30000, // Optional, defaults to 30s
retries: 3, // Optional, defaults to 3
});
// Create a new user
const { user, apiKey } = await client.users.createUser({
username: 'johndoe',
email: 'john@example.com'
});
// Revoke all API keys for the authenticated user
await client.users.revokeApiKeys();
import { ApiKeyType } from '@splice/api';
// Store an encrypted API key (returns secret for later retrieval)
const secret = await client.apiKeyStore.storeApiKey(
'bitwarden-access-token',
ApiKeyType.BITWARDEN,
'organization-id'
);
// Get all bank connections
const connections = await client.bankConnections.getUserBankConnections();
// Create a new bank connection
const newConnection = await client.bankConnections.createBankConnection({
bankId: 'bank-123',
alias: 'My Bank Account',
authDetailsUuid: 'auth-uuid-123'
});
// Get accounts for a connection
const accounts = await client.bankConnections.getBankConnectionAccounts(
'connection-id',
'secret-from-api-key-store'
);
// Get transactions with date filtering
const transactions = await client.bankConnections.getBankConnectionTransactions(
'connection-id',
'secret-from-api-key-store',
{
startDate: '2024-01-01',
endDate: '2024-12-31'
}
);
// Delete a connection
await client.bankConnections.deleteBankConnection('connection-id');
// Set JWT token for all clients
client.setJwt('new-jwt-token');
// Clear JWT token from all clients
client.clearJwt();
You can also use individual clients if you prefer:
import { UserClient, BankConnectionClient, ApiKeyStoreClient } from '@splice/api-client';
const userClient = new UserClient({ baseURL: 'http://localhost:3000' });
const bankClient = new BankConnectionClient({ baseURL: 'http://localhost:3000' });
The client throws HttpError instances for HTTP errors:
import { HttpError } from '@splice/api-client';
try {
await client.users.createUser({ username: 'existing-user' });
} catch (error) {
if (error instanceof HttpError) {
console.log('HTTP Status:', error.status);
console.log('Response:', error.response);
}
}
All methods are fully typed using interfaces from @splice/api:
import type { CreateUserRequest, BankConnectionResponse } from '@splice/api';
const request: CreateUserRequest = {
username: 'test',
email: 'test@example.com' // TypeScript will catch type errors
};
const connection: BankConnectionResponse = await client.bankConnections.createBankConnection(request);
@splice/apiX-Secret, X-Api-Key)FAQs
Type-safe HTTP client for Splice API
We found that splice-api-client 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.