KeywordSmith AI is a powerful local tool that leverages Ollama and open-source Large Language Models to generate SEO-optimized category and product descriptions for e-commerce platforms. It operates entirely on your machine, ensuring data privacy and delivering consistent, high-quality copywriting with HTML formatting and optimal length for search engine visibility.
- 100% Local: All data remains on your device
- Privacy Guaranteed: No connections to third-party cloud services
- SEO-optimized: Generates content designed to improve organic ranking
- Customizable: Easily configure behavior through environment variables
- Efficient: Uses Ollama for optimal performance even on standard hardware
- Node.js (v18 or higher)
- Ollama installed and running on your system
- A supported LLM model (recommended: llama3.1:8b or mixtral:8x7b)
- Visit Ollama.ai
- Download and install for your operating system
- Pull the recommended model:
ollama pull llama3.1:8b
# Clone the repository
git clone https://github.com/AllWorkNoPlay-95/KeywordSmith-AI.git
# Navigate to the project directory
cd KeywordSmith-AI
# Install dependencies
npm install
# Create the .env file based on .env.example
cp .env.example .envEdit the .env file to configure the following parameters:
API_TOKEN: Your API authentication tokenAPI_DOWN_ROOT: Base URL for fetching dataAPI_UP_ROOT: Base URL for sending generated descriptionsMODEL: LLM model to use (default: llama3.1:8b)LANGUAGE: Content generation language (default: en)COMPANY_NAME: Your company name for contextual generationSQLITE_DB_PATH: Local database path (default: ./db.sqlite)
KeywordSmith AI offers several commands for various purposes:
# Run in development mode
npm run dev
# Generate product descriptions
npm run products
# Generate category descriptions
npm run categories
# Reset database or configurations
npm run nuke
# Run tests
npm testKeywordSmith-AI/
├── src/
│ ├── __tests__/ # Unit and integration tests
│ ├── cli/ # Command-line interface
│ ├── fetch/ # API data retrieval functions
│ ├── interfaces/ # TypeScript interfaces and connections
│ ├── prompts/ # LLM prompt templates
│ ├── config.ts # Centralized configuration
│ └── index.ts # Main entry point
├── .env # Environment variables (not included in repo (duh!))
└── package.json # NPM dependencies and scripts
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
Samuele Mancuso - @AllWorkNoPlay-95
Project Link: https://github.com/AllWorkNoPlay-95/KeywordSmith-AI
KeywordSmith AI is actively used in production by KartoClick, demonstrating its reliability and effectiveness in real-world e-commerce applications.
</> with <3 by AllWorkNoPlay-95