> ## Documentation Index
> Fetch the complete documentation index at: https://docs.archetypeai.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Streams

The Archetype platform is built around the concept of [Lenses](/core-concepts/lenses/overview), which are software interfaces for building and interacting with real world through sensors and actuators.

Developers can stream data in and out of a Lens by attaching one or more data streams to each Lens.

```mermaid theme={"system"}
graph LR
    subgraph inputs [Developer Sensors]
      A(Sensor A) --> InputConnector1(Connector #1)
      B(Sensor B) --> InputConnector2(Connector #2)
    end
    subgraph core [Archetype Platform]
      InputConnector1 --> InputStreams
      InputConnector2 --> InputStreams
      InputStreams(Input Streams) --> Lens((Lens))
      Lens --> OutputStreams(Output Streams)
    end
    
    subgraph outputs [Developer Applications]
      OutputStreams --> OutputConnector1(Output Connector #1) --> F(Alert System)
      OutputStreams --> OutputConnector2(Output Connector #2) --> G(Robotic Controller)
      OutputStreams --> OutputConnector3(Output Connector #3) --> H(Human Operator)
    end
    
    style InputConnector1 fill:#2D5FDD,stroke:none,color:#fff
    style InputConnector2 fill:#2D5FDD,stroke:none,color:#fff
    style InputStreams fill:#2D5FDD,stroke:none,color:#fff
    style Lens fill:#2D5FDD,stroke:none,color:#fff
    style OutputStreams fill:#2D5FDD,stroke:none,color:#fff
    style OutputConnector1 fill:#2D5FDD,stroke:none,color:#fff
    style OutputConnector2 fill:#2D5FDD,stroke:none,color:#fff
    style OutputConnector3 fill:#2D5FDD,stroke:none,color:#fff
```

This video file reader can be configured as the input stream to a Lens by sending the following [event](/core-concepts/streams/events/overview) to an active Lens:

```yaml theme={"system"}
event:
  type: input_stream.set
  event_data:
    stream_type: video_file_reader
    stream_config:
      file_id: "your_video_file_id.mp4"
```
