This is a library that helps you find the storage root of a Solid pod of a given Web ID.
npm install solid-storage-root
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:
import {findStorageRoot} from 'solid-storage-root';
const storageRoot = await findStorageRoot('https://solid.pod/profile/card#me', fetch);
# Clone the repository
git clone [email protected]:smessie/solid-storage-root.git
cd solid-storage-root
# Install dependencies
npm install
# Build the library
npm run build