senclaw/cafe

app Quản lý quán cafe / đồ uống 100% cục bộ: kho nguyên liệu theo đơn vị gốc gram / ml / cái (nhập theo kg / lít tự quy đổi), phiếu nhập hàng nhiều dòng với giá vốn bình quân gia quyền, điều chỉnh kiểm kê + thẻ kho, thực đơn món kèm cách pha chế và giá bán, công thức định lượng từng món (gram / ml) để tính giá vốn và lãi gộp, bán hàng trừ kho tự động theo công thức (cảnh báo thiếu nguyên liệu, huỷ đơn hoàn kho), báo cáo nhập hàng theo nhà cung cấp / nguyên liệu / ngày, báo cáo doanh thu – giá vốn – lãi gộp theo ngày / món / nhóm, dự đoán lượng bán và doanh thu theo thứ trong tuần, dự báo nguyên liệu sắp hết kèm đề xuất nhập hàng, và AI phân tích kinh doanh + gợi ý công thức món mới qua bridge SenClaw. App chỉ GHI SỔ cục bộ — không kết nối máy POS hay bán hàng online.

Install

senclaw app install senclaw/cafe

Verifies sha512 and SenClaw’s signature before writing to disk.

Documentation

Quán Cafe — SenClaw Space App

Quản lý quán cafe / đồ uống 100% cục bộ (SQLite):

  • Kho nguyên liệu theo đơn vị gốc g / ml / cái; nhập hàng khai kg / lít tự quy đổi; giá vốn bình quân gia quyền theo phiếu nhập; kiểm kê + thẻ kho.
  • Thực đơn & công thức pha chế: mỗi món có giá bán, cách pha chế và công thức định lượng (25 g cafe, 30 ml sữa đặc…) → giá vốn món + lãi gộp tính tự động.
  • Bán hàng: ghi đơn nhiều dòng, kho tự trừ theo công thức, chốt giá vốn tại thời điểm bán; huỷ đơn hoàn kho.
  • Báo cáo: nhập hàng (theo NCC / nguyên liệu / ngày), doanh thu – giá vốn – lãi gộp (theo ngày / món / nhóm), tồn kho.
  • Dự đoán: lượng bán + doanh thu theo trung bình cùng thứ 4 tuần gần nhất; dự báo tiêu hao nguyên liệu, ngày hết hàng và đề xuất nhập hàng.
  • AI qua bridge SenClaw: phân tích kinh doanh + gợi ý công thức món mới.

Chạy dev

cargo run -p cafe                 # backend http://127.0.0.1:4700
cd apps/cafe/web && npm run dev   # UI dev, proxy /api → :4700

DB tại $SENCLAW_DATA_DIR hoặc ~/.senclaw/apps/cafe/cafe.db. Bind mặc định loopback; đặt SENCLAW_BIND_HOST=0.0.0.0 nếu cần truy cập từ máy khác.

Test & đóng gói

cargo test -p cafe
apps/cafe/scripts/pack.sh         # → apps/cafe/cafe-app.zip

MCP server: cafe-mcp (/api/mcp/sse), 27 tools tiền tố cafe_ — tên đầy đủ dạng mcp__cafe-mcp__cafe_dashboard. Xem skills/cafe-manager/SKILL.md.

Declared permissions

{
  "network": [
    "127.0.0.1"
  ],
  "exec": [
    "./cafe"
  ]
}

Declared by the publisher, not enforced by SenClaw. The CLI compares this against what you already have installed and asks before anything widens.

Published by

@senclawtrusted
benji
44 packages · 0 downloads · member since 2026-07 · GitHub since 2015-06

The checkmark means SenClaw confirmed who this publisher is. It says nothing about whether their packages are safe.

About

Owner@senclaw
Latest1.0.0
Downloads (30d)0
Repositorygithub.com/NortonBen/senclaw-app

Versions

VersionTagsArtifactsPublished
1.0.0latestdarwin-arm64, linux-x64, win32-x642026-08-07

Artifacts · 1.0.0

PlatformFormatSignatureFileSize
darwin-arm64zipunsignedcafe-app.zip3006 KB
linux-x64zipunsignedcafe-app.zip3366 KB
win32-x64zipunsignedcafe-app.zip3292 KB

Unsigned builds require sign-in to download and are not distributed to the auto-updater, because unsigned executables from a new domain get flagged as unsafe. Sign and notarize (macOS) or Authenticode-sign (Windows) to distribute publicly.

Auto-update endpoints

For a Tauri app — add to tauri.conf.json:

"endpoints": ["https://senclaw.bacnd.com/api/v1/updates/tauri/senclaw/cafe/{{target}}/{{arch}}/{{current_version}}"]

For an electron-updater app — generic provider URL:

https://senclaw.bacnd.com/updates/senclaw/cafe/stable

Only signed/notarized artifacts are offered as updates — a client fetches the update without credentials, and unsigned binaries are not publicly downloadable.

Something wrong with this package?

Report this package

Report this package

Tell us what is wrong and a moderator will look at it. Be specific — a report that names a version and a behaviour can be checked in minutes; one that says “looks sketchy” cannot be acted on at all.

Not about this package? Contact us instead. What happens to a report is described in reporting and moderation.

API: GET https://senclaw.bacnd.com/api/v1/packages/senclaw/cafe