Everything below is stored only in this browser. There is no server and no analytics. Google Drive is optional and read-only: connect it in the Drive section to sync word counts from the Docs you map. Export a backup before clearing data.
Google Drive
Optional. Connect your school Google account, then choose the assignment folder and its Docs in Google's picker. DraftPulse gets access only to what you tick: the folder names the assignment and each Doc's file name becomes a student. Access is read-only, the sign-in token stays in memory for this tab, and document text is counted then discarded. Syncing repeats on the scan cadence set above. Daily totals are measured from when this tab connects; days DraftPulse did not see are shown as Not tracked. Import a roster CSV at any time to swap in your own student names. The sample roster stays out of Drive because its students have no Google Docs behind them.
Teacher or IT setup: switch Drive sync on for this site
Drive sync stays off until the public client ID, a Picker API key, and the project number are added to config.js beside this page. One person with Google Cloud console access does this once for everyone:
Pick or create a Google Cloud project, then enable the Google Drive API , the Google Docs API , and the Google Picker API for it.
On the OAuth consent screen, choose External for a school account and add the scopes DraftPulse asks for: drive.file and Google Docs read-only.
Create an OAuth client ID of type Web application and add this page's origin (scheme and host only, no path) under Authorized JavaScript origins .
Create an API key, restrict it to the Picker and Drive APIs, and restrict its websites to this page's origins plus https://docs.google.com/*.
Paste the client ID into googleClientId, the API key into googleApiKey, and the project number into googleAppId in config.js, redeploy, reload this page, then choose Connect Google Drive .
Before a whole school uses it: drive.file gives access only to the files a teacher picks and is not a restricted scope, so no CASA assessment is needed; Google Docs read-only is sensitive and still needs standard app verification before accounts outside your test users can approve the app. Some Workspace domains must trust the app first. Until then, add each teacher as a test user. The sign-in token is kept in memory for this tab only, so a reload or a new tab asks you to connect again; nothing is written to storage, cookies, or the URL.
Console notices: Google's own sign-in script can log a Cross-Origin-Opener-Policy message about window.closed while it opens the account window. It comes from Google's script, not from DraftPulse, and sign-in still works. Picker and sync results appear in this panel, so nothing here depends on the browser console.
Connect Google Drive
Disconnect
Pause Drive sync
Demo mode: choosing Docs loads fake students and reports instead of reading the Docs.
Choose Docs
Sync now
Only file names, IDs, timestamps, and word counts are saved in this browser; document text is never stored. Disconnecting clears the token, and the next sync asks you to reconnect.
Local data & backups
Import a CSV with course, assignment, student, words columns (optional docUrl, stage ), or restore a DraftPulse JSON backup. The first CSV import or backup restore replaces the sample roster; later imports merge with the roster already on this device.
Download JSON backup
Import CSV / backup
Load sample roster
Paste CSV or backup JSON
Import pasted data
Clear local data
Removes DraftPulse's saved data and leaves an empty dashboard. The sample roster is a session-only preview and is never reloaded automatically. This cannot be undone; download a backup first.
Type Clear Local Data to confirm
Clear Local Data