warpnet

package module
v0.2.451 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2025 License: GPL-2.0, GPL-3.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Go Version Release Telegram Chat

Logo

Warpnet

An awesome README template to jumpstart your projects!
Explore the docs »

· Report Bug · Request Feature

Table of Contents
  1. General Principles
  2. Getting Started
  3. TODO
  4. Contributing
  5. Contact
  6. License

Screenshot

General Principles of the Warp Network

  1. WarpNet cannot be owned by anyone.
  2. WarpNet must operate independently of any third-party services.
  3. WarpNet must not rely on any proprietary or third-party technologies.
  4. A WarpNet node must be distributed as a single executable file.
  5. WarpNet must be a cross-platform solution.
  6. Only one WarpNet member node may run on a single machine, but it may have multiple aliases.
  7. WarpNet member nodes must be governed solely by network consensus.
  8. WarpNet business nodes may allow centralized management.
  9. WarpNet business nodes must responsibly run at least one bootstrap node.
  10. A WarpNet node must store private data only on the local host machine.
  11. WarpNet member nodes must not be developed or controlled by a single individual.
  12. Content on WarpNet must be moderated automatically, without human intervention.
  13. Hosting a WarpNet bootstrap node must be incentivized with rewards.
  14. Node owners bear full personal responsibility for any content they upload to WarpNet.

Getting Started

Prerequisites

List of software needed and how to install them.

Usage and available options

    --database.dir string          Database directory name (default "storage")
    --logging.level string         Logging level (default "info")
    --node.bootstrap string        Bootstrap nodes multiaddr list, comma separated
    --node.host string             Node host (default "0.0.0.0")
    --node.inmemory                Bootstrap node runs without persistent storage
    --node.metrics.server string   Metrics push server address
    --node.network string          Private network. Use 'testnet' for testing env. (default "testnet")
    --node.port string             Node port (default "4001")
    --node.seed string             Bootstrap node seed for deterministic ID generation (random string)
    --server.host string           Server host (default "localhost")
    --server.port string           Server port (default "4002")

The above parameters also could be set as environment variables:

    NODE_PORT=4001
    NODE_SEED=warpnet1
    NODE_HOST=207.154.221.44
    LOGGING_LEVEL=debug 
    ...

How to run single node (dev mode)

  • bootstrap node
    go run cmd/node/bootstrap/main.go
  • member node
    go run cmd/node/member/main.go

How to run multiple nodes (dev mode)

Change database directory name and ports. Run every node as an independent OS process.

    go run cmd/node/member/main.go --database.dir storage2 --node.port 4021 --server.port 4022

How to run node in isolated network (dev mode)

Change node.network flag to different one.

    go run cmd/node/member/main.go --node.network myownnetwork

TODO

  • Set up a website
    • Add docs to website
    • Run URL shortener server
  • Create DMG package
  • Create Snap package
  • Set up bootstrap nodes on each continent
  • TODO

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

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 open an issue with the tag "enhancement." Remember to give the project a star! Thanks again!

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

Top contributors:

contrib.rocks image

Contact

Maintainer

Developers group in Telegram

License

Warpnet is free software licensed under the GNU General Public License v3.0 or later.

See the LICENSE file for details.

Documentation

Overview

#nosec

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCodeBase

func GetCodeBase() embed.FS

func GetVersion

func GetVersion() []byte

Types

This section is empty.

Directories

Path Synopsis
cmd
node/bootstrap command
node/business command
node/member command
core
dht
api-gen
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL