{"library":"client-only","type":"library","category":null,"description":"The `client-only` package is a specialized marker module within the React Server Components (RSC) ecosystem, primarily used in frameworks like Next.js App Router. Its sole purpose is to indicate to the build system that a module and all its transitive dependencies are intended exclusively for client-side execution. It doesn't export any functions or values, acting purely as a side-effect import. When a module imports `client-only`, compatible bundlers and frameworks will enforce that this module is never included in a server bundle, providing build-time errors for misuse. This package, currently at version `0.0.1` and infrequently updated due to its static nature, complements `server-only` to clearly define server-client boundaries in a hybrid rendering environment. Its key differentiator is its explicit, declarative way of preventing accidental server-side imports of client-specific code, which helps avoid issues like 'window is not defined' errors during server rendering.","language":"javascript","status":"active","version":"0.0.1","tags":["javascript","react"],"last_verified":"Wed May 27","install":[{"cmd":"npm install client-only","imports":["import 'client-only';"]},{"cmd":"yarn add client-only","imports":[]},{"cmd":"pnpm add client-only","imports":[]}],"homepage":"https://reactjs.org/","github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/client-only","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/client-only/compatibility"}}