Menu

Post image 1
Post image 2
1 / 2
0

From Raw Text to Formatted Word Doc in Your Drive

DEV Community·Kashaf Abdullah·23 days ago
#OwsaLuUj
#ai#webdev#programming#drive#google#folder
Reading 0:00
15s threshold

Building a Serverless Notes App I wanted a simple tool where I could paste raw text and have it automatically saved as a formatted Word document in my Google Drive – no server, no database, just a clean React app. That's how Notes to Drive was born. The Problem Most note taking apps are either too complex or don't give you Word documents. I wanted something minimal: type text, pick a folder, save as .docx to Drive. Simple. But building it came with some real challenges I didn't expect. What I Used The entire app is built with React and Vite. For generating Word documents inside the browser, I used docx.js loaded via CDN (not npm) because the npm version is Node.js only and crashes in the browser. To read existing .docx files for the "append" feature, I used mammoth.js, also via CDN. Authentication and Drive access is handled entirely through Google Identity Services and the Google Drive REST API v3. Setting Up Google Drive API This was the trickiest part.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More