Go to file
TC d63ca77f68 Merge branch 'unifi_instructions_mod' into 'main'
Add disclaimer to Unifi install script

Closes #425

See merge request veilid/veilid!338
2024-12-25 16:37:36 +00:00
.cargo wasm fixes 2022-11-29 22:51:51 -05:00
dev-setup Ensure Java 17 or higher is the active version in dev-setup/setup_macos.sh 2024-09-30 12:02:14 +02:00
doc config fixes 2024-03-27 17:53:50 -05:00
files Add Test CA and simple certs for testing 2021-11-22 09:02:41 -05:00
package attempt to correct IPC path group permissions on systemd service 2024-08-06 14:58:27 -07:00
scripts Add disclaimer to Unifi install script 2024-12-25 16:37:35 +00:00
veilid-cli Version update: v0.4.0 → v0.4.1 2024-10-24 19:27:30 -05:00
veilid-core fix logic error that used wss when not tls 2024-12-07 22:27:41 +00:00
veilid-flutter IP geolocation, extend BucketEntry 2024-11-12 17:11:50 +00:00
veilid-python Version update: v0.4.0 → v0.4.1 2024-10-24 19:27:30 -05:00
veilid-server IP geolocation, extend BucketEntry 2024-11-12 17:11:50 +00:00
veilid-tools Version update: v0.4.0 → v0.4.1 2024-10-24 19:27:30 -05:00
veilid-wasm Version update: v0.4.0 → v0.4.1 2024-10-24 19:27:30 -05:00
.bumpversion.cfg Version update: v0.4.0 → v0.4.1 2024-10-24 19:27:30 -05:00
.earthlyignore capnp and protoc versioning 2023-09-16 16:51:57 -04:00
.gitignore fix overzealous gitignore and organize flutter a bit 2024-03-27 17:53:50 -05:00
.gitlab-ci.yml Limit CI testing to relevant changes 2024-12-25 16:10:27 +00:00
BOOTSTRAP-SETUP.md Few tiny improvements 2024-10-23 21:58:29 +00:00
build_docs.bat Make env var BUILD_DOCS=1 not persist 2023-10-30 23:29:57 -04:00
build_docs.sh fix doc build for docs.rs 2023-10-17 22:13:00 -04:00
Cargo.lock IP geolocation 2024-11-03 18:24:08 +00:00
Cargo.toml fixes for 'nom' out of date 2024-03-27 17:53:50 -05:00
CHANGELOG.md 0.4.1 changes 2024-10-23 23:27:34 +00:00
code_of_conduct.md Fix a couple markdownlint issues, no change to content. 2023-09-10 16:32:38 -04:00
CONTRIBUTING.md Dev network setup docs 2023-09-18 21:28:56 -05:00
DEVELOPMENT.md Add "uptime" debug command 2024-10-19 15:18:26 +00:00
Earthfile improve dht consensus checking and low level networking 2024-09-21 15:13:29 +00:00
INSTALL.md Merge branch 'tmcarr-main-patch-16887' into 'main' 2024-08-15 12:33:48 +00:00
LICENSE Add LICENSE 2023-08-10 19:34:50 +00:00
README-DE.md Cleaned up .md files syntax 2023-09-12 08:43:09 -05:00
README-JP.md Japanese translation of the README 2023-10-14 18:14:02 +00:00
README-pt_BR.md Created README in pt_BR. 2024-01-20 15:50:45 -03:00
README.md Add example code snippet to the README 2024-01-11 11:01:24 -08:00
RELEASING.md Update RELEASING.md [ci skip] 2024-10-25 00:22:17 +00:00
version_bump.sh simplify 2023-09-16 16:51:59 -04:00

Welcome to Veilid

From Orbit

The first matter to address is the question "What is Veilid?" The highest-level description is that Veilid is a peer-to-peer network for easily sharing various kinds of data.

Veilid is designed with a social dimension in mind, so that each user can have their personal content stored on the network, but also can share that content with other people of their choosing, or with the entire world if they want.

The primary purpose of the Veilid network is to provide the infrastructure for a specific kind of shared data: social media in various forms. That includes light-weight content such as Twitter's tweets or Mastodon's toots, medium-weight content like images and songs, and heavy-weight content like videos. Meta-content such as personal feeds, replies, private messages, and so forth are also intended to run atop Veilid.

Run a Node

The easiest way to help grow the Veilid network is to run your own node. Every user of Veilid is a node, but some nodes help the network more than others. These network support nodes are heavier than the node a user would establish on their phone in the form of a chat or social media application. A cloud based virtual private server (VPS), such as Digital Ocean Droplets or AWS EC2, with high bandwidth, processing resources, and up time availability is crucial for building the fast, secure, and private routing that Veilid is built to provide.

To run such a node, establish a Debian or Fedora based VPS and install the veilid-server service. To make this process simple we are hosting package manager repositories for .deb and .rpm packages. See the installing guide for more information.

Building on Veilid

If you want to start using Veilid for your own app, take a look at the Developer Book.

A basic example using veilid-core and tokio might look like this.

use std::sync::Arc;
use veilid_core::VeilidUpdate::{AppMessage, Network};
use veilid_core::{VeilidConfigBlockStore, VeilidConfigInner, VeilidConfigProtectedStore, VeilidConfigTableStore, VeilidUpdate};

#[tokio::main]
async fn main() {
    let update_callback = Arc::new(move |update: VeilidUpdate| {
        match update {
            AppMessage(msg) => {
                println!("Message: {}", String::from_utf8_lossy(msg.message().into()));
            }
            Network(msg) => {
                println!("Network: Peers {:}, bytes/sec [{} up] [{} down]", msg.peers.iter().count(), msg.bps_up, msg.bps_down)
            }
            _ => {
                println!("{:?}", update)
            }
        };
    });

    let config = VeilidConfigInner {
        program_name: "Example Veilid".into(),
        namespace: "veilid-example".into(),
        protected_store: VeilidConfigProtectedStore {
            // avoid prompting for password, don't do this in production
            always_use_insecure_storage: true,
            directory: "./.veilid/block_store".into(),
            ..Default::default()
        },
        block_store: VeilidConfigBlockStore {
            directory: "./.veilid/block_store".into(),
            ..Default::default()
        },
        table_store: VeilidConfigTableStore {
            directory: "./.veilid/table_store".into(),
            ..Default::default()
        },
        ..Default::default()
    };

    let veilid = veilid_core::api_startup_config(update_callback, config).await.unwrap();
    println!("Node ID: {}", veilid.config().unwrap().get_veilid_state().config.network.routing_table.node_id);
    veilid.attach().await.unwrap();
    // Until CTRL+C is pressed, keep running
    tokio::signal::ctrl_c().await.unwrap();
    veilid.shutdown().await;
}

Development

If you're inclined to get involved in code and non-code development, please check out the contributing guide. We're striving for this project to be developed in the open and by people for people. Specific areas in which we are looking for help include:

  • Rust
  • Flutter/Dart
  • Python
  • Gitlab DevOps and CI/CD
  • Documentation
  • Security reviews
  • Linux packaging