On the fly UI generation for analysis of private documents using private computer inference on 0G
manifest HQ is a conversational workspace that turns documents into interactive dashboards. Users upload financial reports, spreadsheets, PDFs, images, or text files and ask questions in plain language. They can compare expenses, explore revenue, summarize reports, or request forecasts with stated assumptions.
The AI generates a custom React interface for each request, including charts, tables, and summaries. Follow-up messages refine the analysis and presentation. Users can inspect and export the generated React source.
Inference runs through 0G Private Computer with private routing requested. API credentials stay on the backend, and the interface displays request IDs and available usage information. Document contents and conversations are held in session memory rather than saved to an application database.
manifest HQ combines an HTML, CSS, and JavaScript frontend with a Python backend. Text files are read in the browser, PDFs are extracted using Poppler, and Office documents are parsed on the server. Supported images are submitted as native image input.
The backend sends the document context and conversation to 0G’s OpenAI-compatible API using the 0GM model and private routing. The model returns a JSON response containing an explanation and complete React JSX source. A Node.js subprocess uses esbuild to compile the component and bundle React without executing the generated code on the server.
The browser renders the compiled component inside a sandboxed iframe with an opaque origin and a restrictive Content Security Policy. Compilation failures preserve the previous working preview, and follow-up requests can include error context for repairs. Docker packages Python, Node.js, and Poppler for deployment. The landing page incorporates the MIT-licensed ASCII Sharks animation.

