
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
nuxt-jsonapi
Advanced tools
Easy JSON:API client integration for Nuxt.js
Version 2.x and 3.x support Nuxt 3.x.
Version 1.x supports Nuxt 2.x
nuxt-jsonapi adds easy JSON:API client integration to Nuxt. It is a loose wrapper around the excellent Kitsu JSON:API client.
This module globally injects a $jsonApi instance you can use to access the client anywhere using this.$jsonApi (options API) or const { $jsonApi } = useNuxtApp() (composition API).
nuxt-jsonapi dependency to your projectnpm install nuxt-jsonapi
nuxt-jsonapi to the modules section of nuxt.config.js{
modules: [
// Simple usage
'nuxt-jsonapi',
// With options
[
'nuxt-jsonapi',
{
baseURL: 'http://www.example.com/api',
/* other module options */
},
],
]
}
jsonApi object to your nuxt.config.js to configure module options:export default {
modules: ['nuxt-jsonapi'],
jsonApi: {
baseURL: 'http://www.example.com/api',
/* other module options */
},
}
If you do not specify a baseURL option, a default /jsonapi URL will be used. This is almost certainly not what you want so be sure it is set correctly.
Refer to Kitsu's excellent documentation for all the feature's the client offers.
You can access the client with:
this.$jsonApi
Example:
export default defineNuxtComponent({
async asyncData({ $jsonApi }) {
const { data } = await $jsonApi.get('/article')
return {
articles: data,
}
},
})
const { $jsonApi } = useNuxtApp()
Example:
<script setup>
import { useNuxtApp, useAsyncData } from '#app'
const { $jsonApi } = useNuxtApp()
const { data: articles } = await useAsyncData(() => $jsonApi.get('/article'), {
transform: ({ data }) => data,
})
</script>
yarn install or npm installyarn dev or npm run devyarn test or npm run testnpm run dev:prepare to generate type stubs.npm run dev to start playground in development mode.Copyright (c) Patrick Cate
FAQs
Easy JSON:API client integration for Nuxt.js
The npm package nuxt-jsonapi receives a total of 125 weekly downloads. As such, nuxt-jsonapi popularity was classified as not popular.
We found that nuxt-jsonapi 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.