Open source project

OpenD2D

An open format and open source libraries to share content directly between nearby phones, with no server and no mobile data.

Why

Many local-first apps still need the internet when a large file has to move from one device to another.

Where mobile data is expensive, this is a real barrier to media, education and public information. Every app developer solves it alone, in a different way, and rarely in the open.

What we will publish

An open specification

A package format with signed, chunked and verifiable content, resume after interruption, and test vectors that anyone can use to implement it.

Android and iOS libraries

Two open source libraries (Kotlin and Swift) with the same API, tested against the same test suite, including exchange between an Android phone and an iPhone.

A Flutter plugin

One plugin and an example app, so that a developer can add nearby sharing to an app in minutes.

An upstream integration

A contribution to an existing self-hosted open source application, so that its mobile clients can share media between nearby phones.

Principles

One format, two platforms

Android and iOS apps agree on what a valid package is.

Content you can trust

A receiver verifies that content is complete and comes from the expected publisher, even when it arrives from a stranger's phone.

Protected content stays protected

Encrypted content is the same on every device and can be relayed freely. Rights are bound to each device and obtained separately.

Private by design

No analytics, minimal permissions, and a published threat model.

Plan

Nine months from signature, seven tasks and five public milestones. Every deliverable is published in the open as it is produced, and a short report is sent to the funder at each milestone.

Tasks and deliverables

Task
1
2
3
4
5
6
7
8
9
T1Specification
T2Android library (Kotlin)
T3iOS library (Swift)
T4Flutter plugin and developer guide
T5Upstream integration
T6Quality and security
T7Field test and dissemination

T1Specification

Months 1 - 2
  • D1.1 Specification v1.0 candidate
  • D1.2 Machine-checkable test vectors

T2Android library (Kotlin)

Months 2 - 5
  • D2.1 Android library with passing test suite

T3iOS library (Swift)

Months 3 - 6
  • D3.1 iOS library passing the same test suite

T4Flutter plugin and developer guide

Months 6 - 7
  • D4.1 Flutter plugin and example app
  • D4.2 Developer guide with five-minute quick start

T5Upstream integration

Months 6 - 8
  • D5.1 Patch series submitted to an existing open source application

T6Quality and security

Months 2 - 9
  • D6.1 Threat model
  • D6.2 Security review report, continuous integration and reproducible builds

T7Field test and dissemination

Months 8 - 9
  • D7.1 Field test report with measurements
  • D7.2 Technical article and conference talk

Milestones

  1. MS1 Month 2 Specification and test vectors D1.1, D1.2
  2. MS2 Month 5 Android library D2.1
  3. MS3 Month 7 iOS library, Flutter plugin and developer guide D3.1, D4.1, D4.2
  4. MS4 Month 8 Upstream integration and threat model D5.1, D6.1
  5. MS5 Month 9 Security review, field test report and final release D6.2, D7.1, D7.2

Status

OpenD2D is a project proposal. All results will be released under an open source license.

Want to follow or contribute?

If you maintain a self-hosted app, build apps for low-connectivity audiences, or want to review the specification, we would like to hear from you.

Get in touch