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.
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: <http://purl.org/dc/terms/>.
@prefix ldp: <http://www.w3.org/ns/ldp#>.
@prefix posix: <http://www.w3.org/ns/posix/stat#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
<> a <http://www.w3.org/ns/pim/space#Storage>, 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?
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 ./)