Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@scalar/api-client-react
Advanced tools
npm install @scalar/api-client-react
This package is compatible with React 19 and is untested on React 18. If you want guaranteed React 18 support please use
version 1.0.107
of this package.
First we need to add the provider, you should add it in the highest place you have a unique spec.
import { ApiClientModalProvider } from '@scalar/api-client-react'
import '@scalar/api-client-react/style.css'
;<ApiClientModalProvider
configuration={{
spec: {
url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.json',
},
}}>
{children}
</ApiClientModalProvider>
Then you can trigger it from anywhere inside of that provider by calling the useApiClientModal()
import { useApiClientModal } from '@scalar/api-client-react'
const client = useApiClientModal()
return (
<button
onClick={() => client?.open({ path: '/auth/token', method: 'get' })}>
Click me to open the Api Client
</button>
)
Check out the playground for a working example.
We are API nerds. You too? Let’s chat on Discord: https://discord.gg/scalar
The source code in this repository is licensed under MIT.
FAQs
the open source API testing client for react
The npm package @scalar/api-client-react receives a total of 966 weekly downloads. As such, @scalar/api-client-react popularity was classified as not popular.
We found that @scalar/api-client-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.