npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

netflix-clone-using-react-typescript-mui

v0.1.1

Published

<div align="center"> <a href="http://netflix-clone-with-tmdb-using-react-mui.vercel.app/"> <img src="./public/assets/netflix-logo.png" alt="Logo" width="100" height="32"> </a>

Downloads

2

Readme

Prerequests

  • Create an account if you don't have on TMDB. Because I use its free API to consume movie/tv data.
  • And then follow the documentation to create API Key
  • Finally, if you use v3 of TMDB API, create a file named .env, and copy and paste the content of .env.example. And then paste the API Key you just created.

Which features this project deal with

  • How to create and use Custom Hooks
  • How to use Context and its provider
  • How to use lazy and Suspense for Code-Splitting
  • How to use a new lazy feature of react-router to reduce bundle size.
  • How to use data loader of react-router, and how to use redux dispatch in the loader to fetch data before rendering component.
  • How to use Portal
  • How to use Fowarding Refs to make components reusuable
  • How to create and use HOC
  • How to customize default theme of MUI
  • How to use RTK
  • How to use RTK Query
  • How to customize default classname of MUI
  • Infinite Scrolling(using Intersection Observer API)
  • How to make awesome carousel using slick-carousel

Third Party libraries used except for React and RTK

Install with Docker

docker build --build-arg TMDB_V3_API_KEY=your_api_key_here -t netflix-clone .

docker run --name netflix-clone-website --rm -d -p 80:80 netflix-clone

Todo

  • Make the animation of video card portal more similar to Netflix.
  • Improve performance. I am using context and provider but all components subscribed to the context's value are re-rendered. These re-renders happen even if the part of the value is not used in render of the component. there are several ways to prevent the re-renders from these behaviours. In addition to them, there may be several performance issues.
  • Replace bundler(Vite) with Turbopack. Turbopack is introduced in Next.js conf recently. It's very fast but it's nor ready to use right now. it just support Next.js, and they plan to support all others as soon as possible. so if it's ready to use, replace Vite with Turbopack.
  • Add accessibilities for better UX.
  • Add Tests.