[![PoweredBy](https://raw.githubusercontent.com/Mentors4EDU/Images/master/Add%20a%20heading(15).png)](https://www.starkdrones.org/home/os)
# Decentralized Internet
![npm](https://img.shields.io/npm/dt/decentralized-internet?label=NPM%20Downloads) | ![Crates.io](https://img.shields.io/crates/d/decentralized-internet?label=crates.io%20Downloads) | [![Discord](https://img.shields.io/discord/639489591664967700)](https://discord.gg/buTafPc) | [![Gitter](https://img.shields.io/gitter/room/Decentralized-Internet/community)](https://gitter.im/Decentralized-Internet/community?source=orgpage) | [![Read the Docs](https://img.shields.io/readthedocs/lonero)](https://lonero.readthedocs.io/en/latest/)

The NPM library is a collection of the following repos made for the purpose of building decentralized web projects:

[lotion](https://github.com/nomic-io/lotion) | [bitcoin-peg](https://www.npmjs.com/package/bitcoin-peg) | [clusterpost](https://github.com/juanprietob/clusterpost) | [gridbee-framework](https://github.com/BME-IK/gridbee-framework) | [Reinvent-the-Internet](https://github.com/Mentors4EDU/Reinvent-the-Internet)

#### Installation Methods
Install via NPM: `npm i decentralized-internet`

Install via APM: `apm install decentralized-internet`

Install via YARN: `yarn add decentralized-internet`

Install via SNAP: `sudo snap install decentralized-internet --edge`

##### Arch Linux Installation Instructions:
```
git clone https://aur.archlinux.org/snapd.git
cd snapd
makepkg -si
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install decentralized-internet --edge
```

##### Cloud Deploy:

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Lonero-Team/Decentralized-Internet) [![Deploy to Azure](https://azurecomcdn.azureedge.net/mediahandler/acomblog/media/Default/blog/deploybutton.png)](https://azuredeploy.net/) 
[![amplifybutton](https://oneclick.amplifyapp.com/button.svg)](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/Lonero-Team/Decentralized-Internet)


###### App to add GitHub metrics tracking to select repos [here](https://github.com/apps/decentralized-internet)

Also special thanks to: [The Lonero Dev Team](https://github.com/lonero-team)
   
 * May need some updates in Seed Migration for some of the org repos | ![Website](https://img.shields.io/website?url=http%3A%2F%2Flonero.org)

#### Lotion Sample (State Machines):
* From original [Lotion](https://lotionjs.com/) [repo](https://github.com/nomic-io/lotion) (shown on installation page for demo purposes)
```
// app.js
let lotion = require('lotion')
let app = lotion({
	initialState: {
		count: 0
	}
})
function transactionHandler(state, transaction) {
	if (state.count === transaction.nonce) {
		state.count++
	}
}
let connect = require('lotion-connect')
app.use(transactionHandler)
app.start().then(appInfo => console.log(appInfo.GCI))
```

#### ccxml Device Connection Sample Code:
- xml taken from TI's IDE in device config for driver
```
<connection XML_version="1.2" id="TI MSP430 USB1">
```

Papers worth checking out:
[Lonero Whitepaper (Original)](https://www.academia.edu/37041064/Lonero_Whitepaper_v1)  | [CrowdCoin Scientific Whitepaper](https://www.academia.edu/37832290/CrowdCoin_Scientific_Whitepaper)

This project is being mantained by the folks [here](starkdrones.org/home/os)

![EndLine](https://raw.githubusercontent.com/Mentors4EDU/Images/master/Untitled%20design(96).png)
[![ForTheBadge built-with-science](http://ForTheBadge.com/images/badges/built-with-science.svg)](https://GitHub.com/Lonero-Team/)

[![LNROS](https://img.youtube.com/vi/ax-wqHntKXg/0.jpg)](https://www.youtube.com/watch?v=ax-wqHntKXg "Lonero OS: The Race is Coming!")

### Test w/ Repl.it:
[![replit](https://raw.githubusercontent.com/Mentors4EDU/Images/master/Screenshot%20from%202019-11-20%2012-13-27.png)](https://repl.it/)

### Play w/ Dependency via scrimba:
[![scrimba](https://raw.githubusercontent.com/Mentors4EDU/Images/master/Screenshot_2019-11-20%20decentralized-internet.png)](https://scrimba.com/)

![DRKLine](https://raw.githubusercontent.com/Mentors4EDU/Images/master/line-drk.png)

This project was created in order to support a new internet. One that is more open, free, and censorship-resistant in comparison to the old internet. An internet that eventually wouldn't need to rely on telecom towers, an outdated grid, or all these other "old school" forms of tech. We believe P2P compatibility is an important part of the future of the net. Grid Computing also plays a role in having a better means of transferring information in a speedy, more cost-efficient and reliable manner.
