
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 1 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.