
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@koj/svelte-api-client
Advanced tools
This repository contains Koj's Fetch API-powered client for interacting with our API. It is very opinionated, so usage is only recommended in Koj's Svelte projects.
| Status | |
|---|---|
| Build | |
| Health | |
| PRs |
can based on logged in scopesInstall the dependency from npm:
npm install @koj/svelte-api-client
Import the api method and use it like so:
import { api } from "@koj/svelte-api-client";
import type { User } from "@koj/types";
let user: User | undefined = undefined;
const getUser = async () => {
user = await api<User>({
method: "GET",
url: "/users/12345",
onCachedResponse: (data) => (user = data),
});
};
In the above example, the api method expects a type parameter which determines its response time. Note that JSON responses are automatically parsed. The onCachedResponse function is used to get a "faster" responses from a client side-stored cache, using the stale-while-revalidate pattern.
An open source project by Koj.
Furnish your home in style, for as low as CHF175/month →
FAQs
Koj's Fetch-powered API client for webapps
The npm package @koj/svelte-api-client receives a total of 0 weekly downloads. As such, @koj/svelte-api-client popularity was classified as not popular.
We found that @koj/svelte-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.