Migrate application to client-side architecture and enforce code quality with pre-commit hooks
Description: The current application relies on server-side processing, leading to increased latency and backend dependency. Additionally, there is no enforced mechanism to maintain consistent code quality across contributions.
This issue proposes:
- Migrating the application to a fully client-side architecture using WebGPU to improve performance.
- Introducing pre-commit hooks to enforce linting and formatting standards before code is committed.
Scope:
- Refactor codebase to run entirely on the client side
- Integrate WebGPU for GPU-accelerated processing
- Reduce or remove backend dependencies
- Install and configure Husky and lint-staged
- Set up ESLint and Prettier for linting and formatting
- Ensure hooks run only on staged files
- Block commits if linting errors are present
Expected Outcome:
- Reduced latency and improved performance
- GPU-accelerated client-side processing
- Consistent code quality across the project
- Prevention of poorly formatted or erroneous code from being committed
Additional Notes:
- Ensure fallback if WebGPU is not supported
- Validate both performance improvements and hook execution