Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-streaming-availability
Advanced tools
A React component library to display streaming availability data for movies and TV shows including deep links
Streaming Availability React Components is a set of React components that allow you to display streaming availability information for movies and TV shows; with posters and deep links to streaming services.
It uses Streaming Availability API to fetch the data.
It is designed to be used in React applications with any framework that supports "use server" directive such as Next.js.
First, you need an API key to use the Streaming Availability React Components. It's free to get it without any credit card information.
To get one, please follow the instructions in the Authorization Guide.
Once you have an API key,
you need to add it as an environment variable called STREAMING_AVAILABILITY_API_KEY
.
If you are using Next.js, you can create a .env
file in the root of the project
and add your API key as follows (replace <your-api-key>
with your
actual API key):
STREAMING_AVAILABILITY_API_KEY=<your-api-key>
Then, install the package:
npm install react-streaming-availability
The Row
component displays a row of movies or TV shows.
import { Row, newTopShowsSource } from 'react-streaming-availability';
export default function MyComponent() {
return (
<Row
title="Netflix US Top 10 Series"
posterType="vertical"
source={newTopShowsSource({
country: "us",
showType: "series",
service: "netflix",
})}
/>
);
}
The Grid
component displays a grid of movies or TV shows.
import { Grid, newFilteredSearchSource } from 'react-streaming-availability';
export default function MyComponent() {
return (
<Grid
source={newFilteredSearchSource({
country: "us",
orderBy: "popularity_1year",
orderDirection: "desc",
limit: 100,
})}
/>
);
}
You can find a detailed guide here: https://docs.movieofthenight.com/guide/widget
FAQs
A React component library to display streaming availability data for movies and TV shows including deep links
The npm package react-streaming-availability receives a total of 8 weekly downloads. As such, react-streaming-availability popularity was classified as not popular.
We found that react-streaming-availability 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.