U-Board

한의원 약장 재고판

한의원·약재 · 도면 위 배치(캔버스) — 대형 상황판, 서랍 마흔 칸

한의원 약장의 서랍 마흔 칸 — 서랍마다 약재 이름과 효능, 남은 양이 가득 찼을 때에 견준 막대로 보이고, 발주가 필요한 서랍은 고리가 걸린다(부족은 호박색, 소진은 붉은 면). 약장 아래에는 오늘의 조제 · 대기, 이번 주 많이 쓴 약재, 들어올 약재. 서랍은 «한 부품의 항목을 여덟씩 흘려 놓기» 한 규칙이고 요소 없이 빌트인 부품 다섯으로 그렸다. 예시 데이터.

한의원 약장 재고판

U-Board로 그린 보드입니다. 표시된 값은 이 보드를 위해 지어낸 예시 데이터로, 실제 시설의 값이 아닙니다.

플레이그라운드에서 열기 →

보드 정의 (JSON)

이 보드를 그리는 정의 전부입니다 — 각 값을 어디서 읽는지(data), 무엇을 보이는지(parts), 어디에 놓는지와 배경(layout). U-Board의 편집기와 AI 비서가 쓰는 것과 같은 형식입니다. 배경 그림은 길어서 화면에서는 줄여 보이고, 내려받은 파일에는 그대로 있습니다.

내려받기 — board.json
{
  "board": {
    "title": "약장 재고",
    "theme": "dark",
    "accent": "#c8553d",
    "skin": {
      "palette": {
        "paper": "#2b1f16",
        "ink": "#f1e6cf",
        "muted": "#b79f7c",
        "rule": "#6b4f33"
      },
      "frame": "plate",
      "radius": 2
    }
  },
  "statuses": {
    "enough": {
      "tone": "ok",
      "label": "충분"
    },
    "low": {
      "tone": "warn",
      "label": "발주"
    },
    "out": {
      "tone": "alarm",
      "label": "소진",
      "emphasis": "invert"
    }
  },
  "data": {
    "clinic": {
      "from": "clinic",
      "path": "/clinic/now",
      "time": "updatedAt",
      "fields": {
        "name": {},
        "date": {},
        "prepared": {
          "label": "오늘 조제",
          "unit": "첩"
        },
        "waiting": {
          "label": "대기 환자",
          "unit": "명"
        },
        "wait": {
          "label": "평균 대기",
          "unit": "분"
        }
      }
    },
    "drawers": {
      "from": "clinic",
      "path": "/clinic/drawers",
      "list": "/value",
      "key": "id",
      "time": "updatedAt",
      "fields": {
        "state": {
          "state": "raw"
        },
        "name": {},
        "use": {},
        "stock": {
          "unit": "g"
        },
        "full": {},
        "reorder": {}
      }
    },
    "usage": {
      "from": "clinic",
      "path": "/clinic/usage",
      "list": "/value",
      "key": "herb",
      "answerTime": "/updatedAt",
      "fields": {
        "grams": {
          "unit": "g"
        }
      }
    },
    "deliveries": {
      "from": "clinic",
      "path": "/clinic/deliveries",
      "list": "/value",
      "key": "id",
      "time": "updatedAt",
      "fields": {
        "herb": {},
        "note": {},
        "when": {}
      }
    }
  },
  "parts": {
    "title": {
      "as": "header",
      "of": "clinic",
      "title": "{{name}} · {{date}}",
      "kicker": "약장 재고판",
      "subtitle": "예시 데이터"
    },
    "drawer": {
      "as": "status-card",
      "each": "drawers",
      "title": "{{name}}",
      "subtitle": "{{use}}",
      "show": [
        "state"
      ],
      "meter": {
        "field": "stock",
        "max": "full",
        "form": "bar"
      },
      "highlight": "reorder"
    },
    "today": {
      "as": "stat-list",
      "of": "clinic",
      "title": "오늘",
      "show": [
        "prepared",
        "waiting",
        "wait"
      ]
    },
    "usage": {
      "as": "bar-list",
      "of": "usage",
      "title": "이번 주 많이 쓴 약재",
      "label": "herb",
      "value": "grams"
    },
    "coming": {
      "as": "list",
      "of": "deliveries",
      "title": "들어올 약재",
      "primary": "herb",
      "secondary": "note",
      "trailing": "when"
    }
  },
  "layout": {
    "kind": "canvas",
    "size": [
      1920,
      1160
    ],
    "place": {
      "title": [
        24,
        16,
        1872,
        84
      ],
      "drawer": {
        "flow": {
          "at": [
            24,
            112
          ],
          "cell": [
            223,
            136
          ],
          "gap": [
            12,
            10
          ],
          "columns": 8
        }
      },
      "today": [
        24,
        848,
        520,
        290
      ],
      "usage": [
        560,
        848,
        640,
        290
      ],
      "coming": [
        1216,
        848,
        680,
        290
      ]
    }
  }
}
데이터 (원천 응답 JSON)

