# Repository Briefing: lhz56/bento
> Source: https://repoforai.com/repo/lhz56/bento (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/lhz56/bento
- **Official Docs / Website**: https://takeitapart.app
- **Category**: Chat UI & AI Apps (聊天界面与 AI 应用)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: A (78/100 · Maintenance 35/35 · Adoption 12/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Momentum**: 19 ★ total (+1 24h / +18 7d) · 3 forks
- **Topics**: `ai`, `algorithms`, `chatgpt`, `claude`, `code-visualization`, `codebase-explorer`, `codex`, `computer-science`, `education`, `electron`, `gemini`, `github-copilot`
- **When to Use**: Best for: Educators, learners, and engineers onboarding to unfamiliar public repositories who want runnable examples and visual code navigation without operating a model service. Skip if: You need offline AI, provider-isolated processing, automation that edits or runs the target repository, or a supported centralized deployment across Windows and macOS.

## Overview
```text
### Architecture & Core Mechanics
Bento is a JavaScript Electron app for macOS with a separate browser build. The tree includes `electron/`, `src/`, and `vite.config.js`; `package.json` lists `electron-updater` as the only runtime dependency and exposes `build:web` and `dist` scripts. The updater dependency shows an integration point, not that a desktop update channel is currently publishing artifacts.

For desktop questions, Bento invokes a supported official AI CLI using its existing sign-in, with the CLI’s tools disabled so the model can only return text. Running lesson code is separate: Python uses sandboxed CPython compiled to WebAssembly. GitHub exploration is a third path that reads repository contents without executing them. The integration points are the named CLIs; there is no evidenced plugin protocol for adding arbitrary providers.

### Key Capabilities & Differentiators
Bento turns answers into runnable lessons that pair code with animation and line-by-line explanation. Repository exploration emphasizes orientation: architecture maps, request-flow views, a tool inventory, potential trouble spots, and files grouped by role. The bundled material includes 32 engineering techniques, 34 scaling puzzles, and seven ordered learning paths. The puzzle sizes describe exercises, not measured application performance.

Desktop integrations are Claude through `claude` (Pro or Max), ChatGPT through `codex` (Plus, Pro, or Business), Gemini through `agy` or `gemini` (AI Pro or an API-key option), and Copilot through `copilot` (available with a free GitHub plan). These are CLI and access-plan choices, not a verified list of individual models. The `/try` browser experience supports public GitHub exploration and bundled lessons on phones as well as desktops, with an optional AI connection for custom questions.

### Trade-offs & Limitations
Compared with direct provider chat, Bento trades generality for a repeatable learning workflow: run a lesson, follow a visualization, and find the source files behind an architectural explanation. Compared with an IDE assistant, it keeps the inspected project read-only. That is useful for onboarding and teaching, but it does not replace editing, building, testing, or profiling a checkout. A request-flow view should not be treated as a runtime trace, nor a highlighted trouble spot as an audited finding.

Reusing a provider subscription avoids operating a model service, but makes custom answers dependent on provider access, CLI compatibility, and connectivity. Questions go to the selected AI provider; local lesson execution therefore does not make Bento an offline or provider-isolated system. The desktop app has no Bento account or analytics, while the hosted site and `/try` count visits anonymously. MIT governs Bento’s code, not the terms of the connected AI service.

### Hardware & Deployment Guide
The desktop target is macOS. For a source build, use Git and a Node.js/npm environment, run `npm install`, then `npm run dev` for hot reload. `npm test` is the listed test entry point and does not use an AI plan. The build scripts include `dist` and `build:web`. Although an end-to-end `npm run smoke` command is mentioned, `smoke` is absent from the supplied package-script list; confirm it exists in the checkout before putting it in CI.

For generated desktop answers, install and sign in to one supported provider CLI; Bento can launch installation visibly in Terminal when the CLI is missing. Local lesson execution does not make provider-backed answers or GitHub fetching offline. `/try` is the documented browser option, and a web build script alone does not establish a supported self-hosting topology. No published GitHub release is listed, so versioned binaries and update-channel availability should be verified separately. Native iOS and Windows availability should not be inferred from roadmap mentions or the presence of `ios/`.
```

## Key Capabilities
```text
- Provider integration: desktop uses an existing sign-in through `claude`, `codex`, `agy` or `gemini`, or `copilot`, with CLI tools disabled
- Execution boundary: lesson Python runs in sandboxed WebAssembly CPython; repository exploration does not execute the inspected project
- Repository navigation: public GitHub projects can be browsed through architecture maps, request-flow views, and role-based file grouping
- Learning content: 32 engineering techniques, 34 scaling puzzles, and seven ordered learning paths
- Browser access: `/try` provides public-repository exploration, bundled lessons, and an optional AI connection for custom questions
- Build surface: separate `build:web` and `dist` scripts, an npm test entry point, and `electron-updater` as the sole declared runtime dependency
```

## Quick Start / Clone
```bash
git clone https://github.com/lhz56/bento && cd bento
npm install
npm run dev      # the app, with hot reload
npm test         # no check ever spends an AI plan
npm run smoke    # the real app, hidden, end to end
```
