webforai 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 inaridiy
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 inaridiy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,74 +1,74 @@
1
- # Web for AI
2
-
3
- ![LOGO](https://github.com/inaridiy/webforai/blob/main/images/logo.webp)
4
-
5
- A library that provides a web interface for AI
6
-
7
- ## Features
8
-
9
- - Ultra-precise HTML2Markdown conversion
10
- - Ultra-precise Markdown segmentation based on AST
11
- - Ultra-precise HTML retrieval functions using headless browsers
12
- - The core functionality is edge-native (runs on Cloudflare Workers!!!)
13
-
14
- ## Demo
15
-
16
- There is a demo API for Html2Markdown deployed on CloudflareWorker. Please access the following link
17
-
18
- - [https://webforai.inaridiy.workers.dev/?url=https://www.npmjs.com/package/webforai](https://webforai.inaridiy.workers.dev/?url=https://www.npmjs.com/package/webforai)
19
- - [https://webforai.inaridiy.workers.dev/?html=%3Ch1%3EHello%20World%3C/h1%3E](https://webforai.inaridiy.workers.dev/?html=%3Ch1%3EHello%20World%3C/h1%3E)
20
-
21
- ## Quick Start
22
-
23
- Just install and execute scripts
24
-
25
- ```bash
26
- pnpm i webforai playwright
27
- ```
28
-
29
- ```js
30
- import { promises as fs } from "fs";
31
- import { htmlToMarkdown, htmlToMdast } from "webforai";
32
- import { loadHtml } from "webforai/loaders/playwright";
33
-
34
- const url = "https://www.npmjs.com/package/webforai";
35
- const html = await loadHtml(url);
36
-
37
- const markdown = htmlToMarkdown(html, { solveLinks: url });
38
-
39
- await fs.writeFile("output.md", markdown);
40
- ```
41
-
42
- other examples are in [examples](./examples/simple/src/index.ts)
43
-
44
- ## Usage
45
-
46
- ### Main Functions
47
-
48
- **`htmlToMarkdown(html: string, options?: HtmlToMarkdownOptions): string`**
49
- Convert HTML to Markdown. By default, unnecessary HTML is excluded and processed.
50
- If `solveLinks` is specified, the relative links in the Mdast will be resolved.
51
- This function just calls htmlToMdast and mdastToMarkdown in that order internally.
52
-
53
- **`htmlToMdast(html: string, options?: HtmlToMdastOptions): Mdast`**
54
- This project uses Hast and Mdast as defined by syntax-tree internally.
55
- This function converts HTML to Mdast, an intermediate representation, which is required when using `mdastSplitter`, etc.
56
-
57
- **`mdastToMarkdown(mdast: Mdast | RootContent[], options?: { solveLinks?: string }): string`**
58
- Convert Mdast to Markdown. If `solveLinks` is specified, the relative links in the Mdast will be resolved.
59
-
60
- ### Loader Functions
61
-
62
- **`loadHtml(url: string, options?: LoadHtmlOptions): Promise<string>`**
63
- Load HTML from the specified URL. This function uses Playwright internally.
64
-
65
- ## Early Users
66
-
67
- ### Voice Genius - Explanatory video generation by AI
68
-
69
- <img src="https://github.com/inaridiy/webforai/blob/main/images/voice-genius.png" width="300px">
70
-
71
- by [@moons14](https://twitter.com/moons_dev)
72
-
73
- AI can be used to automatically generate highly accurate commentary videos.
74
- Supports conversations and presentations using synthesized voice, embedding of images in videos, etc.
1
+ # Web for AI
2
+
3
+ ![LOGO](https://github.com/inaridiy/webforai/blob/main/images/logo.webp)
4
+
5
+ A library that provides a web interface for AI
6
+
7
+ ## Features
8
+
9
+ - Ultra-precise HTML2Markdown conversion
10
+ - Ultra-precise Markdown segmentation based on AST
11
+ - Ultra-precise HTML retrieval functions using headless browsers
12
+ - The core functionality is edge-native (runs on Cloudflare Workers!!!)
13
+
14
+ ## Demo
15
+
16
+ There is a demo API for Html2Markdown deployed on CloudflareWorker. Please access the following link
17
+
18
+ - [https://webforai.inaridiy.workers.dev/?url=https://www.npmjs.com/package/webforai](https://webforai.inaridiy.workers.dev/?url=https://www.npmjs.com/package/webforai)
19
+ - [https://webforai.inaridiy.workers.dev/?html=%3Ch1%3EHello%20World%3C/h1%3E](https://webforai.inaridiy.workers.dev/?html=%3Ch1%3EHello%20World%3C/h1%3E)
20
+
21
+ ## Quick Start
22
+
23
+ Just install and execute scripts
24
+
25
+ ```bash
26
+ pnpm i webforai playwright
27
+ ```
28
+
29
+ ```js
30
+ import { promises as fs } from "fs";
31
+ import { htmlToMarkdown, htmlToMdast } from "webforai";
32
+ import { loadHtml } from "webforai/loaders/playwright";
33
+
34
+ const url = "https://www.npmjs.com/package/webforai";
35
+ const html = await loadHtml(url);
36
+
37
+ const markdown = htmlToMarkdown(html, { solveLinks: url });
38
+
39
+ await fs.writeFile("output.md", markdown);
40
+ ```
41
+
42
+ other examples are in [examples](./examples/simple/src/index.ts)
43
+
44
+ ## Usage
45
+
46
+ ### Main Functions
47
+
48
+ **`htmlToMarkdown(html: string, options?: HtmlToMarkdownOptions): string`**
49
+ Convert HTML to Markdown. By default, unnecessary HTML is excluded and processed.
50
+ If `solveLinks` is specified, the relative links in the Mdast will be resolved.
51
+ This function just calls htmlToMdast and mdastToMarkdown in that order internally.
52
+
53
+ **`htmlToMdast(html: string, options?: HtmlToMdastOptions): Mdast`**
54
+ This project uses Hast and Mdast as defined by syntax-tree internally.
55
+ This function converts HTML to Mdast, an intermediate representation, which is required when using `mdastSplitter`, etc.
56
+
57
+ **`mdastToMarkdown(mdast: Mdast | RootContent[], options?: { solveLinks?: string }): string`**
58
+ Convert Mdast to Markdown. If `solveLinks` is specified, the relative links in the Mdast will be resolved.
59
+
60
+ ### Loader Functions
61
+
62
+ **`loadHtml(url: string, options?: LoadHtmlOptions): Promise<string>`**
63
+ Load HTML from the specified URL. This function uses Playwright internally.
64
+
65
+ ## Early Users
66
+
67
+ ### Voice Genius - Explanatory video generation by AI
68
+
69
+ <img src="https://github.com/inaridiy/webforai/blob/main/images/voice-genius.png" width="300px">
70
+
71
+ by [@moons14](https://twitter.com/moons_dev)
72
+
73
+ AI can be used to automatically generate highly accurate commentary videos.
74
+ Supports conversations and presentations using synthesized voice, embedding of images in videos, etc.
@@ -27,10 +27,23 @@ var import_extract_hast = require("./extract-hast");
27
27
  var import_custom_a_handler = require("./mdast-handlers/custom-a-handler");
28
28
  var import_custom_div_handler = require("./mdast-handlers/custom-div-handler");
29
29
  var import_math_handler = require("./mdast-handlers/math-handler");
30
+ const PRESET_EXTRACT_HAST = {
31
+ strongly: import_extract_hast.stronglyExtractHast
32
+ };
33
+ const DEFAULT_EXTRACT_HAST = ["strongly"];
30
34
  const htmlToMdast = (html, options) => {
31
- const { extractHast = "strongly" } = options || {};
35
+ const { extractHast = DEFAULT_EXTRACT_HAST } = options || {};
36
+ const _extractHast = Array.isArray(extractHast) ? extractHast : [extractHast];
32
37
  const hast = (0, import_hast_util_from_html.fromHtml)(html, { fragment: true });
33
- const extractedHast = extractHast === "strongly" ? (0, import_extract_hast.stronglyExtractHast)(hast) : typeof extractHast === "function" ? extractHast(hast) : hast;
38
+ const extractedHast = _extractHast.reduce((acc, extractHast2) => {
39
+ if (extractHast2 === false)
40
+ return acc;
41
+ if (typeof extractHast2 === "string" && extractHast2 in PRESET_EXTRACT_HAST)
42
+ return PRESET_EXTRACT_HAST[extractHast2](acc);
43
+ if (typeof extractHast2 === "function")
44
+ return extractHast2(acc);
45
+ throw new Error(`Invalid extractHast: ${extractHast2}`);
46
+ }, hast) || hast;
34
47
  const mdast = (0, import_hast_util_to_mdast.toMdast)(extractedHast, {
35
48
  handlers: { div: import_custom_div_handler.customDivHandler, math: import_math_handler.mathHandler, a: import_custom_a_handler.customAHandler, br: () => {
36
49
  } }
@@ -37,11 +37,10 @@ const loadHtml = async (url, context) => {
37
37
  let _browser = null;
38
38
  let _context;
39
39
  if (!context) {
40
- _browser = await playwright.chromium.launch({ headless: false });
40
+ _browser = await playwright.chromium.launch({ headless: true });
41
41
  _context = await _browser.newContext();
42
- } else {
42
+ } else
43
43
  _context = context;
44
- }
45
44
  const page = await _context.newPage();
46
45
  await page.goto(url);
47
46
  await Promise.race([page.waitForLoadState("networkidle"), sleep(1e4)]);
@@ -5,10 +5,23 @@ import { stronglyExtractHast } from "./extract-hast/index.js";
5
5
  import { customAHandler } from "./mdast-handlers/custom-a-handler.js";
6
6
  import { customDivHandler } from "./mdast-handlers/custom-div-handler.js";
7
7
  import { mathHandler } from "./mdast-handlers/math-handler.js";
8
+ var PRESET_EXTRACT_HAST = {
9
+ strongly: stronglyExtractHast
10
+ };
11
+ var DEFAULT_EXTRACT_HAST = ["strongly"];
8
12
  var htmlToMdast = (html, options) => {
9
- const { extractHast = "strongly" } = options || {};
13
+ const { extractHast = DEFAULT_EXTRACT_HAST } = options || {};
14
+ const _extractHast = Array.isArray(extractHast) ? extractHast : [extractHast];
10
15
  const hast = fromHtml(html, { fragment: true });
11
- const extractedHast = extractHast === "strongly" ? stronglyExtractHast(hast) : typeof extractHast === "function" ? extractHast(hast) : hast;
16
+ const extractedHast = _extractHast.reduce((acc, extractHast2) => {
17
+ if (extractHast2 === false)
18
+ return acc;
19
+ if (typeof extractHast2 === "string" && extractHast2 in PRESET_EXTRACT_HAST)
20
+ return PRESET_EXTRACT_HAST[extractHast2](acc);
21
+ if (typeof extractHast2 === "function")
22
+ return extractHast2(acc);
23
+ throw new Error(`Invalid extractHast: ${extractHast2}`);
24
+ }, hast) || hast;
12
25
  const mdast = toMdast(extractedHast, {
13
26
  handlers: { div: customDivHandler, math: mathHandler, a: customAHandler, br: () => {
14
27
  } }
@@ -5,11 +5,10 @@ var loadHtml = async (url, context) => {
5
5
  let _browser = null;
6
6
  let _context;
7
7
  if (!context) {
8
- _browser = await playwright.chromium.launch({ headless: false });
8
+ _browser = await playwright.chromium.launch({ headless: true });
9
9
  _context = await _browser.newContext();
10
- } else {
10
+ } else
11
11
  _context = context;
12
- }
13
12
  const page = await _context.newPage();
14
13
  await page.goto(url);
15
14
  await Promise.race([page.waitForLoadState("networkidle"), sleep(1e4)]);
@@ -1,6 +1,5 @@
1
- import type { Root as Hast } from "hast";
2
- export interface HtmlToMarkdownOptions {
3
- extractHast?: false | ((hast: Hast) => Hast);
1
+ import { HtmlToMdastOptions } from "./html-to-mdast";
2
+ export interface HtmlToMarkdownOptions extends HtmlToMdastOptions {
4
3
  url?: string;
5
4
  }
6
5
  export declare const htmlToMarkdown: (html: string, options?: HtmlToMarkdownOptions) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"html-to-markdown.js","sourceRoot":"","sources":["../../src/html-to-markdown.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAOtD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,OAA+B,EAAU,EAAE;IACvF,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACjD,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC"}
1
+ {"version":3,"file":"html-to-markdown.js","sourceRoot":"","sources":["../../src/html-to-markdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAMtD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,OAA+B,EAAU,EAAE;IACvF,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACjD,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { Root as Hast } from "hast";
1
+ import type { Nodes as Hast } from "hast";
2
2
  import type { Nodes as Mdast } from "mdast";
3
+ type ExtractHast = ((hast: Hast) => Hast) | false | "strongly";
3
4
  export type HtmlToMdastOptions = {
4
- extractHast?: false | ((hast: Hast) => Hast) | "strongly";
5
+ extractHast?: ExtractHast | ExtractHast[];
5
6
  };
6
7
  export declare const htmlToMdast: (html: string, options?: HtmlToMdastOptions) => Mdast;
8
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"html-to-mdast.js","sourceRoot":"","sources":["../../src/html-to-mdast.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAM5D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,OAA4B,EAAS,EAAE;IAChF,MAAM,EAAE,WAAW,GAAG,UAAU,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAEnD,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAChD,MAAM,aAAa,GAClB,WAAW,KAAK,UAAU;QACzB,CAAC,CAAC,mBAAmB,CAAC,IAAI,CAAC;QAC3B,CAAC,CAAC,OAAO,WAAW,KAAK,UAAU;YACjC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC;YACnB,CAAC,CAAC,IAAI,CAAC;IAEX,MAAM,KAAK,GAAG,OAAO,CAAC,aAAa,EAAE;QACpC,QAAQ,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE;KACvF,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACd,CAAC,CAAC"}
1
+ {"version":3,"file":"html-to-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AAK,EAAE,CAAC;IACnB,IAAI,QAAQ;QAAE,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IACrC,OAAO,IAAI,CAAC;AACb,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webforai",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "A library that provides a web interface for AI",
5
5
  "author": "inaridiy",
6
6
  "license": "MIT",