{"id":30171025,"url":"https://github.com/timeplus-io/synthetic","last_synced_at":"2025-10-24T19:29:15.140Z","repository":{"id":306735676,"uuid":"1027057082","full_name":"timeplus-io/synthetic","owner":"timeplus-io","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-27T08:22:22.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-27T10:20:20.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timeplus-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-27T08:05:57.000Z","updated_at":"2025-07-27T08:22:26.000Z","dependencies_parsed_at":"2025-07-27T10:22:05.913Z","dependency_job_id":"6365c4b4-1dc2-410c-b1b6-a8460728d6e9","html_url":"https://github.com/timeplus-io/synthetic","commit_stats":null,"previous_names":["timeplus-io/synthetic"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/timeplus-io/synthetic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeplus-io%2Fsynthetic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeplus-io%2Fsynthetic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeplus-io%2Fsynthetic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeplus-io%2Fsynthetic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timeplus-io","download_url":"https://codeload.github.com/timeplus-io/synthetic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeplus-io%2Fsynthetic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269963281,"owners_count":24504302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-11T21:50:05.767Z","updated_at":"2025-10-24T19:29:15.056Z","avatar_url":"https://github.com/timeplus-io.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Synthetic Data Generation Pipeline\n\nThis project is a synthetic data generation pipeline that uses AI to create realistic, real-time data streams. It's built with Python (FastAPI) and leverages Timeplus for stream processing and Kafka for data messaging. The frontend is a simple HTML/CSS/JS interface for managing the data pipelines.\n\n## Key Features\n\n*   **AI-Powered Data Generation:** Uses an AI agent (likely OpenAI's GPT) to generate Timeplus Random Stream DDL from natural language descriptions.\n*   **Real-time Data Streams:** Creates and manages self-generating data streams in Timeplus.\n*   **Web Interface:** Provides a user-friendly UI to create, view, and delete data pipelines.\n*   **Dockerized Environment:** The entire application stack (FastAPI app, Timeplus, Kafka) can be easily run using Docker Compose.\n\n## Project Architecture\n\nThe project consists of the following components:\n\n*   **Frontend:** A single-page web application built with HTML, CSS, and JavaScript that allows users to manage the data pipelines.\n*   **Backend:** A FastAPI application that provides a RESTful API for creating, viewing, and deleting data pipelines. It uses an AI agent to generate the Timeplus DDL.\n*   **Timeplus:** A real-time data platform used for creating and managing the synthetic data streams.\n*   **Kafka:** A distributed streaming platform used for messaging. The generated data is pushed to a Kafka topic.\n\n## Getting Started\n\n### Prerequisites\n\n*   Docker and Docker Compose\n*   An OpenAI API key\n\n### Installation and Running\n\n1.  **Clone the repository:**\n\n    ```bash\n    git clone https://github.com/timeplus-io/superpartner.git\n    cd superpartner/random_stream\n    ```\n\n2.  **Create an `env.sh` file:**\n\n    Create a file named `env.sh` in the root of the project and add your OpenAI API key:\n\n    ```bash\n    export OPENAI_API_KEY=\"your-openai-api-key\"\n    ```\n\n3.  **Run the application:**\n\n    ```bash\n    source env.sh\n    docker-compose up -d\n    ```\n\n4.  **Install dependencies and initialize UDFs:**\n\n    ```bash\n    make install\n    ```\n\n5.  **Access the application:**\n\n    Open your web browser and navigate to `http://localhost:5001`.\n\n## API Documentation\n\nThe FastAPI backend provides the following API endpoints:\n\n*   `POST /pipelines`: Create a new synthetic data pipeline.\n*   `GET /pipelines`: List all existing pipelines.\n*   `GET /pipelines/{pipeline_id}`: Get the details of a specific pipeline.\n*   `DELETE /pipelines/{pipeline_id}`: Delete a pipeline.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimeplus-io%2Fsynthetic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimeplus-io%2Fsynthetic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimeplus-io%2Fsynthetic/lists"}