@poe2-toolkit/item-extractor 0.1.0

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vladislav Rajtmajer
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 ADDED
@@ -0,0 +1,33 @@
1
+ # @poe2-toolkit/item-extractor
2
+
3
+ [![npm](https://img.shields.io/npm/v/@poe2-toolkit/item-extractor.svg)](https://www.npmjs.com/package/@poe2-toolkit/item-extractor)
4
+ [![status: WIP](https://img.shields.io/badge/status-work%20in%20progress-orange.svg)](#)
5
+ [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
6
+
7
+ Builds **Path of Exile 2 item** data and icons straight from the official GGPK /
8
+ patch server.
9
+
10
+ > **Work in progress.** The API is not implemented yet. `buildItems(source)`
11
+ > currently throws. This package exists to reserve its place in the toolkit and
12
+ > document the intended shape.
13
+
14
+ It will mirror [`@poe2-toolkit/tree-extractor`](../poe2-tree-extractor): source-agnostic,
15
+ built on a [`@poe2-toolkit/ggpk`](../poe2-ggpk) source, returning formatted data rather
16
+ than writing into the package. Planned coverage: base item types, their stats,
17
+ and their icons.
18
+
19
+ **Code only.** Like the rest of the toolkit, this package will ship no game data
20
+ and no art.
21
+
22
+ ## Attributions and legal
23
+
24
+ This is an unofficial, fan-made project, **not** affiliated with, endorsed by, or
25
+ sponsored by Grinding Gear Games. "Path of Exile 2" is a trademark of Grinding
26
+ Gear Games, and all game content, data, and art are their property. Thank you to
27
+ Grinding Gear Games for making Path of Exile 2. GGPK access builds on
28
+ [`pathofexile-dat`](https://github.com/SnosMe/poe-dat-viewer) (MIT, © SnosMe);
29
+ full attribution is in the repository [NOTICE](../../NOTICE.md).
30
+
31
+ ## License
32
+
33
+ MIT — see [LICENSE](./LICENSE).
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @poe2-toolkit/item-extractor — builds Path of Exile 2 item data and icons from a
3
+ * {@link GgpkSource}.
4
+ *
5
+ * Work in progress: the API is not implemented yet. It will mirror
6
+ * `@poe2-toolkit/tree-extractor` — source-agnostic, GGPK-only, shipping code rather than
7
+ * data — extracting base item types, their stats and their icons.
8
+ */
9
+ import type { GgpkSource } from '@poe2-toolkit/ggpk';
10
+ /**
11
+ * Planned entry point: extract item data and icons from a GGPK source.
12
+ *
13
+ * @throws always — not implemented yet.
14
+ */
15
+ export declare function buildItems(source: GgpkSource): Promise<never>;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,CAInE"}
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @poe2-toolkit/item-extractor — builds Path of Exile 2 item data and icons from a
3
+ * {@link GgpkSource}.
4
+ *
5
+ * Work in progress: the API is not implemented yet. It will mirror
6
+ * `@poe2-toolkit/tree-extractor` — source-agnostic, GGPK-only, shipping code rather than
7
+ * data — extracting base item types, their stats and their icons.
8
+ */
9
+ /**
10
+ * Planned entry point: extract item data and icons from a GGPK source.
11
+ *
12
+ * @throws always — not implemented yet.
13
+ */
14
+ export async function buildItems(source) {
15
+ void source;
16
+ throw new Error('@poe2-toolkit/item-extractor is not implemented yet');
17
+ }
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,MAAkB;IACjD,KAAK,MAAM,CAAC;IAEZ,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;AACzE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@poe2-toolkit/item-extractor",
3
+ "version": "0.1.0",
4
+ "description": "Builds Path of Exile 2 item data and icons straight from the official GGPK / patch server. Code only — ships no game data or art. Work in progress.",
5
+ "keywords": [
6
+ "path-of-exile",
7
+ "poe2",
8
+ "items",
9
+ "ggpk",
10
+ "extractor"
11
+ ],
12
+ "license": "MIT",
13
+ "type": "module",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ }
19
+ },
20
+ "main": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "files": [
23
+ "dist",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "scripts": {
28
+ "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
29
+ "build": "npm run clean && tsc -p tsconfig.build.json",
30
+ "prepack": "npm run build",
31
+ "typecheck": "tsc --noEmit",
32
+ "test": "vitest run",
33
+ "test:watch": "vitest"
34
+ },
35
+ "dependencies": {
36
+ "@poe2-toolkit/ggpk": "^0.1.0"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^22.0.0",
40
+ "typescript": "^5.7.0",
41
+ "vitest": "^3.0.0"
42
+ },
43
+ "engines": {
44
+ "node": ">=18"
45
+ },
46
+ "publishConfig": {
47
+ "access": "public"
48
+ }
49
+ }