server-only
npmv0.0.1This is a marker package to indicate that a module can only be used in Server Components.
Not recommended for new projects
No — server-only should not be adopted for new projects. Last published 1468 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 1468 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 611 B installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding server-only to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
server-only vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| server-onlythis page | 0 | 1 | MIT | 4 years ago |
| react | 152.8M | 82 | MIT | 1 day ago |
| react-dom | 143.7M | 47 | MIT | 1 day ago |
| react-style-singleton | 59.1M | 2 | MIT | 1 day ago |
| reselect | 44M | 1 | MIT | 1 day ago |
| next | 40.6M | 0 | MIT | 1 day ago |
Used by
Popular packages that depend on server-only.
Relationship graph
Dependencies (left) and dependents (right) of server-only.
Frequently installed together
Native navigation primitives for your React Native app.
Simple and complete React Native testing utilities that encourage good testing practices.
Declarative API exposing native platform touch and gesture system to React Native
React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.
More powerful alternative to Animated library for React Native.
The Expo SDK
Tools for making advanced Metro bundler features work
Error overlay for universal Expo apps.
React Native for Web
Escape RegExp special characters
React is a JavaScript library for building user interfaces.
React package for working with the DOM.
Release history
No releases in the last two years.
| Version | Published | Size | License |
|---|---|---|---|
| 0.0.1latest | 4 years ago | 611 B | MIT |
Overview
server-only is an npm package that this is a marker package to indicate that a module can only be used in Server Components. It has 1 known dependents in the graph. The latest version is 0.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need this is a marker package to indicate that a module can only be used in Server Components and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Zero runtime dependencies — minimal footprint.
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Keywords
Frequently asked questions
Should I use server-only?
No — server-only should not be adopted for new projects. Last published 1468 days ago.
How do I install server-only?
Run `npm install server-only` to add server-only to your npm project.
What license is server-only released under?
server-only is distributed under the MIT license.
How popular is server-only?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on server-only.
Is server-only still maintained?
The most recent release of server-only (v0.0.1) was published 4 years ago.
Does server-only run install scripts?
No. server-only does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.