1.0.6 • Published 5 months ago

ai-todo-app v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

AI-Powered TODO CLI with Gemini šŸŒŸšŸ¤–

License: MIT PNPM

A smart command-line TODO list manager powered by Google Gemini AI, featuring natural language understanding and persistent storage with PostgreSQL.

Features ✨

  • 🧠 AI-Powered Task Management - Interact using natural language
  • šŸ“ CRUD Operations - Create, Read, Update, Delete todos
  • šŸ” Smart Search - Fuzzy search using ILIKE queries
  • šŸ’¾ Persistent Storage - PostgreSQL database with Drizzle ORM
  • šŸ”„ Conversational Workflow - PLAN → ACTION → OBSERVATION pattern
  • šŸ›  Type Safe - Built with modern Javascript practices

Get Started šŸš€

A CLI todo application powered by Google's Gemini AI and PostgreSQL.

To use App follow the below steps: 1. Create a new directory and navigate to it:

mkdir my-todo-app
cd my-todo-app
  1. Create a .env file:
echo "GOOGLE_API_KEY=your-gemini-api-key-here" > .env
echo "DATABASE_URL=your-postgresql-url-here" >> .env
  1. Install and run the packages:
npm i ai-todo-app
npx ai-todo-app

or 

#you can install package globally
npm i -g ai-todo-app
ai-todo-app

Or run it directly with environment variables:

GOOGLE_API_KEY=your-gemini-api-key-here DATABASE_URL=your-postgresql-url-here npx ai-todo-app

Getting the Required Keys

  1. Gemini API Key: Get your key from Google AI Studio

  2. PostgreSQL Database URL: You can either:

    • Use a local PostgreSQL installation: postgresql://username:password@localhost:5432/database_name
    • Use a cloud service like Supabase, Railway, or Render
    • Format: postgresql://username:password@host:port/database_name

CLI Output will look like this:

>> hey who are you?
šŸ¤–: Hello! I am your Personal TODO Handler.  How can I help you today?
>> can you tell me any todo left for me to do?
šŸ¤–: Currently, there are no tasks in your to-do list.
>> can you add one task as i have to debug the code for AI.
šŸ¤–: The task "debug the code for AI" has been added to your to-do list.
>> can i see the list of all my tasks
šŸ¤–: Your to-do list:

- debug the code for AI
>> ohk thank you!
šŸ¤–: You're welcome! Is there anything else I can assist you with?

Now you can start interacting with the AI-powered TODO app!

Tech Stack šŸ› ļø

ComponentTechnology
AI EngineGoogle Gemini 1.5 Flash
BackendNode.js + Javascript
DatabasePostgreSQL + Drizzle ORM
Package Managerpnpm
CLI Interfacereadline-sync

Prerequisites šŸ“‹

  • Node.js v18+
  • PostgreSQL 14+
  • Google Gemini API key
  • pnpm (npm install -g pnpm)

Installation ⚔

  1. Clone the repository
git clone https://github.com/SAHIL-Sharma21/Ai-Todo-App.git
cd Ai-Todo-App
  1. Install dependencies
pnpm install
  1. Configure environment variables
cp .env.example .env

Edit the .env file with your Google Gemini API key.

GOOGLE_API_KEY=YOUR_API_KEY
DATABASE_URL=postgresql://user:password@localhost:5431/postgres
  1. Database setup
pnpm generate
pnpm migrate
pnpm studio #to open the drizzle studio

Usage šŸš€

  1. Run the application
pnpm start

Example Interactions:

>> "Add buy milk to my shopping list"
šŸ¤–: Your todo has been added successfully!

>> "Show all my shopping tasks"
šŸ¤–: Here are your matching todos:
    1. [ID: 5] Buy milk for weekly shopping
    2. [ID: 8] Purchase new shopping bags

>> "Delete task number 5"
šŸ¤–: Todo ID 5 has been deleted

Contributing šŸ¤

  1. Fork the repository

  2. Install dependencies with pnpm install

  3. Create your feature branch (git checkout -b feature/amazing-feature)

  4. Commit your changes

  5. Push to the branch (git push origin feature/amazing-feature)

  6. Open a Pull Request

License šŸ“œ

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments šŸ™

  • Google Gemini API team
  • Drizzle ORM maintainers
  • OpenAI for initial inspiration

Contact šŸ“§

If you have any questions or feedback, please don't hesitate to reach out to me at SAHIL-Sharma21

Thank you for using AI-Powered TODO CLI with Gemini! šŸŒŸšŸ¤–

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago