{"id":28391215,"url":"https://github.com/cloudkoonly/litesupabase","last_synced_at":"2026-05-09T10:17:36.898Z","repository":{"id":293423549,"uuid":"944427680","full_name":"cloudkoonly/litesupabase","owner":"cloudkoonly","description":"A lightweight, open source Supabase alternative.","archived":false,"fork":false,"pushed_at":"2025-05-15T08:14:53.000Z","size":266,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T19:02:23.769Z","etag":null,"topics":["authentication","database","restfulapi","storage","supabase"],"latest_commit_sha":null,"homepage":"https://www.litesupabase.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudkoonly.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-03-07T10:25:49.000Z","updated_at":"2025-05-15T08:45:33.000Z","dependencies_parsed_at":"2025-05-15T09:36:15.419Z","dependency_job_id":null,"html_url":"https://github.com/cloudkoonly/litesupabase","commit_stats":null,"previous_names":["cloudkoonly/litesupabase"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudkoonly/litesupabase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudkoonly%2Flitesupabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudkoonly%2Flitesupabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudkoonly%2Flitesupabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudkoonly%2Flitesupabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudkoonly","download_url":"https://codeload.github.com/cloudkoonly/litesupabase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudkoonly%2Flitesupabase/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261908808,"owners_count":23228712,"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","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":["authentication","database","restfulapi","storage","supabase"],"created_at":"2025-05-31T08:39:41.724Z","updated_at":"2026-05-09T10:17:36.886Z","avatar_url":"https://github.com/cloudkoonly.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LiteSupabase\n\n`LiteSupabase` is a lightweight, open-source alternative to Supabase, built with PHP and the Slim Framework. It aims to provide developers with a self-hostable, high-performance Backend-as-a-Service (BaaS) platform, including core features like authentication, database management, and file storage.\n\n[![PHP Version](https://img.shields.io/badge/PHP-%3E%3D8.2-blue.svg)](https://php.net)\n[![MySQL Version](https://img.shields.io/badge/MySQL-%3E%3D5.7-blue.svg)](https://www.mysql.com)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)\n\n## ✨ Preview\n\n![](https://cdn2.koonly.com/images/2025-05-20/litesupabase-20250520-151449_1200.webp)\n\n## ✨ Features\n\n- **User Authentication**\n  - Email and password registration/login.\n  - Stateless authentication using JWT (JSON Web Tokens).\n  - OAuth support for Google and GitHub.\n  - Access token refresh and password reset functionality.\n\n- **Admin Dashboard**\n  - An intuitive dashboard to manage users, databases, and storage.\n  - View and manage all registered users.\n  - Configure third-party authentication credentials.\n  - Provides API documentation and debugging tools.\n\n- **Database Management**\n  - Manage database tables directly from the admin panel.\n\n- **File Storage**\n  - Functionality for file uploads, downloads, and management.\n  - (Note: Storage-related API endpoints are currently under development).\n\n## 🚀 Quick Start\n\n### Requirements\n- PHP \u003e= 8.2\n- MySQL \u003e= 5.7\n- Composer\n\n### Installation Steps\n\n1.  **Clone the Repository**\n    ```bash\n    git clone https://github.com/cloudkoonly/litesupabase.git\n    cd litesupabase\n    ```\n\n2.  **Install Dependencies**\n    ```bash\n    composer install\n    ```\n\n3.  **Configure Environment Variables**\n    Copy the example environment file and modify it for your setup.\n    ```bash\n    cp .env.example .env\n    ```\n    You will need to edit the following settings in your `.env` file:\n    - `DB_HOST`, `DB_PORT`, `DB_DATABASE`, `DB_USERNAME`, `DB_PASSWORD`\n    - `JWT_SECRET` (a secure, random string)\n    - `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET` (for Google login)\n    - `GITHUB_CLIENT_ID`, `GITHUB_CLIENT_SECRET` (for GitHub login)\n\n4.  **Initialize the Database**\n    Log in to your MySQL server, create a database, and import the `db.sql` schema.\n    ```bash\n    # Log in to MySQL\n    mysql -u your_username -p\n\n    # Create the database\n    CREATE DATABASE litesupabase CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;\n\n    # Import the table schema\n    mysql -u your_username -p litesupabase \u003c db.sql\n    ```\n\n5.  **Configure Your Web Server**\n    Point your web server's (e.g., Nginx or Apache) document root to the project's `public` directory. Here is an example Nginx configuration:\n\n    ```nginx\n    server {\n        listen 80;\n        server_name your_domain.com;\n        root /path/to/your/litesupabase/public;\n\n        index index.php index.html;\n\n        location / {\n            try_files $uri $uri/ /index.php?$query_string;\n        }\n\n        location ~ \\.php$ {\n            try_files $uri =404;\n            fastcgi_split_path_info ^(.+\\.php)(/.+)$;\n            fastcgi_pass 127.0.0.1:9000; # Or your PHP-FPM socket\n            fastcgi_index index.php;\n            include fastcgi_params;\n            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        }\n\n        location ~ /\\.ht {\n            deny all;\n        }\n    }\n    ```\n\n## 🔑 Admin Panel\n\n- **URL**: `http://your_domain.com/admin`\n- **Default Email**: `admin@litesupabase.com`\n- **Default Password**: `123456`\n\n**Important**: Please change the default admin password immediately after your first login!\n\n## 📖 API Endpoints\n\nAll API endpoints are prefixed with `/api`.\n\n### Auth Endpoints (`/api/auth`)\n\n- `POST /signup`: Register a new user\n- `POST /login`: Log in a user\n- `POST /logout`: Log out a user (requires authentication)\n- `POST /refresh`: Refresh an access token\n- `POST /forgot`: Request a password reset\n- `GET /user`: Get the current user's information (requires authentication)\n- `GET /config`: Get public authentication configuration\n\n### Third-Party Login Callbacks\n\n- `POST /google/callback`: Google login callback\n- `POST /github/callback`: GitHub login callback\n\n## 🤝 Contributing\n\nContributions of all kinds are welcome! Please feel free to open a GitHub Issue or Pull Request to report bugs, suggest features, or contribute code.\n\n## 📄 License\n\nThis project is licensed under the [MIT](LICENSE) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudkoonly%2Flitesupabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudkoonly%2Flitesupabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudkoonly%2Flitesupabase/lists"}