{"_id":"@ches3/annict-search","_rev":"6-537f986c9a25d79c3051d2369fd3fb39","name":"@ches3/annict-search","dist-tags":{"latest":"0.4.3"},"versions":{"0.1.0":{"name":"@ches3/annict-search","version":"0.1.0","author":{"name":"ches3"},"license":"MIT","_id":"@ches3/annict-search@0.1.0","maintainers":[{"name":"ches3","email":"chestnut31415@gmail.com"}],"dist":{"shasum":"75cfdc7eddc8e6496308e6a029729616e0b49ace","tarball":"https://registry.npmjs.org/@ches3/annict-search/-/annict-search-0.1.0.tgz","fileCount":8,"integrity":"sha512-KsfWpOimSP8UFdwhL44jLTVqsn7Y74GmA9fAxt6AfdzX1bP7JYWbv4O7g/hlixMpePfZ47Gwzya3N8hxaL5Jqw==","signatures":[{"sig":"MEUCIDJq1UznldiMnMHjRR+ZtCqno1HE8VSywQmiakH9+riKAiEArEANh0OFZN/ntYctWoTzLvVgkSbNQqC1jSHIrs4yNIk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":243264},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"b0c843cfdc729e5e9a86b44bfcc0b2f3b8cbc3ea","scripts":{"lint":"biome lint --write ./src","test":"vitest","build":"tsup","check":"biome check --write ./src","format":"biome format --write ./src","gql-gen":"graphql-codegen"},"_npmUser":{"name":"ches3","email":"chestnut31415@gmail.com"},"_npmVersion":"10.8.2","description":"AnnictのAPIを使って作品の検索と記録をするライブラリ","directories":{},"_nodeVersion":"20.18.0","dependencies":{"romans":"^2.0.16","graphql":"^16.9.0","@ches3/zenhan":"^1.0.1","graphql-request":"^7.1.0","@geolonia/japanese-numeral":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","dotenv":"^16.4.5","vitest":"^2.1.3","@types/bun":"^1.1.12","typescript":"^5.6.3","@biomejs/biome":"^1.9.4","@graphql-codegen/cli":"^5.0.3","@graphql-codegen/typed-document-node":"^5.0.10"},"_npmOperationalInternal":{"tmp":"tmp/annict-search_0.1.0_1729691341369_0.823788347545996","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@ches3/annict-search","version":"0.1.1","author":{"name":"ches3"},"license":"MIT","_id":"@ches3/annict-search@0.1.1","maintainers":[{"name":"ches3","email":"chestnut31415@gmail.com"}],"homepage":"https://github.com/ches3/annict-search#readme","bugs":{"url":"https://github.com/ches3/annict-search/issues"},"dist":{"shasum":"15f473103d77d8baea376d489073d4a987bf00c3","tarball":"https://registry.npmjs.org/@ches3/annict-search/-/annict-search-0.1.1.tgz","fileCount":9,"integrity":"sha512-OFhMPbcnv/Gye61xn4SzA7bQ92UscB6j4Dpi43aCMZPmYBM1yS7/6zpAQNfNEbHYi9Jo99KjIKHrsRb+qcGg0w==","signatures":[{"sig":"MEUCIQDbWQHYESH+sqBHUmRsJ7DWcjirA04PqDuGJJX70p4CpQIgLGu8GaL9Aj3dSlfqszeOIe+xFDS64zmMpxnr2LV214w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":244494},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f539ef9c0de0ea49651499cb990b2ce6771d7b1a","scripts":{"lint":"biome lint --write ./src","test":"vitest","build":"tsup","check":"biome check --write ./src","format":"biome format --write ./src","gql-gen":"graphql-codegen"},"_npmUser":{"name":"ches3","email":"chestnut31415@gmail.com"},"repository":{"url":"git+https://github.com/ches3/annict-search.git","type":"git"},"_npmVersion":"10.8.2","description":"AnnictのAPIを使って作品の検索と記録をするライブラリ","directories":{},"_nodeVersion":"20.18.0","dependencies":{"romans":"^2.0.16","graphql":"^16.9.0","@ches3/zenhan":"^1.0.1","graphql-request":"^7.1.0","@geolonia/japanese-numeral":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","dotenv":"^16.4.5","vitest":"^2.1.3","@types/bun":"^1.1.12","typescript":"^5.6.3","@biomejs/biome":"^1.9.4","@graphql-codegen/cli":"^5.0.3","@graphql-codegen/typed-document-node":"^5.0.10"},"_npmOperationalInternal":{"tmp":"tmp/annict-search_0.1.1_1729712897773_0.06844127556272261","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@ches3/annict-search","version":"0.2.0","author":{"name":"ches3"},"license":"MIT","_id":"@ches3/annict-search@0.2.0","maintainers":[{"name":"ches3","email":"chestnut31415@gmail.com"}],"homepage":"https://github.com/ches3/annict-search#readme","bugs":{"url":"https://github.com/ches3/annict-search/issues"},"dist":{"shasum":"9dfbc16e075ee96b89d7a7ee7797d194ac857447","tarball":"https://registry.npmjs.org/@ches3/annict-search/-/annict-search-0.2.0.tgz","fileCount":9,"integrity":"sha512-xQq5B6HOiLshDwpctPZKzftIKAOv7zLb2GCARQRaGTYGb5bbi/M1lzYC0dBI6xQ9jsiDYdk1fNa5tOoNgA4YjA==","signatures":[{"sig":"MEYCIQCtF3UPAxTBBUgycfLXJSdVtR/d57COzDiDOvoY5tMrUAIhAJMt+9CkmCbxh6I+H+QnbTHIqXNHstWBlnOMUnPnCn/Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":247037},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"28fd41d19972dbad7217729f971f4027aa72cb5c","scripts":{"lint":"biome lint --write ./src","test":"vitest","build":"tsup","check":"biome check --write ./src","format":"biome format --write ./src","gql-gen":"graphql-codegen"},"_npmUser":{"name":"ches3","email":"chestnut31415@gmail.com"},"repository":{"url":"git+https://github.com/ches3/annict-search.git","type":"git"},"_npmVersion":"10.8.2","description":"AnnictのAPIを使って作品の検索と記録をするライブラリ","directories":{},"_nodeVersion":"20.18.0","dependencies":{"romans":"^2.0.16","graphql":"^16.9.0","@ches3/zenhan":"^1.0.1","graphql-request":"^7.1.0","@geolonia/japanese-numeral":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","dotenv":"^16.4.5","vitest":"^2.1.3","@types/bun":"^1.1.12","typescript":"^5.6.3","@biomejs/biome":"^1.9.4","@graphql-codegen/cli":"^5.0.3","@graphql-codegen/typed-document-node":"^5.0.10"},"_npmOperationalInternal":{"tmp":"tmp/annict-search_0.2.0_1729959061431_0.591817609315062","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@ches3/annict-search","version":"0.3.0","author":{"name":"ches3"},"license":"MIT","_id":"@ches3/annict-search@0.3.0","maintainers":[{"name":"ches3","email":"chestnut31415@gmail.com"}],"homepage":"https://github.com/ches3/annict-search#readme","bugs":{"url":"https://github.com/ches3/annict-search/issues"},"dist":{"shasum":"4e6b49ee05b4cac23fecb844a8bb778df244ca6c","tarball":"https://registry.npmjs.org/@ches3/annict-search/-/annict-search-0.3.0.tgz","fileCount":9,"integrity":"sha512-yiir6tLMc9vafLh8Y1RMmYlilJKVZIdooj5c4k8KdQISK8AWOYLjLo/OJPP2Elm2QqZ9Ea4WFSGrIJ+QjBI5nw==","signatures":[{"sig":"MEUCIDg+VxOQbh22XYqi3YOg4nFaqJy3eUF57mE10jSTJJ6xAiEA8PsfNdq1F98fhgnF8d8jV6gZjEQ3G7p6La3COJhZDoI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":247037},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"69facf5612928b88cb261b6519bf99a5eaa7203e","scripts":{"lint":"biome lint --write ./src","test":"vitest","build":"tsup","check":"biome check --write ./src","format":"biome format --write ./src","gql-gen":"graphql-codegen"},"_npmUser":{"name":"ches3","email":"chestnut31415@gmail.com"},"repository":{"url":"git+https://github.com/ches3/annict-search.git","type":"git"},"_npmVersion":"10.8.2","description":"AnnictのAPIを使って作品の検索と記録をするライブラリ","directories":{},"_nodeVersion":"20.18.0","dependencies":{"romans":"^2.0.16","graphql":"^16.9.0","@ches3/zenhan":"^1.0.1","graphql-request":"^7.1.0","@geolonia/japanese-numeral":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","dotenv":"^16.4.5","vitest":"^2.1.3","@types/bun":"^1.1.12","typescript":"^5.6.3","@biomejs/biome":"^1.9.4","@graphql-codegen/cli":"^5.0.3","@graphql-codegen/typed-document-node":"^5.0.10"},"_npmOperationalInternal":{"tmp":"tmp/annict-search_0.3.0_1730053774551_0.6287672730699203","host":"s3://npm-registry-packages"}},"0.3.1":{"name":"@ches3/annict-search","version":"0.3.1","author":{"name":"ches3"},"license":"MIT","_id":"@ches3/annict-search@0.3.1","maintainers":[{"name":"ches3","email":"chestnut31415@gmail.com"}],"homepage":"https://github.com/ches3/annict-search#readme","bugs":{"url":"https://github.com/ches3/annict-search/issues"},"dist":{"shasum":"5fd605aaa76b08d2e15f814ca8773d10ab0ddcb0","tarball":"https://registry.npmjs.org/@ches3/annict-search/-/annict-search-0.3.1.tgz","fileCount":9,"integrity":"sha512-vIfHA99LqwBfTs6iWdID9RZSq0akenxodQsF4b8LH8vztezTEBp7YzNSeAUSY4A/VViq9LWNmjATL554JKPkIw==","signatures":[{"sig":"MEQCIEetANYxHl1gbf+m5/+26mx0wAVSn1qoV1ZhYvqh7e0AAiAmpZIWpOe4BnZu0AZyJdaVghje2P0w8sWUCIpILv6IZw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":258967},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"b8d17dfa02e35d31f6073da485b0029463363c52","scripts":{"lint":"biome lint --write ./src","test":"vitest","build":"tsup","check":"biome check --write ./src","format":"biome format --write ./src","gql-gen":"graphql-codegen"},"_npmUser":{"name":"ches3","email":"chestnut31415@gmail.com"},"repository":{"url":"git+https://github.com/ches3/annict-search.git","type":"git"},"_npmVersion":"10.8.2","description":"AnnictのAPIを使って作品の検索と記録をするライブラリ","directories":{},"_nodeVersion":"20.18.0","dependencies":{"romans":"^2.0.16","graphql":"^16.9.0","@ches3/zenhan":"^1.0.1","graphql-request":"^7.1.0","@geolonia/japanese-numeral":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","dotenv":"^16.4.5","vitest":"^2.1.3","@types/bun":"^1.1.12","typescript":"^5.6.3","@biomejs/biome":"^1.9.4","@graphql-codegen/cli":"^5.0.3","@graphql-codegen/typed-document-node":"^5.0.10"},"_npmOperationalInternal":{"tmp":"tmp/annict-search_0.3.1_1730081867866_0.9877594582317606","host":"s3://npm-registry-packages"}},"0.4.3":{"name":"@ches3/annict-search","version":"0.4.3","description":"AnnictのAPIを使って作品の検索と記録をするライブラリ","author":{"name":"ches3"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ches3/annict-search.git"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","test":"vitest","gql-gen":"graphql-codegen","lint":"biome lint --write ./src","format":"biome format --write ./src","check":"biome check --write ./src"},"devDependencies":{"@biomejs/biome":"^1.9.4","@graphql-codegen/cli":"^5.0.3","@graphql-codegen/typed-document-node":"^5.0.10","@types/bun":"^1.1.12","dotenv":"^16.4.5","tsup":"^8.3.0","typescript":"^5.6.3","vitest":"^2.1.3"},"dependencies":{"@ches3/zenhan":"^1.0.1","@geolonia/japanese-numeral":"^1.0.2","graphql":"^16.9.0","graphql-request":"^7.1.0","romans":"^2.0.16"},"gitHead":"264de2e7c6abaecb12f7a851048db1c2cc3f5337","_id":"@ches3/annict-search@0.4.3","bugs":{"url":"https://github.com/ches3/annict-search/issues"},"homepage":"https://github.com/ches3/annict-search#readme","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-eA/nWOijeDSsx5HO0mz/ZtuRU5pE7p9EEv9RE/NEYJMV7Hnf+jJhMlo/3LAl3Ori8IAoJhT5HpOth2pz6rYmkg==","shasum":"ee82209a4403dbedd2dd85452f8049ea5bd44914","tarball":"https://registry.npmjs.org/@ches3/annict-search/-/annict-search-0.4.3.tgz","fileCount":9,"unpackedSize":256137,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ches3%2fannict-search@0.4.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBLBPoyEawuFCRYPHAkoS0LcqIY0z+YR16hRZUD0KeMOAiEAlIpFZU1kZnqhKtROuXyBo85r3ZfSwBWIyyyaa1efoWg="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:3e30dbcb-a7fe-4c72-8a76-6c4e18b14d0b"}},"directories":{},"maintainers":[{"name":"ches3","email":"chestnut31415@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/annict-search_0.4.3_1766227504223_0.7683053321744033"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-23T13:49:01.261Z","modified":"2025-12-20T10:45:04.742Z","0.1.0":"2024-10-23T13:49:01.548Z","0.1.1":"2024-10-23T19:48:17.939Z","0.2.0":"2024-10-26T16:11:01.656Z","0.3.0":"2024-10-27T18:29:34.755Z","0.3.1":"2024-10-28T02:17:48.053Z","0.4.3":"2025-12-20T10:45:04.386Z"},"bugs":{"url":"https://github.com/ches3/annict-search/issues"},"author":{"name":"ches3"},"license":"MIT","homepage":"https://github.com/ches3/annict-search#readme","repository":{"type":"git","url":"git+https://github.com/ches3/annict-search.git"},"description":"AnnictのAPIを使って作品の検索と記録をするライブラリ","maintainers":[{"name":"ches3","email":"chestnut31415@gmail.com"}],"readme":"# @ches3/annict-search\n\n  [Annict](https://annict.com/)のAPIを使って作品の検索と記録をするライブラリです。\n\n## インストール\n\n### bun\n  \n  ```bash\n  bun add @ches3/annict-search\n  ```\n\n### npm\n    \n  ```bash\n  npm i @ches3/annict-search\n  ```\n\n## 使い方\n\n### search()\n\n  - エピソードの検索\n  - 以下の形式で検索可能\n    - `{ workTitle: \"作品タイトル\", episodeNumber: \"話数\", episodeTitle: \"エピソードタイトル\" }`\n    - `{ workTitle: \"作品タイトル\", episodeTitle: \"話数 エピソードタイトル\" }`\n    - `{ title: \"作品タイトル 話数 エピソードタイトル\" }`\n\n  ```typescript\n  // { workTitle: \"作品タイトル\", episodeNumber: \"話数\", episodeTitle: \"エピソードタイトル\" } の形式で検索\n  const result = await search(\n    {\n      workTitle: \"響け！ユーフォニアム\",\n      episodeNumber: \"第一回\",\n      episodeTitle: \"ようこそハイスクール\",\n    },\n    token,\n  );\n\n\n  // { title: \"作品タイトル\", episodeTitle: \"話数 エピソードタイトル\" } の形式で検索\n  const result = await search(\n    {\n      workTitle: \"響け！ユーフォニアム\",\n      episodeTitle: \"第一回 ようこそハイスクール\",\n    },\n    token,\n  );\n\n  // { title: \"作品タイトル 話数 エピソードタイトル\" } の形式で検索\n  const result = await search(\n    { title: \"響け！ユーフォニアム 第一回 ようこそハイスクール\" },\n    token,\n  );\n  ```\n\n### record()\n  \n  - エピソードの記録\n  - search()で取得したエピソードのidを指定する\n    - エピソードがある場合は `result.episode.id`\n    - 劇場版などのエピソードがない作品は `result.id`\n\n  ```typescript\n  const id = result.episode?.id || result.id;\n  await record(id, token);\n  ```\n\n### isRecorded()\n\n  - 指定した日数以内にエピソードが記録済みかどうかを確認\n  - 重複記録を防ぐために使用\n\n  ```typescript\n  // 7日以内に記録されていない場合は記録する\n  if (await isRecorded(id, 7, token)) {\n    console.log(\"already recorded\");\n  } else {\n    await record(id, token);\n    console.log(\"recorded\");\n  }\n  ```\n\n\n## ライセンス\n\n  [MIT](LICENSE)\n","readmeFilename":"README.md"}