APIs & Services → Library → enable Google Drive API.
Credentials → Create credentials → API key. Copy it into the API KEY box above.
Create credentials → OAuth client ID → Web application. Under Authorized JavaScript origins add exactly where you open this file, e.g. http://localhost:8000. Copy the Client ID into the box above.
OAuth consent screen → add your own Google account under Test users.
Serve the file (don't double-click it). In its folder run python -m http.server 8000, then open http://localhost:8000/Spec_Book_Builder_Drive.html.
Keys are stored only in this browser (localStorage) and sent only to Google. Nothing goes anywhere else.
★ User management — admin only
Edit the Users sheet directly in Drive — columns: email, role, name. Roles must be one of admin, editor, viewer. Also share the Drive folder with each user's Google account.
1 BOQ list — auto-loaded from Drive, or drop a file
2 Specification PDFs — auto-loaded from Drive, or drop files
3 Options & build
OUTPUT FILE NAME
AUTO MODE · “Connect & sign in”, then “Auto-build from Drive” reads every PDF and the component
database (a spreadsheet named like Components_DB) directly from your folder, matches each BOQ row
to a PDF by reference, merges in BOQ order, and (optionally) uploads the finished book back to Drive.
MANUAL MODE · Without keys it still works the old way — drop the BOQ and PDFs in yourself.