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 🙏

© 2025 – Pkg Stats / Ryan Hefner

parse-file-main

v1.0.4

Published

- [Parsex-Frontend](#parsex-frontend) - [项目简介](#项目简介) - [安装依赖](#安装依赖) - [启动项目](#启动项目) - [QA](#qa) - [脚本命令](#脚本命令) - [项目结构](#项目结构) - [贡献](#贡献) - [许可证](#许可证)

Readme

Parsex-Frontend

项目简介

在解析结果审核校对、效果测评等场景,需要可视化展示文档解析后的结果。

TextIn.com 体验页上,我们提供丰富的可视化和交互功能,这部分前端组件现已开源!

项目用ES6开发,基于React框架。

目前前端组件已实现以下特性:

  1. 预览渲染主流图片格式和pdf文件,提供缩放和旋转功能
  2. Markdown结果渲染,支持各级标题、图片、公式渲染展示
  3. 各类解析元素提取展示,支持查看表格、公式、图片、手写、页眉页脚和原始 JSON 结果
  4. 解析元素文档位置溯源,原文画框标注各元素位置,可以点击画框跳转解析结果,也可以点击解析结果跳转原文画框
  5. 各级目录树还原展示,支持点击跳转相应章节
  6. 参数配置,支持配置不同参数组合,获取相应解析结果
  7. 复制和导出markdown文件,可导出结果为md/txt文件
  8. 复制和导出文档中的表格和图片,表格可以直接复制粘贴到Excel表格中,也可直接导出Excel文件;图片可导出zip包
  9. Markdown结果编辑,支持在线编辑识别结果,并导出编辑后的内容

以上功能,都可以在 TextIn.com 上体验使用,👉 体验地址

安装依赖

环境要求:

  1. node 版本 >= 18.20.4
  2. 强烈建议使用 yarn 包管理器,项目仓库包含 yarn.lock,指定了依赖版本

拉取项目

git clone https://github.com/intsig-textin/parsex-frontend.git

使用 npm 或 yarn 安装:

yarn install
# 或
npm install

启动项目

yarn start
# 或
npm run start

浏览器访问 http://localhost:10007

QA

  1. 自定义API接口

修改页面【参数配置 -> custom_api的参数值】

  1. 如何获取x-ti-app-id, x-ti-secret-code

此链接免费注册或登录账号后查看

脚本命令

在此列出常用的 npm/yarn 脚本命令,例如:

  • npm startyarn start:启动开发服务器。
  • npm run buildyarn build:打包项目。
  • npm run lintyarn lint:检查代码风格。

全部scripts详细参考 package.json - scripts

项目结构

简要描述项目文件结构,以帮助贡献者和用户理解项目的组织方式。

├── src/                    # 源代码
│   ├── assets/             # 静态资源
│   ├── components/         # 全局通用组件
│   ├── layouts/            # 页面框架组件
│   ├── modules/            # store
│   ├── pages/              # 页面组件
│   ├── service/            # 接口服务
│   ├── utils/              # 工具函数
│   └── app.ts              # 入口文件
├── public/                 # 静态资源
├── config/                 # 配置
│   ├── routes              # 路由
│   └── config.*            # 其他umi配置
├── .eslintrc.js            # ESLint 配置
├── tsconfig.json           # TypeScript 配置
├── package.json            # 项目配置
└── README.md               # 项目说明文件

贡献

欢迎贡献代码!在开始之前,请阅读 CONTRIBUTING.md 以了解贡献流程和指南。

许可证

此项目基于 CC-NC License 进行许可。