项目 / eclipse-ditto/ditto

eclipse-ditto/ditto

行业推荐
语言 Java标签 eclipseiotiotinternet-of-thingsdigital-twineclipse-dittodittohacktoberfestjavamongodbdigital-twinsdigital-shadoww3cweb-of-thingswotjavascript数据更新 2026-11-24 06:50:13 · 仓库 2026-11-23

一段话介绍

Eclipse 的开源数字孪生框架,用来为联网设备建立云端的虚拟对应物,并通过孪生接口以同步或异步方式访问设备。官方站点写明它不限定行业,可用于工业、居住、农业等物联网场景。本页只写用途与入口,不介绍协议攻击或工控入侵手法。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Eclipse Ditto™: Digital Twin framework of Eclipse IoT - main repository
954累计星
297Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

设备物联接入与边缘采集

适配系统:物联网平台、边缘计算网关 · 得分 1.4

实现工业协议解析与设备接入管理,可作为物联网平台的设备接入层与数据采集前置。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
可运行 docker-compose up -d。
特点或设计要点
孪生可区分设备的上报状态、期望状态和当前状态,并支持状态同步与变更发布。每次 API 调用都会按资源做访问控制。设备可通过 Eclipse Hono 或 MQTT 代理接入;也可建立 AMQP、Kafka、HTTP 或 MQTT 等连接,与现有后台系统互相同步,并在连接中做载荷映射。文档、架构说明和 Explorer 界面见[eclipse.dev/ditto](https://www.eclipse.dev/ditto/)。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-23 · 语言 Java · 贡献者 —
cli

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 5,745 字节。

<div align="center">
  <img src="https://raw.githubusercontent.com/eclipse/ditto/master/logo/ditto_fordarkbg.svg?sanitize=true#gh-dark-mode-only" alt="Ditto Logo dark" height="250">
  <img src="https://raw.githubusercontent.com/eclipse/ditto/master/logo/ditto.svg?sanitize=true#gh-light-mode-only" alt="Ditto Logo light" height="250">
</div>


# Eclipse Ditto™

[![Join the chat at https://gitter.im/eclipse/ditto](https://badges.gitter.im/eclipse/ditto.svg)](https://gitter.im/eclipse/ditto?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://github.com/eclipse-ditto/ditto/actions/workflows/maven.yml/badge.svg)](https://github.com/eclipse-ditto/ditto/actions/workflows/maven.yml?query=workflow%3Abuild)
[![Maven Central](https://img.shields.io/maven-central/v/org.eclipse.ditto/ditto?label=maven)](https://search.maven.org/search?q=g:org.eclipse.ditto)
[![Docker pulls](https://img.shields.io/docker/pulls/eclipse/ditto-things.svg)](https://hub.docker.com/search?q=eclipse%2Fditto&type=image)
[![License](https://img.shields.io/badge/License-EPL%202.0-green.svg)](https://opensource.org/licenses/EPL-2.0)
[![Lines of code](https://img.shields.io/badge/dynamic/xml.svg?label=Lines%20of%20code&url=https%3A%2F%2Fwww.openhub.net%2Fprojects%2Feclipse-ditto.xml%3Fapi_key%3D11ac3aa12a364fd87b461559a7eedcc53e18fb5a4cf1e43e02cb7a615f1f3d4f&query=%2Fresponse%2Fresult%2Fproject%2Fanalysis%2Ftotal_code_lines&colorB=lightgrey)](https://www.openhub.net/p/eclipse-ditto)

[Eclipse Ditto](https://www.eclipse.dev/ditto/)™ is a technology in the IoT implementing a software pattern called “digital twins”.  
A digital twin is a virtual, cloud based, representation of his real world counterpart (real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations, …).

An ever-growing list of [adopters](https://iot.eclipse.org/adopters/?#iot.ditto) makes use of Ditto as part of their IoT platforms - if you're as well using it, it would be super nice to show your [adoption here](https://iot.eclipse.org/adopters/how-to-be-listed-as-an-adopter/).

## Documentation

Find the documentation on the project site: [https://www.eclipse.dev/ditto/](https://www.eclipse.dev/ditto/)

## Eclipse Ditto™ explorer UI

Find a live version of the latest explorer UI: [https://eclipse-ditto.github.io/ditto/](https://eclipse-ditto.github.io/ditto/?primaryEnvironmentName=ditto_sandbox)

You should be able to work with your locally running default using the `local_ditto` environment - and you can add additional environments to also work with e.g. with a deployed installation of Ditto.

## Star History

<a href="https://star-history.com/#eclipse-ditto/ditto&Date">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=eclipse-ditto/ditto&type=Date&theme=dark" />
    <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=eclipse-ditto/ditto&type=Date" />
    <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=eclipse-ditto/ditto&type=Date" />
  </picture>
</a>


## Getting started

In order to start up Ditto via *Docker Compose*, you'll need:
* a running Docker daemon
* Docker Compose installed
* for a "single instance" setup on a local machine:
  * at least 2 CPU cores which can be used by Docker
  * at least 4 GB of RAM which can be used by Docker

You also have other possibilities to run Ditto, please have a look [here](https://github.com/eclipse-ditto/ditto/tree/master/deployment) to explore them.

### Start Ditto

In order to start the latest built Docker images from Docker Hub, simply execute:

```bash
cd deployment/docker/
docker-compose up -d
```

Check the logs after starting up:
```bash
docker-compose logs -f
```

Open following URL to get started: [http://localhost:8080](http://localhost:8080)<br/>
Or have a look at the ["Hello World"](https://www.eclipse.dev/ditto/intro-hello-world.html)

Additional [deployment options](deployment/) are also available, if Docker Compose is not what you want to use.

## Development Guide

If you plan to develop extensions in Ditto or to contribute some code, the following steps are of interest for you.

> :warning: **If you just want to start/use Ditto**, please ingore the following sections! 

### Build and start Ditto locally

In order to build Ditto, you'll need:
* JDK >= 25
* Apache Maven >= 3.9.x installed.
* a running Docker daemon

In order to first build Ditto and then start the built Docker images.

#### 1. Build Ditto with Maven
```bash
mvn clean install
```

Skip tests:
```bash
mvn clean install -DskipTests
```

#### 2. Build local Ditto Docker snapshot images
```bash
./build-images.sh
```
If your infrastructure requires a proxy, its host and port can be set using the `-p` option like for example:
```bash
./build-images.sh -p 172.17.0.1:3128
```
Please note that the given host and port automatically applies for HTTP and HTTPS.

#### 3. Start Ditto with local snapshot images
```bash
cd ../deployment/docker/
# the "dev.env" file contains the SNAPSHOT number of Ditto, copy it to ".env" so that docker compose uses it:
cp dev.env .env
docker-compose up -d
```

Check the logs after starting up:
```bash
docker-compose logs -f
```

You have now running:
* a MongoDB as backing datastore of Ditto (not part of Ditto but started via Docker)
* Ditto microservices:
   * Policies
   * Things
   * Things-Search
   * Gateway
   * Connectivity
* an nginx acting as a reverse proxy performing a simple "basic authentication" listening on port `8080`
   * including some static HTTP + API documentation on [http://localhost:8080](http://localhost:8080)
↑