https://github.com/smessie/solid-storage-root
Discover the storage root of a Solid pod.
https://github.com/smessie/solid-storage-root
solid storage webid
Last synced: about 2 months ago
JSON representation
Discover the storage root of a Solid pod.
- Host: GitHub
- URL: https://github.com/smessie/solid-storage-root
- Owner: smessie
- License: mit
- Created: 2023-12-18T12:43:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T13:36:14.000Z (over 2 years ago)
- Last Synced: 2025-10-06T03:26:18.961Z (9 months ago)
- Topics: solid, storage, webid
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/solid-storage-root
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# solid-storage-root
This is a library that helps you find the storage root of a Solid pod of a given Web ID.
## Installation
```bash
npm install solid-storage-root
```
## Usage
```javascript
import {findStorageRoot} from 'solid-storage-root';
const storageRoot = await findStorageRoot('https://solid.pod/profile/card#me');
```
You can additionally pass a fetch function as a second argument to `findStorageRoot` to use a custom (authenticated)
fetch function:
```javascript
import {findStorageRoot} from 'solid-storage-root';
const storageRoot = await findStorageRoot('https://solid.pod/profile/card#me', fetch);
```
## Development
```bash
# Clone the repository
git clone git@github.com:smessie/solid-storage-root.git
cd solid-storage-root
# Install dependencies
npm install
# Build the library
npm run build
```