# @nextcloud/sharing

> Front-end utilities for Nextcloud files sharing

Latest version **0.4.0** (published 2026-02-10) · GPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @nextcloud/sharing
pnpm add @nextcloud/sharing
yarn add @nextcloud/sharing
bun add @nextcloud/sharing
```

## Health

**Score 70/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2026-02-10 |
| First published | 2021-08-18 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^20.0.0 \|\| ^22.0.0 \|\| ^24.0.0 |
| Dependencies | 2 |
| Unpacked size | 56.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3 |
| Author | Nextcloud GmbH and Nextcloud contributors |
| Maintainers | icewind1991, skjnldsv, christophwurst, juliushaertl, nickvergessen, artonge, gretadoci, mejo-, susnux |
| Keywords | nextcloud, sharing |

## Links

- npm: https://www.npmjs.com/package/@nextcloud/sharing
- Repository: https://github.com/nextcloud-libraries/nextcloud-sharing
- Homepage: https://github.com/nextcloud-libraries/nextcloud-sharing#readme
- Issues: https://github.com/nextcloud-libraries/nextcloud-sharing/issues
- npm.io page: https://npm.io/package/@nextcloud/sharing

## Dependencies (2)

- [is-svg](https://npm.io/package/is-svg.md) ^6.1.0
- [@nextcloud/initial-state](https://npm.io/package/@nextcloud/initial-state.md) ^3.0.0

## Recent versions

- 0.4.0 (latest) — 2026-02-10
- 1.0.0-beta.4 (next) — 2026-09-09
- 1.0.0-beta.3 — 2026-09-08
- 1.0.0-beta.2 — 2026-09-02
- 1.0.0-beta.1 — 2026-08-27
- 0.3.0 — 2025-09-05
- 0.2.5 — 2025-07-01
- 0.2.4 — 2024-12-03
- 0.2.3 — 2024-07-24
- 0.2.2 — 2024-06-20
- 0.2.1 — 2024-06-20
- 0.2.0 — 2024-06-19
- 0.1.0 — 2021-08-18

## README

<!--
  - SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  - SPDX-License-Identifier: GPL-3.0-or-later
-->

# `@nextcloud/sharing`

[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud-libraries/nextcloud-sharing)](https://api.reuse.software/info/github.com/nextcloud-libraries/nextcloud-sharing)
[![npm](https://img.shields.io/npm/v/@nextcloud/sharing.svg)](https://www.npmjs.com/package/@nextcloud/sharing)

Common front-end utils for files sharing on Nextcloud and Nextcloud apps.

## Installation

```
npm i -S @nextcloud/sharing
```

## Usage

There are three entry points provided:

- The main entry point `@nextcloud/sharing` provides general utils for file sharing
- The _public_ entry point `@nextcloud/sharing/public` provides utils for handling public file shares
- The _ui_ entry point `@nextcloud/sharing/ui` provides API bindings to interact with the files sharing interface in the files app.

---
_Source: https://npm.io/package/@nextcloud/sharing · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
