List of Created pods under Community Solid Server


I am new to the Community Solid Sever (CSS) community :slight_smile:

I have a a question regarding a way to list all the pods created under a community-solid-sever on my local machine.

I have used the “curl http://localhost:3000/api/accounts” and even using GET request of it, but it gives “NotFoundHttpError”.


Since a pod is meant to preserve privacy, there is not, and should not be any standard way to find out who has a pod on a particular server. That said, I believe that CSS, by default, shows the list of accounts when accessing the root of a multi-user server.

Thanks @jeffz for your reply that actually makes a lot of sense.

I am still interested how can I access that root multi-user server in CSS local isntallations.

You can fetch it, for instance with this:

const res = await fetch('http://localhost:3000/')
const content = await res.text()
// parse the turtle and extract ldp:contains; ignore index.html

/* content looks like this turtle
@prefix dc: <>.
@prefix ldp: <>.
@prefix posix: <>.
@prefix xsd: <>.

<> a <>, ldp:Container, ldp:BasicContainer, ldp:Resource;
    dc:modified "2023-03-10T12:42:17.000Z"^^xsd:dateTime;
    ldp:contains <index.html>, <test/>.

Alternatively, you can use the Accept header to retrieve it as json: await fetch('http://localhost:3000/', { headers: { accept: 'application/json' }}) .

Thanks @A_A for the solution, actually this gives me what I was looking for.

But I have a question, it seems that those pods are created in the memory, when I restart the CSS, I found that the created pods (seeded, or generated later on) are gone.

I am asking is there a way to keep those pods created after shutting down the server?

Thanks again @jeffz and @A_A !

Did you set the -f option to indicate that you want to use file storage rather than in-memory storage?

I wasn’t, but still after specifying -f, not saving the pods. I am not sure what is yet missing.

As per the documentation, try community-solid-server -c @css:config/file.json to store it in the file system (-f to specify at which location, default is ./)

1 Like