bots-garden/razorbillpublic Fork
⑂ v0.3.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/razorbill.git
git clone ssh://git@rickub.com/bots-garden/razorbill.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
packages.drawio · 134 lines · 11.2 KBGDScript3 Blame HistoryRaw
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<mxfile host="app.diagrams.net" agent="razorbill docs" version="24.7.0">
  <diagram id="packages" name="razorbill modules">
    <mxGraphModel dx="1200" dy="800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1240" pageHeight="760" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />

        <mxCell id="title" value="&lt;b&gt;razorbill v0.3 — Swift modules and their dependencies&lt;/b&gt;&lt;br&gt;Arrows point from a module to what it imports. Dashed: linked on macOS only." style="text;html=1;align=left;verticalAlign=top;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="40" y="20" width="760" height="50" as="geometry" />
        </mxCell>

        <mxCell id="grp-repo" value="This package (Package.swift)" style="rounded=1;whiteSpace=wrap;html=1;dashed=1;fillColor=none;strokeColor=#6c8ebf;verticalAlign=top;align=left;spacingLeft=10;fontStyle=1;" vertex="1" parent="1">
          <mxGeometry x="40" y="90" width="700" height="640" as="geometry" />
        </mxCell>
        <mxCell id="grp-ext" value="Third-party packages" style="rounded=1;whiteSpace=wrap;html=1;dashed=1;fillColor=none;strokeColor=#999999;verticalAlign=top;align=left;spacingLeft=10;fontStyle=1;" vertex="1" parent="1">
          <mxGeometry x="780" y="90" width="420" height="640" as="geometry" />
        </mxCell>

        <mxCell id="rzb" value="&lt;b&gt;rzb&lt;/b&gt; (executable)&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;registers the engines (mlx, fake) and starts the CLI&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;shadow=1;" vertex="1" parent="1">
          <mxGeometry x="250" y="130" width="260" height="60" as="geometry" />
        </mxCell>
        <mxCell id="cli" value="&lt;b&gt;RazorbillCLI&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;commands: serve, tui, config validate, models, version; console I/O, request log&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=1;" vertex="1" parent="1">
          <mxGeometry x="80" y="260" width="280" height="70" as="geometry" />
        </mxCell>
        <mxCell id="server" value="&lt;b&gt;RazorbillServer&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;OpenAI-compatible HTTP API: routes, streaming (SSE), errors, API key, model manager; local /rzb admin routes (status, unload, config reload). No MLX.&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=1;" vertex="1" parent="1">
          <mxGeometry x="80" y="400" width="280" height="70" as="geometry" />
        </mxCell>
        <mxCell id="mlx" value="&lt;b&gt;RazorbillMLX&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;MLX engines: chat, raw completion, thinking budget, constrained decoding, embeddings (empty on Linux)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=1;" vertex="1" parent="1">
          <mxGeometry x="430" y="260" width="280" height="70" as="geometry" />
        </mxCell>
        <mxCell id="core" value="&lt;b&gt;RazorbillCore&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;engine protocol, settings, output constraints, server configuration, model catalog and cache, fake engine. No MLX.&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;shadow=1;" vertex="1" parent="1">
          <mxGeometry x="230" y="560" width="300" height="80" as="geometry" />
        </mxCell>

        <mxCell id="argparser" value="&lt;b&gt;swift-argument-parser&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;command-line parsing&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
          <mxGeometry x="820" y="130" width="340" height="50" as="geometry" />
        </mxCell>
        <mxCell id="mlxlm" value="&lt;b&gt;mlx-swift-lm&lt;/b&gt; (MLXLLM, MLXLMCommon, MLXHuggingFace, MLXGuidedGeneration, MLXEmbedders)&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;LLM and embedding models, ChatSession, tool calls, thinking budget, XGrammar; on mlx-swift / Metal&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
          <mxGeometry x="820" y="230" width="340" height="60" as="geometry" />
        </mxCell>
        <mxCell id="hf" value="&lt;b&gt;swift-huggingface&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;Hugging Face Hub client: model downloads&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
          <mxGeometry x="820" y="320" width="340" height="50" as="geometry" />
        </mxCell>
        <mxCell id="tokenizers" value="&lt;b&gt;swift-transformers&lt;/b&gt; (Tokenizers)&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;tokenizers and chat templates&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
          <mxGeometry x="820" y="400" width="340" height="50" as="geometry" />
        </mxCell>
        <mxCell id="hummingbird" value="&lt;b&gt;Hummingbird 2&lt;/b&gt;, swift-nio (NIOCore), swift-service-lifecycle (UnixSignals), swift-log&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;HTTP server, client address, graceful shutdown, SIGHUP, logging&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
          <mxGeometry x="820" y="485" width="340" height="60" as="geometry" />
        </mxCell>
        <mxCell id="yams" value="&lt;b&gt;Yams&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;YAML parsing (with line numbers for errors)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
          <mxGeometry x="820" y="575" width="340" height="50" as="geometry" />
        </mxCell>

        <mxCell id="e1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="rzb" target="cli">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e2" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="rzb" target="mlx">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e3" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="cli" target="server">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e4" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="cli" target="core">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="60" y="295" />
              <mxPoint x="60" y="600" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e5" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="server" target="core">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e6" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="mlx" target="core">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e7" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#666666;" edge="1" parent="1" source="cli" target="argparser">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="220" y="220" />
              <mxPoint x="760" y="220" />
              <mxPoint x="760" y="155" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="e8" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;dashed=1;strokeColor=#b85450;" edge="1" parent="1" source="mlx" target="mlxlm">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e9" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;dashed=1;strokeColor=#b85450;" edge="1" parent="1" source="mlx" target="hf">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e10" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;dashed=1;strokeColor=#b85450;" edge="1" parent="1" source="mlx" target="tokenizers">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e11" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#666666;" edge="1" parent="1" source="core" target="yams">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
<mxCell id="tui" value="&lt;b&gt;RazorbillTUI&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;rzb tui: own ANSI/termios layer; Chat, Dashboard, Models, Settings screens; HTTP client of the server (SSE, /rzb); model cache and tui.yaml on disk. No MLX, no RazorbillServer.&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=1;" vertex="1" parent="1">
          <mxGeometry x="430" y="400" width="280" height="70" as="geometry" />
        </mxCell>
<mxCell id="ahc" value="&lt;b&gt;async-http-client&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px&quot;&gt;HTTP client of rzb tui (streamed answers)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
          <mxGeometry x="820" y="645" width="340" height="50" as="geometry" />
        </mxCell>
<mxCell id="e13" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="cli" target="tui">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="60" y="295" />
              <mxPoint x="60" y="600" />
            </Array>
          </mxGeometry>
        </mxCell>
<mxCell id="e14" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="tui" target="core">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="60" y="295" />
              <mxPoint x="60" y="600" />
            </Array>
          </mxGeometry>
        </mxCell>
<mxCell id="e15" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#666666;" edge="1" parent="1" source="tui" target="ahc">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e12" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#666666;" edge="1" parent="1" source="server" target="hummingbird">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="760" y="435" />
              <mxPoint x="760" y="515" />
            </Array>
          </mxGeometry>
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>