AI prompts
base on Elodin simulation and flight software monorepo. <h1 align="center">
<a href="https://www.elodin.systems/">
<img alt="elodin-banner" src="https://assets.elodin.systems/assets/elodin-banner.png">
</a>
</h1>
This monorepo contains the source code for all Elodin simulation and flight software:
- Flight software
- [`aleph-os`](./aleph): Aleph NixOS modules for composing a Linux flight software stack that runs on the Orin.
- [`elodin-db`](./libs/db) (FSW application): A time-series database which functions as a central telemetry store and message bus.
- [`serial-bridge`](./fsw/serial-bridge) (FSW application): Reads sensor data being streamed over the serial port and writes it to [`elodin-db`](./libs/db).
- [`mekf`](./fsw/mekf) (FSW application): A Multiplicative Extended Kalman Filter implementation that fuses sensor data to estimate vehicle attitude.
- [`sensor-fw`](./fsw/sensor-fw): Aleph expansion board firmware that streams sensor data (IMU, mag, baro) to the Orin over USB/UART.
- Simulation software
- [`nox-py`](./libs/nox-py): Python version of `nox-ecs`, that works with JAX.
- [Editor](./apps/elodin): 3D viewer and graphing tool for visualizing both simulation and flight data.
<h2 align="center">
<a href="https://www.elodin.systems/">
<img alt="elodin-stack" src="assets/elodin-stack.png">
</a>
</h2>
## Getting Started
### Prerequisites
- [Determinate Systems Nix](https://determinate.systems/nix-installer/) for a consistent development environment
- [Just](https://just.systems/man/en/): ( `brew install just` / `apt install just` )
- [git-lfs](https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage): ( `brew install git-lfs` / `apt install git-lfs` ), and make sure to activate it globally with `git lfs install` from the terminal.
- **STRONGLY** prefer an Arm-based MacOS, nix works on x86 & Ubuntu but at much slower build speeds and worse DX.
---
## Development Setup (Recommended: Nix)
The Elodin repository uses Nix to provide a consistent, reproducible development environment across all platforms. This is the same environment our team uses daily.
### 1. Install Nix
```sh
# Install Determinate Systems Nix (recommended)
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
```
### 2. Clone the Repository
```sh
git clone https://github.com/elodin-sys/elodin.git
cd elodin
```
### 3. Enter the Nix Development Shell (this can take awhile to build the first time)
```sh
nix develop
```
> [!TIP]
> The Nix shell supports Oh My Zsh + Powerlevel 10k; for first time configuration run: `p10k configure`
>
### 4. Build and Install Elodin Editor and Elodin DB into your path
```sh
just install
elodin --version
python3 examples/rocket/main.py run
```
Open the Elodin editor in a new nix develop shell and connect to the local server
---
## Python SDK Development Setup (Nix-based continued)
### 5. Enter *another* Nix Development Shell, run the server & example simulation
#### Python SDK Development
```sh
# In a new terminal
nix develop
# build the SDK python wheel
cd libs/nox-py && \
uv venv --python 3.12 && \
source .venv/bin/activate && \
uvx maturin develop --uv
# use the newly built wheel
python3 ../../examples/rocket/main.py run
```
Open the Elodin editor and connect to the local server
> [!NOTE]
> Local setup instructions were validated on Arm M2 MacOS & Intel x86 Ubuntu 24.04 on 2025-10-12.
---
## Alternative Local Setup (macOS Only)
> [!WARNING]
> This setup is more complex and may lead to inconsistent environments across developers. We strongly recommend using Nix instead.
If you cannot use Nix, you can manually install dependencies on macOS:
### Prerequisites
```sh
# Install required tools via Homebrew
brew install gstreamer python gfortran openblas uv git-lfs rust
# Initialize git-lfs
git lfs install
```
### Build and Run
```sh
git clone https://github.com/elodin-sys/elodin.git
cd elodin
just install
```
### Python Development (Local Setup)
```sh
cd libs/nox-py
uv venv --python 3.12
source .venv/bin/activate
uvx maturin develop --uv
uv sync
cargo run --manifest-path=../../apps/elodin/Cargo.toml editor ../../examples/three-body/main.py
```
> [!NOTE]
> Local setup instructions were validated on M1 architecture, macOS 15.1.1 on 2025-08-26.
## Additional Resources
- [Elodin App Documentation](apps/elodin/README.md)
- [Python SDK Documentation](libs/nox-py/README.md)
- [Internal Nix Documentation](docs/internal/nix.md)
", Assign "at most 3 tags" to the expected json: {"id":"8381","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"