# Melnet: the P2P layer

Mel uses a very simple P2P protocol, melnet, for communication among [full nodes](/concepts/network-architecture.md) and between full nodes and light clients. Implemented as a [Rust crate](https://crates.io/crates/melnet2) within the [nanorpc](https://crates.io/crates/nanorpc) framework, it has the following features:

* Unstructured gossip network, similar to Bitcoin (and unlike libp2p and similar DHTs)
* Uses JSON-RPC 2.0 over plain HTTP/1.1. Not even WebSockets is used.

Using simple web standards makes it easy for (still future) web-based clients written in JavaScript or WebAssembly to directly access the P2P network. In-browser light clients, or even full nodes, become possible.

{% hint style="info" %}
Eventually, we'll have a more detailed description and spec of melnet here. For now, [check out the actual codebase on GitHub](https://github.com/mel-project/melnet2)!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.melproject.org/concepts/melnet-the-p2p-layer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
