npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

datamind

v1.1.1

Published

智能数据分析助手 — 上传数据,用自然语言分析,无需 SQL/Python。支持 CSV/Excel 导入、自然语言查询、自动洞察分析和报告生成。

Downloads

34

Readme

DataMind

智能数据分析助手 — 上传数据,用自然语言分析,无需 SQL/Python

npm version License: MIT GitHub stars

功能特性

  • 📊 数据导入 — 支持 CSV、Excel、Parquet 格式
  • 💬 自然语言查询 — 用中文提问,自动生成 SQL 并执行
  • 🔍 自动洞察 — 智能发现数据中的趋势、异常和关联
  • 📈 可视化 — 自动生成图表,支持导出
  • 📝 报告生成 — 一键生成 Markdown 分析报告
  • 🖥️ Web UI — 现代化深色主题界面,支持拖拽上传
  • 🔒 本地运行 — 数据不出域,隐私安全

快速开始

安装

npm install -g datamind

使用

# 导入数据
datamind import sales.csv

# 查询数据
datamind ask "上个月销售额最高的 Top 10 产品"

# 自动分析
datamind analyze

# 导出报告
datamind export report.md

# 启动 Web UI
datamind ui

Web UI

DataMind 提供了现代化的 Web 界面,支持拖拽上传、自然语言查询和数据可视化。

启动 Web UI

datamind ui --port 3000

访问 http://localhost:3000 即可使用。

Web UI 功能

| 功能 | 说明 | |------|------| | 📤 上传数据 | 支持 CSV 文件拖拽上传 | | 💬 自然语言查询 | 输入问题自动生成 SQL | | 📊 数据表管理 | 查看、分析、导出、删除数据表 | | 📈 可视化图表 | 表格/图表双视图切换 | | 💡 智能洞察 | 自动分析数据趋势和异常 |

Web UI 截图

┌─────────────────────────────────────────────────────┐
│  DataMind                        [上传数据] [帮助]  │
├─────────────────────────────────────────────────────┤
│  ┌─────────────────────────────────────────────┐   │
│  │ 💬 问问数据...                               │   │
│  └─────────────────────────────────────────────┘   │
│                                                     │
│  📊 已上传数据集                    [刷新]          │
│  ┌───────────┬───────────┬─────────────────────┐   │
│  │ sales.csv │ 1,234 行  │ [查询][分析][导出]  │   │
│  └───────────┴───────────┴─────────────────────┘   │
│                                                     │
│  📈 查询结果                                        │
│  ┌─────────────────────────────────────────────┐   │
│  │ (表格或图表展示区域)                         │   │
│  └─────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────┘

API 端点

Web UI 同时提供 RESTful API:

| 端点 | 方法 | 说明 | |------|------|------| | /api/tables | GET | 获取表列表 | | /api/import | POST | 上传数据文件 | | /api/ask | POST | 自然语言查询 | | /api/query | POST | 执行 SQL | | /api/analyze/:table | GET | 分析表 | | /api/schema/:table | GET | 获取表结构 | | /api/export/:table | GET | 导出表数据为 CSV | | /api/tables/:table | DELETE | 删除表 |

文档

Docker

使用 Docker Compose

# 设置环境变量
export DATAMIND_API_KEY=your_api_key

# 启动服务
docker-compose up -d

# 访问 Web UI
open http://localhost:3000

使用 Docker

# 构建镜像
docker build -t datamind .

# 运行容器
docker run -d \
  -p 3000:3000 \
  -e DATAMIND_API_KEY=your_api_key \
  -v datamind-data:/data \
  datamind

开发

# 克隆仓库
git clone https://github.com/wenbingYu/datamind.git
cd datamind

# 安装依赖
npm install

# 构建
npm run build

# 开发模式
npm run dev

# 运行测试
npm test

# 测试覆盖率
npm run test:coverage

技术栈

  • 数据引擎: DuckDB — 嵌入式 OLAP 数据库
  • 向量存储: LanceDB — 轻量级向量数据库
  • LLM: OpenAI 兼容 API (支持阿里云/智谱/本地模型)
  • 图表: ECharts
  • CLI: Commander + TypeScript

License

MIT © wembing