Skip to content

Commit aa37b9e

Browse files
committed
docs: enhance README documentation with Quick Start, Features, and Development sections
1 parent e6e1777 commit aa37b9e

File tree

3 files changed

+239
-29
lines changed

3 files changed

+239
-29
lines changed

.changeset/polite-turkeys-hear.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"google-workspace-developer-tools": patch
3+
---
4+
5+
Significantly improved README documentation for both the monorepo and VS Code extension:
6+
7+
- Added comprehensive Quick Start section with multiple installation methods
8+
- Enhanced Features section with detailed OAuth2 scope intelligence capabilities
9+
- Included visual scope classification indicators (Restricted, Sensitive, Non-Sensitive)
10+
- Added "How It Works" section explaining extension functionality
11+
- Expanded usage instructions with code examples
12+
- Added Development section with setup commands and project structure
13+
- Included Resources section with links to Google Workspace documentation
14+
- Improved overall organization, readability, and visual hierarchy with emoji icons
15+
- Added marketplace badges and better formatting throughout

README.md

Lines changed: 109 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,117 @@
1-
# Google Workspace Developer Tools Monorepo
1+
# Google Workspace Developer Tools
22

3-
This repository is a monorepo for tools that help Google Workspace developers.
3+
[![Build Status](https://github.com/googleworkspace/developer-tools/actions/workflows/test.yml/badge.svg)](https://github.com/googleworkspace/developer-tools/actions/workflows/test.yml)
4+
[![Release Status](https://github.com/googleworkspace/developer-tools/actions/workflows/release.yml/badge.svg)](https://github.com/googleworkspace/developer-tools/actions/workflows/release.yml)
5+
[![Apache 2.0 License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
46

5-
## Packages
7+
A collection of developer tools to enhance your Google Workspace development experience. This monorepo contains extensions, utilities, and resources designed to streamline development workflows for Google Workspace APIs and integrations.
68

7-
- [`packages/vscode-extension`](./packages/vscode-extension): A VS Code extension with tools to help Google Workspace developers available at [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools) and [Open VSX Registry](https://open-vsx.org/extension/google-workspace/google-workspace-developer-tools).
9+
## 🚀 Quick Start
810

9-
### With the Gemini CLI
11+
### VS Code Extension
1012

11-
If you have the `gemini` command-line tool installed, you can install the extension with this command:
13+
Get intelligent OAuth2 scope linting and enhanced development tools directly in your editor:
14+
15+
**Install from Visual Studio Code:**
16+
17+
1. Open the Extensions view (`Ctrl+Shift+X` or `Cmd+Shift+X`)
18+
2. Search for "Google Workspace Developer Tools"
19+
3. Click Install
20+
21+
**Or install via command line:**
22+
23+
```sh
24+
code --install-extension google-workspace.google-workspace-developer-tools
25+
```
26+
27+
**Marketplaces:**
28+
29+
- [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools)
30+
- [Open VSX Registry](https://open-vsx.org/extension/google-workspace/google-workspace-developer-tools)
31+
32+
### Gemini CLI Extension
33+
34+
If you have the `gemini` command-line tool installed:
35+
36+
```sh
37+
gemini extensions install \
38+
"https://github.com/googleworkspace/developer-tools"
39+
```
40+
41+
## 📦 Packages
42+
43+
### VS Code Extension (`packages/vscode-extension`)
44+
45+
A comprehensive VS Code extension providing:
46+
47+
- **OAuth2 Scope Linting**: Automatic warnings and suggestions for Google Workspace OAuth2 scopes in your code
48+
- Validates scope URLs against the official Google API registry
49+
- Highlights restricted and sensitive scopes
50+
- Provides hover documentation with scope descriptions and API associations
51+
- **MCP (Model Context Protocol) Server**: Integrated support for enhanced AI-powered development tools
52+
53+
[Learn more →](./packages/vscode-extension)
54+
55+
## 🛠️ Development
56+
57+
This is a monorepo managed with [pnpm](https://pnpm.io/) and [Turbo](https://turbo.build/).
58+
59+
### Prerequisites
60+
61+
- Node.js (v18 or later recommended)
62+
- pnpm (`npm install -g pnpm`)
63+
64+
### Setup
1265

1366
```sh
14-
gemini extensions install "https://github.com/googleworkspace/developer-tools"
67+
# Install dependencies
68+
pnpm install
69+
70+
# Build all packages
71+
pnpm build
72+
73+
# Run tests
74+
pnpm test
75+
76+
# Lint and format code
77+
pnpm lint
78+
79+
# Watch mode for development
80+
pnpm --filter google-workspace-developer-tools dev
1581
```
82+
83+
### Project Structure
84+
85+
```
86+
├── packages/
87+
│ └── vscode-extension/ # VS Code extension
88+
├── turbo.json # Turbo build configuration
89+
└── pnpm-workspace.yaml # pnpm workspace configuration
90+
```
91+
92+
## 🤝 Contributing
93+
94+
We welcome contributions! Whether it's bug reports, feature requests, or code contributions, please check out our [contributing guidelines](CONTRIBUTING.md) to get started.
95+
96+
### Ways to Contribute
97+
98+
- 🐛 Report bugs and issues
99+
- 💡 Suggest new features or improvements
100+
- 📝 Improve documentation
101+
- 🔧 Submit pull requests
102+
103+
## 💬 Support
104+
105+
If you have questions or encounter issues:
106+
107+
- 📋 [File an issue](https://github.com/googleworkspace/developer-tools/issues) on GitHub
108+
- 💡 Check existing issues for solutions
109+
- 📚 Review the documentation in each package
110+
111+
## 📄 License
112+
113+
This project is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for details.
114+
115+
---
116+
117+
Made with ❤️ for the Google Workspace developer community
Lines changed: 115 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,136 @@
11
# Google Workspace Developer Tools
22

3-
This VS Code extension provides a set of tools to help Google Workspace developers.
3+
[![Visual Studio Marketplace](https://img.shields.io/visual-studio-marketplace/v/google-workspace.google-workspace-developer-tools?label=VS%20Marketplace)](https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools)
4+
[![Open VSX](https://img.shields.io/open-vsx/v/google-workspace/google-workspace-developer-tools?label=Open%20VSX)](https://open-vsx.org/extension/google-workspace/google-workspace-developer-tools)
5+
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
46

5-
## Features
7+
Enhance your Google Workspace development experience with intelligent OAuth2 scope linting, hover documentation, and AI-powered development tools directly in Visual Studio Code.
68

7-
- **OAuth2 Scope Linting**: Get warnings and additional information for Google Workspace [OAuth2 scopes](https://developers.google.com/identity/protocols/oauth2/scopes) in your code.
9+
## ✨ Features
810

9-
![OAuth2 Scope Linting](https://raw.githubusercontent.com/googleworkspace/vscode-extension/main/packages/vscode-extension/assets/scope-diagnostics.png)
11+
### 🔐 OAuth2 Scope Intelligence
1012

11-
- **MCP (Model Context Protocol) Server**: Registers the Google Workspace Developer Tools MCP server, enabling enhanced development tools.
13+
Automatically validate and document Google Workspace OAuth2 scopes in your code:
1214

13-
## Usage
15+
- **Real-time Validation**: Instantly identify invalid or unknown OAuth2 scope URLs
16+
- **Security Classification**: Visual warnings for restricted and sensitive scopes
17+
- **Hover Documentation**: See scope descriptions, associated APIs, and documentation links on hover
18+
- **Multi-API Support**: Coverage for all Google Workspace APIs (Gmail, Drive, Calendar, Chat, Admin, and more)
1419

15-
### OAuth2 Scope Linting
20+
![OAuth2 Scope Linting](https://raw.githubusercontent.com/googleworkspace/vscode-extension/main/packages/vscode-extension/assets/scope-diagnostics.png)
1621

17-
Warnings and suggestions will automatically appear for OAuth2 scopes in your code.
22+
**Scope Classifications:**
1823

19-
## Installation
24+
- 🔴 **Restricted**: Scopes requiring additional verification (e.g., `drive`, `gmail.modify`)
25+
- 🟡 **Sensitive**: Scopes accessing sensitive user data (e.g., `gmail.readonly`, `calendar`)
26+
- 🟢 **Non-Sensitive**: Basic access scopes (e.g., `userinfo.email`, `userinfo.profile`)
2027

21-
You can install the Google Workspace Developer Tools extension in a few ways.
28+
### 🤖 MCP (Model Context Protocol) Server
2229

23-
### From within VS Code (Recommended)
30+
Integrated support for AI-powered development through the Google Workspace Developer Tools MCP server:
2431

25-
1. Launch Visual Studio Code.
26-
2. Go to the **Extensions** view (`Ctrl+Shift+X` or `Cmd+Shift+X`).
27-
3. Search for `Google Workspace Developer Tools`.
28-
4. Click **Install**.
32+
- Access Google Workspace API documentation directly in your AI coding assistant
33+
- Get context-aware suggestions for Google Workspace development
34+
- Enhanced Copilot and other AI tool capabilities for Google Workspace projects
2935

30-
### From a Marketplace
36+
## 🚀 Quick Start
3137

32-
Install the extension from your preferred marketplace:
38+
### Installation
3339

34-
- [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools)
35-
- [Open VSX Registry](https://open-vsx.org/extension/google-workspace/google-workspace-developer-tools)
40+
#### From VS Code (Recommended)
3641

37-
### Using the Command Line
42+
1. Open Visual Studio Code
43+
2. Press `Ctrl+Shift+X` (Windows/Linux) or `Cmd+Shift+X` (macOS)
44+
3. Search for **"Google Workspace Developer Tools"**
45+
4. Click **Install**
3846

39-
If you have the `code` command-line tool installed, you can install the extension with this command:
47+
#### From Marketplace
4048

41-
```sh
49+
- **[Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools)**
50+
- **[Open VSX Registry](https://open-vsx.org/extension/google-workspace/google-workspace-developer-tools)**
51+
52+
#### Command Line
53+
54+
```bash
4255
code --install-extension google-workspace.google-workspace-developer-tools
4356
```
57+
58+
### Usage
59+
60+
#### OAuth2 Scope Linting
61+
62+
The extension works automatically once installed:
63+
64+
1. **Write Code**: Include Google OAuth2 scope URLs in your code:
65+
66+
```javascript
67+
const SCOPES = [
68+
"https://www.googleapis.com/auth/gmail.readonly",
69+
"https://www.googleapis.com/auth/drive.file",
70+
];
71+
```
72+
73+
2. **Get Instant Feedback**:
74+
- Warnings appear for restricted/sensitive scopes
75+
- Invalid scopes are highlighted with error diagnostics
76+
- Hover over any scope for detailed information
77+
78+
3. **Learn More**: Click on scope URLs in hover tooltips to access official documentation
79+
80+
**Supported File Types**: Works in all text files including JavaScript, TypeScript, Python, JSON, YAML, and more.
81+
82+
## 🔍 How It Works
83+
84+
The extension:
85+
86+
1. Scans your code for Google OAuth2 scope URLs (`https://www.googleapis.com/auth/*`)
87+
2. Validates them against the official Google API registry
88+
3. Provides real-time diagnostics based on scope classification
89+
4. Offers rich hover information with:
90+
- Scope description
91+
- Security classification
92+
- Associated Google Workspace APIs
93+
- Links to API documentation
94+
95+
## 📋 Requirements
96+
97+
- Visual Studio Code version 1.50.0 or higher
98+
- No additional dependencies required
99+
100+
## ⚙️ Extension Settings
101+
102+
This extension works out of the box with no configuration required. Future versions may include customizable settings.
103+
104+
## 🐛 Known Issues
105+
106+
Please report issues on our [GitHub Issues page](https://github.com/googleworkspace/developer-tools/issues).
107+
108+
## 📝 Release Notes
109+
110+
See [CHANGELOG.md](./CHANGELOG.md) for detailed release notes and version history.
111+
112+
### Recent Updates
113+
114+
- **0.5.x**: Enhanced scope validation and MCP server integration
115+
- **0.4.x**: Added support for additional Google Workspace APIs
116+
- **0.3.x**: Initial public release with OAuth2 scope linting
117+
118+
## 🤝 Contributing
119+
120+
We welcome contributions! This extension is part of the [Google Workspace Developer Tools](https://github.com/googleworkspace/developer-tools) monorepo.
121+
122+
## 📚 Resources
123+
124+
- [Google Workspace APIs Documentation](https://developers.google.com/workspace)
125+
- [OAuth 2.0 Scopes Reference](https://developers.google.com/identity/protocols/oauth2/scopes)
126+
- [GitHub Repository](https://github.com/googleworkspace/developer-tools)
127+
128+
## 📄 License
129+
130+
Apache 2.0 License - see [LICENSE](./LICENSE) for details.
131+
132+
## 💬 Support
133+
134+
- 🐛 [Report a Bug](https://github.com/googleworkspace/developer-tools/issues)
135+
- 💡 [Request a Feature](https://github.com/googleworkspace/developer-tools/issues)
136+
- 📖 [View Documentation](https://github.com/googleworkspace/developer-tools)

0 commit comments

Comments
 (0)