Drag-and-drop web app for building Membot brain cartridges from documents.
cd cart-builder
pip install flask pymupdf python-docx openpyxl striprtf sentence-transformers
python app.py- Upload documents (PDF, DOCX, XLSX, TXT, MD, RTF) via drag-and-drop or file browser
- Preview extracted text and edit metadata (owner, description, tags) per file
- Build a brain cartridge — embeds with Nomic, generates sign-zero signatures, packages as
.cart.npz - Search the built cart right in the browser
- Deploy the cart to a remote Membot server
- My Carts panel with breadcrumb folder navigation
- Browse any folder on your machine — see subfolders, existing carts, and ingestable documents
- Open an existing cart to add new files, remove files, or replace documents, then rebuild
- Save multiple cart folder locations for quick access
Click Open on any cart in the My Carts panel. The cart's contents load as file cards. From there:
- Add more files via drag-and-drop or the folder browser's "+ Add to cart" button
- Remove a file (click x) — soft-removes with undo. Removed files are excluded from the next build.
- Replace a file — swaps the document but preserves metadata
- Click Update Cart to rebuild with your changes
The Deploy button uploads the built cart to a remote Membot server. Default target is 137.184.227.79:8040 (writable endpoint with Bearer auth).
The server needs an /api/upload_cartridge route that accepts multipart form data.
cart-builder/
app.py Flask backend
parsers.py Document text extraction (PDF, DOCX, XLSX, TXT, MD, RTF)
builder.py Embedding + sign-zero + cart packaging
templates/
index.html Single-page app
static/
style.css Dark mode UI
app.js Frontend logic
settings.json Saved cart folder paths
uploads/ Temp storage for uploaded files
built_carts/ Default output directory
- Flask
- PyMuPDF (PDF parsing)
- python-docx (DOCX parsing)
- openpyxl (XLSX parsing)
- striprtf (RTF parsing)
- sentence-transformers (Nomic embedding)
- requests (deploy to server)
Cart Builder is the document ingestion frontend for Membot brain cartridges. Carts are portable, LLM-free, searchable knowledge files that any AI agent can use via MCP.