Skip to content

nodeSolidServer/NSS2CSS

 
 

Repository files navigation

Copy NSS pods to CSS

This zero-dependency script for Node.js copies all pods from a Node Solid Server (NSS) instance into a Community Solid Server (CSS) instance.

Prerequisites

  • File access to the configuration and data of an NSS instance (tested with v5.7.7)
  • File and HTTP access to the configuration and data of a CSS instance (compatible with v7.x)

Running the script

./copy-pods-to-css.mjs nss/config.json css/data/ https://css.pod/ [email protected]

where:

  • nss/config.json is the file path to the NSS configuration file
  • css/data/ is the file path the CSS data folder
  • https://css.pod/ is the URL to the running CSS instance
  • [email protected] is the template for CSS usernames, where xxx is the old NSS username

Functionality

This script:

  • Creates one CSS account for each NSS pod
    • The username changes from alice to [email protected] (configurable)
    • The password remains the same
  • Copies the contents of each NSS pod to the corresponding CSS pod
  • Performs 2 tests per pod
    • Access the profile document (assumed public)
    • Access the inbox (assumed private)

License

©2023 Ruben Verborgh – MIT License

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Shell 0.6%