Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anonymous mode with localstorage #1

Open
voodoohop opened this issue Jan 19, 2025 · 2 comments · May be fixed by #2
Open

Anonymous mode with localstorage #1

voodoohop opened this issue Jan 19, 2025 · 2 comments · May be fixed by #2

Comments

@voodoohop
Copy link
Member

id like you to look at the codebase and make a plan how to refactor it removing all authorization/authentication and saving all data in localstorage. please take a detailed look into the codebase first and dont change anything yet. i want it to be used anonymously

Copy link

mentatbot bot commented Jan 19, 2025

If you would like me to solve this issue, either tag me in a comment or check this box:
✅ Solve Issue

You can disable automatic comments on my settings page

Copy link

mentatbot bot commented Jan 19, 2025

I've analyzed the codebase and here's my plan to implement anonymous mode with localStorage:

  1. Frontend Changes:
  • Remove authentication-related components and routes (auth folder, login/signup forms)
  • Create a new localStorage-based store to handle user data and settings
  • Remove token-based authentication from API calls
  • Implement localStorage for storing:
    • User preferences
    • Chat history
    • Model settings
    • UI configuration
  1. Backend Changes:
  • Remove authentication middleware and JWT token validation
  • Modify API endpoints to work without user authentication
  • Remove database dependencies for user data
  • Keep core chat functionality but work anonymously
  • Remove user-specific features like sharing and multi-user support
  1. Data Migration:
  • Create localStorage schema for storing:
    • Chats: conversation history, messages, model settings
    • Settings: UI preferences, model configurations
    • User preferences: theme, language, etc.

This will result in a simplified, single-user version that works entirely client-side with localStorage for persistence.

Would you like me to proceed with this implementation? Please let me know if you want any adjustments to this plan.

@mentatbot mentatbot bot linked a pull request Jan 19, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant