@lycoristech/azurapi 0.0.4 → 0.0.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/README.md +14 -6
- package/dist/cjs/config.js +2 -2
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<img src="https://github.com/iujab/azurlane-images/blob/main/banner.png" />
|
|
2
2
|
|
|
3
|
-
# AzurAPI
|
|
3
|
+
# LycorisTech/AzurAPI
|
|
4
4
|
|
|
5
5
|
A self-maintained, current Azur Lane data library. Drop-in replacement for the `@azurapi/azurapi` package.
|
|
6
6
|
|
|
7
7
|
## Why?
|
|
8
8
|
|
|
9
|
-
The older and amazing `@azurapi/azurapi` ecosystem is now 3+ years stale. I have fond memories starting off my computer science hobby building a discord bot using that API. Recently, when revisiting
|
|
9
|
+
The older and amazing `@azurapi/azurapi` ecosystem is now 3+ years stale. I have fond memories starting off my computer science hobby building a discord bot using that API. Recently, when revisiting my old discord bot, I noticed that the azurapi package was years out of date, likely due to the wiki scraper method no longer being viable. This AzurAPI builds on the [AzurLaneTools/AzurLaneData](https://github.com/AzurLaneTools/AzurLaneData) and [nobbyfix/AzurLane-AssetDownloader](https://github.com/nobbyfix/AzurLane-AssetDownloader) repos so our data stays fresh within hours of each game patch.
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -43,6 +43,14 @@ const results = azur.ships.search("Enterp", 5); // top 5 matches
|
|
|
43
43
|
|
|
44
44
|
That's it. The `ships.get()` API is compatible. Ship objects match the same schema!
|
|
45
45
|
|
|
46
|
+
### Relationship to the original AzurAPI project
|
|
47
|
+
|
|
48
|
+
This library is a **schema-compatible successor** to [`@azurapi/azurapi`](https://github.com/AzurAPI/azurapi-js) (GPL-3.0) and its sister data repo [`AzurAPI/azurapi-js-setup`](https://github.com/AzurAPI/azurapi-js-setup) (AGPL-3.0).
|
|
49
|
+
|
|
50
|
+
**This project is not a fork and does not contain any code from those repositories.** It is an independent rewrite built from scratch against the decompiled game data from [AzurLaneTools/AzurLaneData](https://github.com/AzurLaneTools/AzurLaneData), which is a completely separate data source.
|
|
51
|
+
|
|
52
|
+
The output JSON schema (field names, structure, rarity values, etc.) is deliberately kept shape-compatible with the original so existing devs can migrate with a single import change.
|
|
53
|
+
|
|
46
54
|
## Data Freshness
|
|
47
55
|
|
|
48
56
|
Data is auto-refreshed weekly (every Monday) via GitHub Actions from [AzurLaneTools/AzurLaneData](https://github.com/AzurLaneTools/AzurLaneData) (EN + CN + JP regions). The refresh pipeline:
|
|
@@ -71,7 +79,7 @@ Ships have the full AzurAPI-compatible shape including:
|
|
|
71
79
|
The committed `data/ships.json` is fetchable via GitHub raw URL:
|
|
72
80
|
|
|
73
81
|
```
|
|
74
|
-
https://raw.githubusercontent.com/iujab/AzurAPI/main/data/ships.json
|
|
82
|
+
https://raw.githubusercontent.com/iujab/Lycoris-AzurAPI/main/data/ships.json
|
|
75
83
|
```
|
|
76
84
|
|
|
77
85
|
Also available: `ship-list.json` (minimal index), `id-map.json` (name→id lookup), `version.json`.
|
|
@@ -102,12 +110,12 @@ Ship paintings and thumbnails are hosted in a separate GitHub repo: [iujab/azurl
|
|
|
102
110
|
- **Paintings** — skin art in WebP format (`paintings/{asset_name}.webp`)
|
|
103
111
|
- **Thumbnails** — shipyard icons in PNG format (`thumbnails/{group_type}.png`)
|
|
104
112
|
|
|
105
|
-
## License
|
|
113
|
+
## License and Rights
|
|
106
114
|
|
|
107
|
-
|
|
115
|
+
This is an **unofficial, non-commercial, community-maintained fan project**. It is not developed, endorsed, sponsored, or in any way affiliated with Manjuu, Yongshi, Yostar, or any of their subsidiaries.
|
|
108
116
|
|
|
109
117
|
## Acknowledgments
|
|
110
118
|
|
|
111
119
|
- [AzurLaneTools/AzurLaneData](https://github.com/AzurLaneTools/AzurLaneData) — upstream auto-updating game data
|
|
112
120
|
- [nobbyfix/AzurLane-AssetDownloader](https://github.com/nobbyfix/AzurLane-AssetDownloader) — game asset extraction
|
|
113
|
-
- [AzurAPI/azurapi-js](https://github.com/AzurAPI/azurapi-js) — the original library whose schema we replicate, and
|
|
121
|
+
- [AzurAPI/azurapi-js](https://github.com/AzurAPI/azurapi-js) — the original library whose schema we replicate, and the base inspiration for this project!❤️
|
package/dist/cjs/config.js
CHANGED
|
@@ -9,6 +9,6 @@ const IMAGES_REPO = "azurlane-images";
|
|
|
9
9
|
exports.IMAGE_BASE_URL = `https://raw.githubusercontent.com/${GITHUB_USER}/${IMAGES_REPO}/${GITHUB_BRANCH}`;
|
|
10
10
|
exports.PAINTINGS_URL = `${exports.IMAGE_BASE_URL}/paintings`;
|
|
11
11
|
exports.THUMBNAILS_URL = `${exports.IMAGE_BASE_URL}/thumbnails`;
|
|
12
|
-
// Data URLs (AzurAPI repo — for runtime fetch)
|
|
13
|
-
const DATA_REPO = "AzurAPI";
|
|
12
|
+
// Data URLs (Lycoris-AzurAPI repo — for runtime fetch)
|
|
13
|
+
const DATA_REPO = "Lycoris-AzurAPI";
|
|
14
14
|
exports.DATA_BASE_URL = `https://raw.githubusercontent.com/${GITHUB_USER}/${DATA_REPO}/${GITHUB_BRANCH}/data`;
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const IMAGE_BASE_URL = "https://raw.githubusercontent.com/iujab/azurlane-images/main";
|
|
2
2
|
export declare const PAINTINGS_URL = "https://raw.githubusercontent.com/iujab/azurlane-images/main/paintings";
|
|
3
3
|
export declare const THUMBNAILS_URL = "https://raw.githubusercontent.com/iujab/azurlane-images/main/thumbnails";
|
|
4
|
-
export declare const DATA_BASE_URL = "https://raw.githubusercontent.com/iujab/AzurAPI/main/data";
|
|
4
|
+
export declare const DATA_BASE_URL = "https://raw.githubusercontent.com/iujab/Lycoris-AzurAPI/main/data";
|
|
5
5
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,iEAAqF,CAAC;AACjH,eAAO,MAAM,aAAa,2EAAgC,CAAC;AAC3D,eAAO,MAAM,cAAc,4EAAiC,CAAC;AAI7D,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,iEAAqF,CAAC;AACjH,eAAO,MAAM,aAAa,2EAAgC,CAAC;AAC3D,eAAO,MAAM,cAAc,4EAAiC,CAAC;AAI7D,eAAO,MAAM,aAAa,sEAAwF,CAAC"}
|
package/dist/config.js
CHANGED
|
@@ -6,7 +6,7 @@ const IMAGES_REPO = "azurlane-images";
|
|
|
6
6
|
export const IMAGE_BASE_URL = `https://raw.githubusercontent.com/${GITHUB_USER}/${IMAGES_REPO}/${GITHUB_BRANCH}`;
|
|
7
7
|
export const PAINTINGS_URL = `${IMAGE_BASE_URL}/paintings`;
|
|
8
8
|
export const THUMBNAILS_URL = `${IMAGE_BASE_URL}/thumbnails`;
|
|
9
|
-
// Data URLs (AzurAPI repo — for runtime fetch)
|
|
10
|
-
const DATA_REPO = "AzurAPI";
|
|
9
|
+
// Data URLs (Lycoris-AzurAPI repo — for runtime fetch)
|
|
10
|
+
const DATA_REPO = "Lycoris-AzurAPI";
|
|
11
11
|
export const DATA_BASE_URL = `https://raw.githubusercontent.com/${GITHUB_USER}/${DATA_REPO}/${GITHUB_BRANCH}/data`;
|
|
12
12
|
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,MAAM,WAAW,GAAG,OAAO,CAAC;AAC5B,MAAM,aAAa,GAAG,MAAM,CAAC;AAE7B,oCAAoC;AACpC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AACtC,MAAM,CAAC,MAAM,cAAc,GAAG,qCAAqC,WAAW,IAAI,WAAW,IAAI,aAAa,EAAE,CAAC;AACjH,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,cAAc,YAAY,CAAC;AAC3D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,cAAc,aAAa,CAAC;AAE7D
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,MAAM,WAAW,GAAG,OAAO,CAAC;AAC5B,MAAM,aAAa,GAAG,MAAM,CAAC;AAE7B,oCAAoC;AACpC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AACtC,MAAM,CAAC,MAAM,cAAc,GAAG,qCAAqC,WAAW,IAAI,WAAW,IAAI,aAAa,EAAE,CAAC;AACjH,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,cAAc,YAAY,CAAC;AAC3D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,cAAc,aAAa,CAAC;AAE7D,uDAAuD;AACvD,MAAM,SAAS,GAAG,iBAAiB,CAAC;AACpC,MAAM,CAAC,MAAM,aAAa,GAAG,qCAAqC,WAAW,IAAI,SAAS,IAAI,aAAa,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lycoristech/azurapi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
"gacha",
|
|
47
47
|
"waifu"
|
|
48
48
|
],
|
|
49
|
-
"homepage": "https://github.com/iujab/AzurAPI#readme",
|
|
49
|
+
"homepage": "https://github.com/iujab/Lycoris-AzurAPI#readme",
|
|
50
50
|
"repository": {
|
|
51
51
|
"type": "git",
|
|
52
|
-
"url": "git+https://github.com/iujab/AzurAPI.git"
|
|
52
|
+
"url": "git+https://github.com/iujab/Lycoris-AzurAPI.git"
|
|
53
53
|
},
|
|
54
54
|
"bugs": {
|
|
55
|
-
"url": "https://github.com/iujab/AzurAPI/issues"
|
|
55
|
+
"url": "https://github.com/iujab/Lycoris-AzurAPI/issues"
|
|
56
56
|
},
|
|
57
57
|
"license": "MIT",
|
|
58
|
-
"author": "",
|
|
58
|
+
"author": "iujab",
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
}
|