{"id":29901981,"url":"https://github.com/sristy17/next-payroll","last_synced_at":"2025-08-01T15:16:31.791Z","repository":{"id":305625822,"uuid":"929914704","full_name":"sristy17/next-payroll","owner":"sristy17","description":"Documentation \u0026 Development in progress ","archived":false,"fork":false,"pushed_at":"2025-07-29T17:24:32.000Z","size":2347,"stargazers_count":7,"open_issues_count":24,"forks_count":23,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-07-29T20:09:14.112Z","etag":null,"topics":["gemini-api","google","gssoc-25","nextjs","supabase","supabase-auth","supabase-db","tailwind-css"],"latest_commit_sha":null,"homepage":"https://next-payroll-liard.vercel.app/","language":"TypeScript","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/sristy17.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-09T17:36:04.000Z","updated_at":"2025-07-29T17:54:38.000Z","dependencies_parsed_at":"2025-07-21T07:26:25.260Z","dependency_job_id":"6329c1a2-d573-4a27-a5d3-0849d3371145","html_url":"https://github.com/sristy17/next-payroll","commit_stats":null,"previous_names":["sristy17/next-payroll"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sristy17/next-payroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sristy17%2Fnext-payroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sristy17%2Fnext-payroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sristy17%2Fnext-payroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sristy17%2Fnext-payroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sristy17","download_url":"https://codeload.github.com/sristy17/next-payroll/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sristy17%2Fnext-payroll/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268248988,"owners_count":24219561,"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-01T02:00:08.611Z","response_time":67,"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":["gemini-api","google","gssoc-25","nextjs","supabase","supabase-auth","supabase-db","tailwind-css"],"created_at":"2025-08-01T15:16:28.121Z","updated_at":"2025-08-01T15:16:31.758Z","avatar_url":"https://github.com/sristy17.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi-Tenant Payroll \u0026 Tax Compliance System\n\n\n**Figma Prototype:** \u003ca href=\"https://www.figma.com/proto/Q897qPu0feZhwH4dOUJIpl/next-payroll-final?node-id=102-12\u0026t=gzZkW21oc463V5WK-1\" \u003ePrototype \u003c/a\u003e\n\n## Introduction\nThe **Multi-Tenant Payroll \u0026 Tax Compliance System** automates tax filings, payroll management, and compliance for multiple tenants (businesses/users). It simplifies **ITR-1 (Sahaj), ITR-2 (Sugam), GST return filing, payments, user management, and transaction tracking** while leveraging **Gemini AI** for automation, minimizing errors, and optimizing tax savings.\n\n## Key Features \u0026 Use Cases\n- **Payroll Processing**: Automated salary disbursement, tax deductions, payslips.\n- **ITR Filing**: Supports ITR-1 \u0026 ITR-2, auto tax calculations, deduction optimization.\n- **GST Return Filing**: Simplified GST return submission, compliance automation.\n- **Payments \u0026 Transactions**: Tracks income/expenses, generates financial reports.\n- **AI-Powered Tax Assistant**: Automates tax calculations, personalized tax-saving recommendations, anomaly detection.\n- **Multi-Tenant Support**: Role-based access for users, accountants, and admins.\n\n## Why This System is Better?\n| Feature | Existing Solutions | Our System |\n|---------|------------------|------------|\n| **Multi-Tenancy** | Limited | Full support for multiple businesses/users |\n| **Automated Tax Filing** | Manual effort | AI-powered automation |\n| **AI-Powered Insights** | No AI assistance | AI-driven tax recommendations \u0026 anomaly detection |\n| **Processing Speed** | Slow | Fast, scalable with Supabase |\n| **Scalability** | Limited | Cloud-ready, serverless infrastructure |\n\n## Technology Stack\n- **Frontend**: Next.js (SEO-friendly, SSR) + Tailwind CSS (utility-first styling)\n- **Backend**: Supabase (open-source, scalable backend-as-a-service)\n- **AI Integration**: Gemini AI (tax automation, chatbot, anomaly detection)\n- **Authentication \u0026 Security**: Supabase Auth (JWT-based authentication, secure APIs)\n\n## System Architecture \u0026 Scalability\n- **Frontend (Next.js)**: User dashboard \u0026 visualization\n- **Backend (Supabase)**: Manages authentication, payroll, transactions\n- **Database (Supabase)**: Stores multi-tenant data, payments, filings\n- **AI Module (Gemini AI)**: Automates tax calculations \u0026 deductions\n\n## Advantages \u0026 Future Scopes\n### Advantages\n- Faster tax processing with AI automation\n- Multi-tenant support for businesses and accountants\n- AI-powered insights for tax optimization\n- Scalable cloud-based architecture\n\n### Future Scopes\n- Regular updates for evolving tax laws\n- Potential offline support for better accessibility\n\n## Database Schema (Supabase)\n### **Users Table**\n- `id` (UUID, PRIMARY KEY)\n- `email` (VARCHAR, UNIQUE, NOT NULL)\n- `password` (VARCHAR, NOT NULL)\n- `role` (VARCHAR, DEFAULT 'admin')\n- `created_at` (TIMESTAMP, DEFAULT CURRENT_TIMESTAMP)\n\n### **Businesses Table** (One-to-One with Users)\n- `id` (UUID, PRIMARY KEY)\n- `name` (VARCHAR, NOT NULL)\n- `owner_id` (UUID, FOREIGN KEY → users(id), NOT NULL)\n- `created_at` (TIMESTAMP, DEFAULT CURRENT_TIMESTAMP)\n\n### **Transactions Table**\n- `id` (UUID, PRIMARY KEY)\n- `user_id` (UUID, FOREIGN KEY → users(id), ON DELETE SET NULL)\n- `business_id` (UUID, FOREIGN KEY → businesses(id), ON DELETE SET NULL)\n- `amount` (DECIMAL, NOT NULL)\n- `category` (VARCHAR, NOT NULL)\n- `transaction_type` (VARCHAR, CHECK ('income' OR 'expense'))\n- `created_at` (TIMESTAMP, DEFAULT CURRENT_TIMESTAMP)\n\n### **Tax Filings Table**\n- `id` (UUID, PRIMARY KEY)\n- `user_id` (UUID, FOREIGN KEY → users(id), ON DELETE CASCADE)\n- `filing_type` (VARCHAR, CHECK ('ITR-1', 'ITR-2', 'GST'))\n- `status` (VARCHAR, CHECK ('pending', 'submitted', 'approved'))\n- `submitted_at` (TIMESTAMP, NULLABLE)\n\n### **Metadata Table**\n- `id` (UUID, FOREIGN KEY → tax_filing(id))\n- `user_id` (UUID, FOREIGN KEY → users(id), ON DELETE CASCADE)\n- `url` (VARCHAR, NOT NULL)\n\n## Installation \u0026 Setup\n### Prerequisites\n- Supabase account setup\n\n### Clone the Repository\n```sh\n  git clone https://github.com/sristy17/next-payroll.git\n  cd multi-tenant-payroll-tax-system\n```\n\n### Install Dependencies\n```sh\n  npm install\n```\n### Setup Environment Variables\nCreate a `.env` file and add your **Supabase API keys**.\n```sh\n  NEXT_PUBLIC_SUPABASE_URL=https://akcuqzqsubmwzydpdikp.supabase.co\n  NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key\n```\n\n### Run the Application\n```sh\n  npm run dev\n```\n\n## Contributing\n1. Fork the repository.\n2. Create a new branch.\n3. Commit your changes.\n4. Push the branch and open a pull request.\n\n## License\nThis project is licensed under the [MIT License](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsristy17%2Fnext-payroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsristy17%2Fnext-payroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsristy17%2Fnext-payroll/lists"}