API Reference

Using SAFE Demo App

This demo app demonstrates some of the initial key features exposed by the SAFE Network (Public ID, Public Data and Private Data).

2020

Manage Network Data

Click on Manage Network Data to upload private and public data to the SAFE Network.

❗️

Current limitation

When uploading files using SAFE Demo App, the maximum file size is 25 MB per file.

2020

Upload Private Data

Click on Private folder to access your private data. Then click on the + sign to see a dropdown menu with two options: Upload Directory and Upload File.

2020

To upload a file, click on Upload File and select the file you want to upload.

3230

Once the file is uploaded, you can access it from any computer (by logging in to your SAFE Network account via Launcher). To download the file, simply double-click on it.

2944

Upload Public Data

Click on Public folder to access your public data. Then click on the + sign to see a dropdown menu with two options: Upload Directory and Upload File.

2020

To upload a directory, click on Upload Directory and select the folder you want to upload.

2658

Once the folder is uploaded, you can access it from any computer (by logging in to your SAFE Network account via Launcher). To browse a folder, simply double-click on it.

2020

Manage Websites

The first time you click on Manage Websites, you will see this screen:

2020

Create Public ID

Enter the Public ID you want to use for all apps and services on the SAFE Network.

2020

Once your Public ID has been registered, you will see this screen:

2020

👍

You have created a Public ID!

Now click on CREATE NEW and have a go at creating a website.

Create a Service

Enter the Service Name you want to use for this SAFE website.

🚧

Service naming must be unique within your own Public ID

📘

Use www as a service name to create a SAFE website with no prefix

If you create a service called www, you'll be able to access your Public ID without specifying a subdomain (e.g. you'll be able to load http://francis.safenet if the Public ID called francis contains a service called www).

2020

If you previously uploaded a website folder, you can choose to map it to your service. If you don't have a website folder, you can create one by clicking on Template. Or if you want to upload a new website folder, click on Manage Network Data.

📘

Make sure your website folder contains an index.html file

Your website folder needs to contain an index.html file, otherwise your SAFE website (e.g. http://test.francis.safenet) won't be accessible. index.html is the default file that is loaded when no file is specified in the URL.

2020

You can click and change the text in this sample template.

2020

Select the folder you want to use for this service and click on PUBLISH WEBSITE.

2020 2020

👍

Successfully Published!

Your SAFE website is now publicly available to other SAFE Network users.

Manage Services

Create, edit, remap and view services you have tied into your Public ID.

2020

Each service associated with your Public ID forms a URL that can be used to view your SAFE website in a browser.

🚧

Remember to set the proxy with the .pac file to view your SAFE website

Guide to setup a proxy on your machine

4096

👍

You have now completed the SAFE Demo App walk through.

Keep a look out on the SAFE Network Forum to see what exciting demo sites folks create and of course shout about your own!