@ashdev/codex-plugin-recommendations-anilist
v1.10.5
Published
AniList recommendation provider plugin for Codex - generates personalized manga recommendations based on your reading history
Maintainers
Readme
@ashdev/codex-plugin-recommendations-anilist
A Codex plugin for personalized manga recommendations powered by AniList community data. Generates recommendations based on your reading history and ratings.
Features
- Personalized manga recommendations from AniList
- Based on your library ratings and reading history
- Configurable maximum number of recommendations
- Uses AniList's recommendation and user list APIs
Authentication
This plugin supports two authentication methods:
OAuth (Recommended)
If your Codex administrator has configured OAuth:
- Go to Settings > Integrations
- Click Connect with AniList Recommendations
- Authorize Codex on AniList
- You're connected!
Personal Access Token
If OAuth is not configured by the admin:
- Go to AniList Developer Settings
- Click Create New Client
- Set the redirect URL to
https://anilist.co/api/v2/oauth/pin - Click Save, then Authorize your new client
- Copy the token shown on the pin page
- In Codex, go to Settings > Integrations
- Paste the token in the access token field and click Save Token
Admin Setup
Adding the Plugin to Codex
- Log in to Codex as an administrator
- Navigate to Settings > Plugins
- Click Add Plugin
- Fill in the form:
- Name:
recommendations-anilist - Display Name:
AniList Recommendations - Command:
npx - Arguments:
-y @ashdev/[email protected]
- Name:
- Click Save
- Click Test Connection to verify the plugin works
Configuring OAuth (Optional)
To enable OAuth login for your users:
- Go to AniList Developer Settings
- Click Create New Client
- Set the redirect URL to
{your-codex-url}/api/v1/user/plugins/oauth/callback - Save and copy the Client ID
- In Codex, go to Settings > Plugins > click the gear icon on AniList Recommendations
- Go to the OAuth tab
- Paste the Client ID (and optionally the Client Secret)
- Click Save Changes
Without OAuth configured, users can still connect by pasting a personal access token.
npx Options
| Configuration | Arguments | Description |
|--------------|-----------|-------------|
| Latest version | -y @ashdev/codex-plugin-recommendations-anilist | Always uses latest |
| Pinned version | -y @ashdev/[email protected] | Recommended for production |
| Fast startup | -y --prefer-offline @ashdev/[email protected] | Skips version check if cached |
Configuration
Plugin Config
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| maxRecommendations | number | 20 | Maximum number of recommendations to generate (1-50) |
Using the Plugin
Once connected, recommendations appear in the Codex UI:
- Go to Settings > Integrations and verify the plugin shows as Connected
- Recommendations are generated based on your library ratings and reading history
Development
# Install dependencies
npm install
# Build the plugin
npm run build
# Type check
npm run typecheck
# Run tests
npm test
# Lint
npm run lintProject Structure
plugins/recommendations-anilist/
├── src/
│ ├── index.ts # Plugin entry point
│ ├── manifest.ts # Plugin manifest
│ ├── anilist.ts # AniList API client
│ └── anilist.test.ts # API client tests
├── dist/
│ └── index.js # Built bundle (excluded from git)
├── package.json
├── tsconfig.json
└── README.mdLicense
MIT
