1.0.9 • Public • Published


A brief description of what this project does and who it's for

Filterdo is a powerful JavaScript library that enables you to filter arrays using the power of AI. With Filterdo, you can easily apply complex filtering conditions to your arrays without writing extensive code manually.

Key Features:

  • Seamless Integration: Filterdo seamlessly integrates with your JavaScript projects, making it effortless to filter arrays based on dynamic conditions.
  • AI-Powered Filtering: Leverage the capabilities of AI to generate filtering functions tailored to your specific needs.
  • Dynamic Filtering: Filterdo allows you to dynamically generate filtering functions based on user-defined conditions, providing flexible and customizable filtering options.
  • Easy-to-Use API: The Filterdo API is designed to be intuitive and user-friendly, making it simple to incorporate advanced filtering capabilities into your applications.
  • Secure Execution: Filterdo employs strict security measures to ensure safe execution of dynamically generated functions, protecting your application from potential vulnerabilities.

Whether you need to filter arrays based on complex criteria, implement dynamic filtering functionality, or harness the power of AI for intelligent filtering, Filterdo is your go-to library.

Get started with Filterdo today and unlock advanced filtering capabilities with ease.


To use the Filterdo library in your JavaScript projects, follow these steps:

  1. Install the library using npm:

    npm install Filterdo
  2. Example

    import Filterdo from 'Filterdo';
    const FilterdoInstance = new Filterdo('your_api_key');
    const arrayExample = [
    { name: 'John', age: 25, hobbies: ['Soccer', 'Basketball'] },
    { name: 'Emily', age: 30, hobbies: ['Tennis', 'Swimming'] },
    { name: 'Michael', age: 35, hobbies: ['Soccer', 'Golf'] },
    { name: 'Sarah', age: 27, hobbies: ['Running', 'Cycling'] }
    const message = "person has 'Soccer' as a hobby";
    FilterdoInstance.filter(message, arrayExample)
    .then(filteredArray => {
        console.log('Filtered Array:', filteredArray);
        // Perform further operations with the filtered array
    .catch(error => {
        console.error('Error:', error);
        // Handle any errors that occur during the filtering process
  3. Customize the code comments and placeholders (your_api_key) according to your Chatgpt api key.



Package Sidebar


npm i filterdo

Weekly Downloads






Unpacked Size

6.25 kB

Total Files


Last publish


  • ahmadatrach