展示HN:Mongo Analyser – 一款带有集成AI助手的MongoDB文本用户界面(TUI)
大家好,
我开发了一个名为 Mongo Analyser 的开源 TUI 应用程序,它使用 Python 编写,可以直接在终端中运行,帮助你清晰地了解 MongoDB 数据库中的内容。
Mongo Analyser 是一个终端应用程序,可以连接到 MongoDB 实例(无论是 Atlas 还是本地),扫描集合以推断字段类型和嵌套文档结构,显示集合统计信息(文档数量、索引和存储大小),并让你查看示例文档。你可以使用简单的文本用户界面,而不是运行 db.collection.find() 命令,甚至可以与一个 AI 模型(目前由 Ollama、OpenAI 或 Google 提供)进行对话,以获取模式解释、查询建议等。
我相信,如果你是一名开发人员、数据工程师、数据分析师,或者任何处理存储在 MongoDB 中的杂乱无章、无模式数据的人,这个工具可以帮助你理解你的数据实际是什么样的,以及如何改善其结构。
项目的 GitHub 仓库: [https://github.com/habedi/mongo-analyser](https://github.com/habedi/mongo-analyser)
查看原文
Hi everyone,<p>I’ve made an open-source TUI application in Python called Mongo Analyser that runs right in your terminal and helps you get a clear picture of what’s inside your MongoDB databases.<p>Mongo Analyser is a terminal app that connects to MongoDB instances (Atlas or local), scans collections to infer field types and nested document structures, shows collection stats (document counts, indexes, and storage size), and lets you view sample documents. Instead of running db.collection.find() commands, you can use a simple text UI and even chat with an AI model (currently provided by Ollama, OpenAI, or Google) for schema explanations, query suggestions, etc.<p>I believe if you’re a developer, data engineer, data analyst, or anyone dealing with messy, schema-less data stored in MongoDB, this tool can help you understand what your data actually looks like and how its structure could be improved.<p>Project's GitHub repository: <a href="https://github.com/habedi/mongo-analyser">https://github.com/habedi/mongo-analyser</a>