보드가 읽는 원천과, 원천이 돌려준 응답입니다 — 보드가 읽는 필드만 남겼습니다. 이 페이지는 서버 없이 이 응답으로 보드를 그립니다.

내려받기 — data.json
{
  "connectors": [
    {
      "key": "clinic",
      "name": "예시 한의원 약장",
      "example": true,
      "attribution": {
        "text": "예시 데이터 — 실제 한의원이 아닙니다"
      }
    }
  ],
  "capturedAt": "2026-10-29T05:40:30.000Z",
  "responses": {
    "clinic": {
      "/clinic/now": {
        "name": "온새미 한의원",
        "date": "10월 29일 목요일 오후",
        "prepared": 38,
        "waiting": 5,
        "wait": 12,
        "updatedAt": "2026-10-29T05:40:00Z"
      },
      "/clinic/drawers": {
        "value": [
          {
            "id": "감초",
            "name": "감초",
            "use": "조화",
            "stock": 1650,
            "full": 2000,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "당귀",
            "name": "당귀",
            "use": "보혈",
            "stock": 200,
            "full": 1500,
            "state": "low",
            "reorder": true,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "천궁",
            "name": "천궁",
            "use": "활혈",
            "stock": 900,
            "full": 1200,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "작약",
            "name": "작약",
            "use": "완급",
            "stock": 1100,
            "full": 1500,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "황기",
            "name": "황기",
            "use": "보기",
            "stock": 1800,
            "full": 2000,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "인삼",
            "name": "인삼",
            "use": "대보원기",
            "stock": 90,
            "full": 800,
            "state": "low",
            "reorder": true,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "숙지황",
            "name": "숙지황",
            "use": "보음",
            "stock": 1300,
            "full": 1500,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "백출",
            "name": "백출",
            "use": "건비",
            "stock": 700,
            "full": 1200,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "복령",
            "name": "복령",
            "use": "이수",
            "stock": 1400,
            "full": 1500,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "진피",
            "name": "진피",
            "use": "이기",
            "stock": 620,
            "full": 1000,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "계지",
            "name": "계지",
            "use": "해표",
            "stock": 500,
            "full": 800,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "마황",
            "name": "마황",
            "use": "발한",
            "stock": 0,
            "full": 600,
            "state": "out",
            "reorder": true,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "생강",
            "name": "생강",
            "use": "온중",
            "stock": 380,
            "full": 1000,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "대추",
            "name": "대추",
            "use": "보중",
            "stock": 2100,
            "full": 2500,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "길경",
            "name": "길경",
            "use": "선폐",
            "stock": 760,
            "full": 900,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "시호",
            "name": "시호",
            "use": "소간",
            "stock": 430,
            "full": 1000,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "황금",
            "name": "황금",
            "use": "청열",
            "stock": 150,
            "full": 900,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "갈근",
            "name": "갈근",
            "use": "해기",
            "stock": 950,
            "full": 1200,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "방풍",
            "name": "방풍",
            "use": "거풍",
            "stock": 310,
            "full": 800,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "독활",
            "name": "독활",
            "use": "거습",
            "stock": 540,
            "full": 800,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "두충",
            "name": "두충",
            "use": "보간신",
            "stock": 720,
            "full": 1000,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "구기자",
            "name": "구기자",
            "use": "보간",
            "stock": 1250,
            "full": 1500,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "산수유",
            "name": "산수유",
            "use": "수렴",
            "stock": 260,
            "full": 1000,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "맥문동",
            "name": "맥문동",
            "use": "윤폐",
            "stock": 880,
            "full": 1200,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "오미자",
            "name": "오미자",
            "use": "수렴",
            "stock": 90,
            "full": 900,
            "state": "low",
            "reorder": true,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "산약",
            "name": "산약",
            "use": "보비",
            "stock": 1180,
            "full": 1500,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "택사",
            "name": "택사",
            "use": "이수",
            "stock": 640,
            "full": 1000,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "목통",
            "name": "목통",
            "use": "이뇨",
            "stock": 410,
            "full": 600,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "천마",
            "name": "천마",
            "use": "식풍",
            "stock": 120,
            "full": 500,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "반하",
            "name": "반하",
            "use": "조습",
            "stock": 60,
            "full": 700,
            "state": "low",
            "reorder": true,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "치자",
            "name": "치자",
            "use": "청열",
            "stock": 590,
            "full": 800,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "연교",
            "name": "연교",
            "use": "해독",
            "stock": 480,
            "full": 900,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "박하",
            "name": "박하",
            "use": "소풍",
            "stock": 300,
            "full": 600,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "금은화",
            "name": "금은화",
            "use": "해독",
            "stock": 420,
            "full": 800,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "결명자",
            "name": "결명자",
            "use": "명목",
            "stock": 980,
            "full": 1200,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "의이인",
            "name": "의이인",
            "use": "이습",
            "stock": 1500,
            "full": 2000,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "향부자",
            "name": "향부자",
            "use": "이기",
            "stock": 700,
            "full": 1000,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "익모초",
            "name": "익모초",
            "use": "조경",
            "stock": 350,
            "full": 800,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "홍화",
            "name": "홍화",
            "use": "활혈",
            "stock": 240,
            "full": 500,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "오가피",
            "name": "오가피",
            "use": "거풍습",
            "stock": 610,
            "full": 900,
            "state": "enough",
            "reorder": false,
            "updatedAt": "2026-10-29T05:40:00Z"
          }
        ],
        "updatedAt": "2026-10-29T05:40:00Z"
      },
      "/clinic/usage": {
        "value": [
          {
            "herb": "감초",
            "grams": 640
          },
          {
            "herb": "대추",
            "grams": 520
          },
          {
            "herb": "생강",
            "grams": 480
          },
          {
            "herb": "당귀",
            "grams": 410
          },
          {
            "herb": "천궁",
            "grams": 360
          }
        ],
        "updatedAt": "2026-10-29T05:40:00Z"
      },
      "/clinic/deliveries": {
        "value": [
          {
            "id": "마황",
            "herb": "마황",
            "note": "600g — 소진",
            "when": "내일 오전",
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "당귀",
            "herb": "당귀",
            "note": "1,000g — 부족",
            "when": "모레",
            "updatedAt": "2026-10-29T05:40:00Z"
          },
          {
            "id": "인삼",
            "herb": "인삼",
            "note": "500g — 부족",
            "when": "다음 주 월요일",
            "updatedAt": "2026-10-29T05:40:00Z"
          }
        ],
        "updatedAt": "2026-10-29T05:40:00Z"
      }
    }
  }
}