{"id":25913468,"url":"https://github.com/yashokuu/aura-alpha","last_synced_at":"2025-08-25T14:04:42.829Z","repository":{"id":260572458,"uuid":"859765539","full_name":"yashokuu/aura-alpha","owner":"yashokuu","description":" Aura is a Flask-based API that allows users to upload and retrieve random memes. Users can upload memes with a title and image (via URL or file upload). The API includes token-based authentication for secure access, ensuring that only authorized users can upload and retrieve memes.","archived":false,"fork":false,"pushed_at":"2025-01-25T05:39:26.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T10:26:27.250Z","etag":null,"topics":["api","api-demo","flask","flask-api","meme-generator","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yashokuu.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-09-19T08:39:38.000Z","updated_at":"2025-01-25T05:39:30.000Z","dependencies_parsed_at":"2024-11-01T05:18:47.831Z","dependency_job_id":"b2fb3553-156d-4720-b559-9b840552ab49","html_url":"https://github.com/yashokuu/aura-alpha","commit_stats":null,"previous_names":["siyam-yas/aura-alpha","yashokuu/aura-alpha"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yashokuu/aura-alpha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashokuu%2Faura-alpha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashokuu%2Faura-alpha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashokuu%2Faura-alpha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashokuu%2Faura-alpha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yashokuu","download_url":"https://codeload.github.com/yashokuu/aura-alpha/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashokuu%2Faura-alpha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272077690,"owners_count":24869288,"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-25T02:00:12.092Z","response_time":1107,"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":["api","api-demo","flask","flask-api","meme-generator","python"],"created_at":"2025-03-03T10:23:33.787Z","updated_at":"2025-08-25T14:04:42.023Z","avatar_url":"https://github.com/yashokuu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aura - Meme API\n\n## Description\n\n**Aura** is a Flask-based API that allows users to upload and retrieve random memes. Users can upload memes with a title and image (via URL or file upload). The API includes token-based authentication for secure access, ensuring that only authorized users can upload and retrieve memes.\n\n## Features\n\n- **Upload Memes**: Upload memes using a title and image URL or file.\n- **Random Meme**: Retrieve a random meme from the collection.\n- **Token-Based Authentication**: Secure API access using tokens.\n- **Token Generation**: Easily generate tokens to access the API.\n\n## Endpoints\n\n### 1. Generate Token\n\n**Endpoint**: `/generate_token`  \n**Method**: `GET`  \n**Description**: Generates a new token for accessing the API.\n\n**Response**:\n```json\n{\n    \"token\": \"your-generated-token\"\n}\n```\n\n### 2. Upload Meme\n\n**Endpoint**: `/api/upload?token=YOUR_TOKEN`  \n**Method**: `POST`  \n**Description**: Upload a meme by providing a title and an image (via URL or file).\n\n**Form Data**:\n- `title`: The title of the meme.\n- `img`: The meme image URL or file.\n\n**Example**:\n```bash\ncurl -X POST -F 'title=Funny Meme' -F 'img=https://example.com/meme.png' \"http://localhost:5000/api/upload?token=YOUR_TOKEN\"\n```\n\n### 3. Get Random Meme\n\n**Endpoint**: `/api/meme?token=YOUR_TOKEN`  \n**Method**: `GET`  \n**Description**: Retrieves a random meme in JSON format.\n\n**Response**:\n```json\n{\n    \"title\": \"Funny Meme\",\n    \"img\": \"https://example.com/meme.png\"\n}\n```\n\n## How to Run the Project\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/siyam-yas/aura-alpha.git\n    ```\n\n2. Navigate to the project directory:\n    ```bash\n    cd aura-meme-api\n    ```\n\n3. Create a virtual environment and activate it:\n    ```bash\n    python -m venv venv\n    source venv/bin/activate # For Linux/Mac\n    venv\\Scripts\\activate # For Windows\n    ```\n\n4. Install the required dependencies:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n5. Run the Flask app:\n    ```bash\n    python api.py\n    ```\n\n6. Access the app at `http://localhost:5000`.\n\n## Technologies Used\n\n- Flask\n- Python\n- JSON for data storage\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashokuu%2Faura-alpha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashokuu%2Faura-alpha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashokuu%2Faura-alpha/lists"}