Overview
LiteClient offers two storage scopes for your API data: Global and Workspace. Choose the scope that best fits your workflow and team collaboration needs.Storage Scope Types
Global Storage
Data stored in VS Code’s global storage directory. Private to your machine, persists across all workspaces.
Workspace Storage
Data stored in
.liteclient/ folder at workspace root. Can be shared via Git with your team.Global Storage
By default, LiteClient stores all data in VS Code’s global storage directory.Characteristics
- Location: VS Code’s
globalStorageUri(machine-specific path) - Scope: Private to your user account on this machine
- Persistence: Available across all VS Code workspaces
- Version Control: Not tracked in Git
When to Use Global Storage
Personal Projects
Working on solo projects where sharing isn’t needed
Private Credentials
Storing sensitive API keys you don’t want in repositories
Cross-Project APIs
Testing the same APIs across multiple projects
Local Development
Personal testing and development workflows
Workspace Storage
Introduced in version 0.13.0, workspace storage enables team collaboration by storing data in your project directory.Characteristics
- Location:
.liteclient/folder at workspace root - Scope: Specific to the current workspace
- Persistence: Only available when this workspace is open
- Version Control: Can be committed to Git for team sharing
Storage Files
When using workspace storage, LiteClient creates:When to Use Workspace Storage
Team Collaboration
Share collections and environments with your team via Git
Project-Specific APIs
API configurations that belong to a specific project
Onboarding
New team members get API configs automatically when cloning
Documentation
API examples and test cases as part of project documentation
Switching Storage Scopes
You can switch between global and workspace storage at any time.Using the Status Bar
Using Settings
Alternatively, configure via VS Code settings:- Open Settings (
Ctrl+,orCmd+,) - Search for
liteclient.storageScope - Select either
globalorworkspace
Migrating Data to Workspace
If you’ve been using global storage and want to switch to workspace storage:Migration copies data from global storage. Your original global data remains unchanged.
File System Watcher
When using workspace storage, LiteClient automatically watches for external changes:- Detects changes to
.liteclient/*.jsonfiles - Refreshes sidebar when files change externally
- Useful after
git pullor external edits
Version Control Best Practices
When committing workspace storage to Git:Recommended .gitignore Patterns
collections.json
collections.json
Recommended to commit: Contains API requests and folder structure. Useful for team sharing.
environments.json
environments.json
Conditional: Commit non-sensitive environment variables. Use template values (e.g.,
{{YOUR_API_KEY}}) for secrets.history.json
history.json
Recommended to ignore: Personal request history varies by developer.
cookies.json
cookies.json
settings.json
settings.json
Recommended to ignore: User preferences are personal.
Comparison Table
| Feature | Global Storage | Workspace Storage |
|---|---|---|
| Location | VS Code global directory | .liteclient/ in workspace |
| Sharing | Not shareable | Git-based team sharing |
| Scope | All workspaces | Current workspace only |
| Version Control | No | Yes |
| File System Watcher | No | Yes |
| Use Case | Personal workflows | Team collaboration |
Troubleshooting
Data Not Appearing After Switch
Data Not Appearing After Switch
- Verify the storage scope indicator shows the correct scope
- Check that
.liteclient/folder exists in workspace root - Try reloading VS Code window
- Run the migration command if switching from global to workspace
Git Shows No .liteclient Folder
Git Shows No .liteclient Folder
- Ensure you’re using workspace storage scope
- Check
.gitignoreisn’t excluding.liteclient/ - Verify files exist:
ls -la .liteclient/
Changes Not Syncing with Team
Changes Not Syncing with Team
- Confirm workspace storage is active
- Verify
.liteclient/*.jsonfiles are committed - Ask team members to pull latest changes and reload VS Code
- Check file system watcher is functioning