Tutorials
Build a Full Stack App with Puter.js in Lovable.dev
This tutorial will show you how to build and deploy a full stack web app using Puter.js and Lovable.dev, an AI-based UI and code generator. You'll begin by copying the Puter API documentation into Lovable, then use the platform to generate technical specs and frontend code, and finally deploy your app to a custom subdomain on Puter.
What is Puter.js
Puter.js is a lightweight JavaScript library that offers a straightforward, browser-based API for creating full stack web apps without relying on traditional backend systems. It allows developers to integrate AI, cloud storage, authentication, file uploads, and other core features directly from the frontend—securely and without needing API keys or dedicated servers.
Getting Started
Step 1 Copy the Prompt File Content
Open the official Puter API documentation prompt file:
👉 https://docs.puter.com/prompt.md
Copy the full content of this file to your clipboard.
Step 2 Sign In to Lovable.dev
Go to https://lovable.dev and create a free account or log in if you already have one.
Step 3 Start a New Project
Type anything into the initial Lovable prompt field to create a new project and gain access to the full menu options.
Step 4 Attach the Puter API Prompt
When in the active project view, click the + sign to open the sidebar menu, then select Knowledge.
Step 5 Paste Documentation and Save
In the Instructions window:
Enter the following instruction:
For this project use only html/js/css, review the puter documentation below and use puter api end points for anything requiring features available in the doc
Then paste the entire contents of
prompt.md
below the instruction.
Save the changes.
Step 6 Describe Your App and Generate Documentation
Enter a prompt describing the app you want to build.
Example Prompt:
I'm building a web app that lets users write, save, and load notes from the cloud. Please review the attached Puter.js API documentation and generate a full technical specification for this app. Use only Puter endpoints for storage and auth if needed. Only generate the technical description, do not generate any code.
Lovable will now generate a detailed technical specification. Review it for accuracy.
Step 7 Generate the Web App
Once the spec looks good, enter the following follow-up prompt:
Based on the technical specification above, generate a single HTML file that implements the full functionality of the app from <html> to </html>.
Lovable will return a full HTML5 implementation that uses Puter.js for all backend logic.
Test the generated HTML to ensure everything works as expected.
Step 8 Deploy to Puter
Save the HTML output as index.html
.
Then visit:
👉 Subdomain Registrar
Register your preferred subdomain and upload your index.html
file.
Your full stack HTML5 app is now live and hosted for free on Puter!
You've now built and deployed a serverless, full stack app using nothing but a browser, AI, and Puter.js. 🚀
Final Notes
Before you explore more features, make sure to review the Puter.js documentation. There's no need for API keys or backend setup—everything runs securely and entirely in the browser with Puter.js.
Related
Ready to Build Your First App?
Start creating powerful web applications with Puter.js today!
Get Started Now