New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ai-dictionary

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-dictionary

Ask AI to explain the word in sentence and save definition to Anki.

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

AI Dictionary

Ask AI to explain the word in sentence and save definition to Anki.

Ask AI to explain the word in sentence

Requirements

  • Node.js >=20.12.0
  • LLM API Key

Usage

  • Open terminal, set environment variables
    • OpenAI, Deepseek, etc.
      export OPENAI_BASE_URL=https://api.deepseek.com/v1; export OPENAI_API_KEY=sk-***; export OPENAI_MODEL=deepseek-r1
      
    • Ollama
      export OPENAI_BASE_URL=http://localhost:11434/v1; export OPENAI_API_KEY=ollama; export OPENAI_MODEL=gemma3:27b
      
  • Run command npx ai-dictionary
  • Paste sentence and word into command line
    • press Enter to ask AI
    • press Ctrl+L to clear console
    • press Ctrl+C to exit program

Example

Screenshot 2025-03-27 at 14 02 34

Save definition to Anki

Requirements

  • Anki Desktop
  • AnkiConnect

Usage

  • Open Anki, create deck AI Dictionary.
Screenshot 2025-03-26 at 14 37 54
  • Click Tools -> Manage Note Types from Anki menu, add note type AI Dictionary.
Screenshot 2025-03-26 at 14 38 43
  • Add card template.
Screenshot 2025-03-26 at 14 39 09

Example

Screenshot 2025-03-26 at 12 03 43

Keywords

ai

FAQs

Package last updated on 07 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts