# Quick Start Guide

Welcome to NetAlchemy Suite! This guide will help you get started quickly.

---

## 🎯 What is NetAlchemy?

NetAlchemy Suite is a collection of tools for:

- **🔬 Network Simulation** - Simulate network conditions (latency, loss, etc.)
- **🔧 SDK Development** - SDKs for Go and Lua
- **📱 Mobile Development** - Android and iOS support
- **🛠️ Testing Tools** - Protocol and performance testing

---

## ⚡ Getting Started in 5 Minutes

### 1. Installation

```bash
# Download and install
curl -sSL https://get.netalchemy.dev | bash

# Or with Go
go install github.com/eldologuzzo/NetAlchemy/cmd/netalchemy@latest
```

### 2. First Test

```bash
# Create a test project
netalchemy init my-project
cd my-project

# Run the default simulation
netalchemy run
```

### 3. View Results

```bash
# Open dashboard
netalchemy dashboard

# Or view logs
netalchemy logs
```

---

## 📂 Project Structure

```
my-project/
├── config.yaml          # Configuration
├── scripts/
│   └── main.lua         # Main script
├── scenarios/
│   └── default.yaml     # Test scenarios
└── results/
    └── ...              # Test results
```

---

## 🎮 Usage Examples

### Simulate Latency

```yaml
# scenarios/latency.yaml
name: Latency Test
conditions:
  latency:
    base: 100ms
    jitter: 20ms
```

```bash
netalchemy run -s scenarios/latency.yaml
```

### Packet Loss Test

```yaml
# scenarios/packet-loss.yaml
name: Loss Test
conditions:
  packet_loss: 5%
```

### Custom Lua Script

```lua
-- scripts/custom.lua
local net = require("netalchemy")

-- Configure simulation
net.set_latency(100)
net.set_packet_loss(0.02)

-- Run a test
local result = net.http_get("https://example.com")
print("Status:", result.status)
print("Time:", result.duration)
```

---

## 🛠️ Included Tools

| Tool | Description |
|------|-------------|
| `netgraft` | Network traffic control |
| `forgeflow` | Network flow generator |
| `glitchwire` | Error injection |
| `loadsmith` | Load testing + log extraction + replay harness |

### Using the Tools

```bash
# Netgraft - Limit bandwidth
netgraft limit eth0 --rate 1mbps

# Forgeflow - Generate traffic
forgeflow generate --type http --rate 100/s

# Glitchwire - Inject errors
glitchwire inject --target app --error timeout

# Loadsmith - Burst load test
loadsmith -script tools/loadsmith/examples/echo_json.lua -host localhost -port 8080 -mode burst -count 100 -concurrency 10
```

---

## 📚 Next Steps

1. **[Complete Installation](INSTALL.md)** - Detailed guide
2. **[Configuration](CONFIGURATION.md)** - Advanced options
3. **[Lua SDK](SDK_LUA.md)** - API reference
4. **[Go SDK](SDK_GO.md)** - Go integration
5. **[Examples](../examples/)** - More examples

---

## 🆘 Need Help?

```bash
# General help
netalchemy help

# Help for a command
netalchemy help run

# Online documentation
netalchemy docs
```

### Resources

- 📖 [Complete Documentation](INDEX.md)
- 💬 [GitHub Discussions](https://github.com/eldologuzzo/NetAlchemy/discussions)
- 🐛 [Report a Bug](https://github.com/eldologuzzo/NetAlchemy/issues)

---

*NetAlchemy Suite • BSL 1.1 • © 2026*
