Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@functionland/box

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@functionland/box

Reference implementation of box server in Node.js

  • 0.6.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
2
Weekly downloads
 
Created
Source

Fula Server

Fula server turn your device to W3 node with configured IPFS server Which Fula client knows how to connect to it by its PeerID from anywhere.
Explore the docs »

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License

Built With

(back to top)

Getting Started

Use Server with caution and know the risk's becuse we are at development stage and the identity and encription is not avalibale so you become public node that can accessed from anywhere.

Option 1

By cloning repo and using rush (our monorepo manager) to build and run it.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • rush
    npm install -g @microsoft/rush
    
  • node 16
Installation
  1. Clone the repo
    git clone https://github.com/functionland/fula.git
    
  2. Install dependencies packages and build
    rush update
    rush build --to box
    
Usage

Enter Server folder and start server

cd apps/box 
rushx start

(back to top)

Option 2

Using npm

Installation
  1. Install it globally
npm install -g @functionland/box
  1. Create directory for its data and config
mkdir -p /opt/box
cd /opt/box
  1. Create config folder and create default.json
cd /opt/box
mkdir config
touch config/default.json

And copy this config into it.

{
  "nodes": [],
  "network":{
    "key_path": "",
    "listen": [
      "/dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star",
      "/dns4/wrtc-star2.sjc.dwebops.pub/tcp/443/wss/p2p-webrtc-star"
    ]
  },
  "ipfs": {
    "http": ""
  }
}
Usage
cd /opt/box
npx @functionland/box

Config

###Overview

{
  "nodes": [], # List of multiaddresses of other box and ipfs node in your network.  
  "network":{
    "key_path": "", # Path to secret-key file
    "listen": [
      "/dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star",
      "/dns4/wrtc-star2.sjc.dwebops.pub/tcp/443/wss/p2p-webrtc-star"
    ] # List of multiaddresses libp2p and ipfs listen on
  },

}

Private Fula network

To have a private network without exposing your private data to public ipfs First create a key file:

  1. bash-script
  cd /opt/box/config
  echo -e "/key/swarm/psk/1.0.0/\n/base16/\n`tr -dc 'a-f0-9' < /dev/urandom | head -c64`" > swarm.key
  1. using go ipfs-swarm-key-gen
  2. using node ipfs-swarm-key-gen

After creating the key file open configuration and add path to it in config

{
  ...
  "network":{
    "key_path": "./config/swarm.key", # Path to secret-key file
    ...
  },
  ...
}

After adding this you have to add other network node multiaddresses manually for your network to join.

{
  ...
  "nodes": [] # List of multiaddresses of other box and ipfs node in your network.
  ...
}

External IPFS

If you want to use an external ipfs like go-ipfs or ipfs-cluster proxy api set Http RPC api of your external node:

{
  ...,
  "ipfs": {
    "http": "" # external ipfs or ipfs-cluster proxy to use instead of js-ipfs
  }
  ...
}

For more examples, please refer to the Documentation

(back to top)

Roadmap

  • Protocols
    • File
    • Graphql

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

See LICENSE for more information.

(back to top)

FAQs

Package last updated on 10 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc