Vibe Coding with Copilot
Over the past few months, I’ve kept coming across the Astro framework. Astro generates static sites or server-rendered apps and is well suited to web scraping projects.
So I took the opportunity to go “full vibe coding”. First, I connected my IDE (Visual Studio Code) to Copilot Chat. As the project progressed, I enabled more and more features until Copilot could also use the terminal for CLI commands, debugging, and Git integration.
What is vibe coding?
Vibe coding (also spelled vibecoding) is a software development approach in which source code is generated almost entirely by entering prompts. (see Wikipedia)
Here’s a subjective account of my experience...
Technology Stack
Astro Framework
Vercel Hosting/Deployment
Supabase database & authentication
Resend as the email service
GitHub source control
Visual Studio Code IDE
Github Copilot
Background
Since 2020, I’ve been using a tool I developed myself to automatically check websites for errors and availability (status codes).
Built with: Meteor.com
Meteor apps are mainly SPAs (single-page applications) for real-time web applications, with an integrated API for database access.
Astro.build is a static site generator that is also well suited to building services that enable web scraping.
I called the Meteor tool ping.js at the time; for the new project, I think “page watcher” is a good fit.
What should the page watcher tool do?
- A web address is fetched and its source code is stored in a database.
- The next time it runs, the newly fetched code is compared with the version in the database.
- If the source code has changed, an email is sent listing the changes.
- The process runs automatically several times a day as a cron job.
- The frontend displays all addresses and how long ago each was last checked.
- Each row should have a “check now” button to run a manual check at any time.
- The cron job can be controlled and configured through the frontend.
Of course, this isn’t a prompt that magically builds everything at once.
copilot experiences
1. Kicking off the project with Astro and Copilot
Prerequisite: Node.js must already be installed to create a local Astro project.
Initialize the project in the console with this command: $ npm create astro@latest
In the empty project and its generated directories and files, I first start getting an overview for myself. Where is the entry point that renders the frontend? Where are API endpoints defined? What runs on the server, and what runs on the client?
copilot experiences
links to the documentation. First, I check whether my idea can actually
be implemented with Astro.
Approach in brief:
I create a CSV file in the “public” directory with three URLs, so I don’t need a database just yet.
Next, I ask Copilot to write a small first function, “fetchAndSave( )” , which visits each URL in the list in turn and writes the contents of each page to the CSV file.
The content is displayed as a table on the frontend. I created the layout beforehand, and Copilot provides the loop that reads and displays all existing table rows.
Next, I extend the function. If the CSV already contains data when it runs again, it compares the contents and checks for differences.
- Install a diff library (the npm package jsdiff). It provides a visual representation of changed sections that we can later send by email.
- Email delivery and the cron job aren’t essential for the first test, but I implemented them anyway.
The system runs reliably and detects every change I make.
copilot experiences
Next, I enable more features, such as “Copilot in the CLI” (Copilot for the command line) and “Copilot on GitHub.com” (Copilot support for source control).
The most interesting feature is the Copilot coding agent, which is still in “public preview” (as of August 2025). That means the software isn’t finished and may still contain bugs.
GitHub License Terms: “Pre-release software may not operate correctly. It may delete your data, corrupt your data, or have other bugs. It also may not work the way a final commercial version of the software will. ”
GitHub user account: Copilot settings
2. Moving the local project to the cloud
So far, so good. Running the software only on my local machine isn’t much fun. On a server that’s available 24/7, the software can reach its full potential. I enthusiastically dive into the various deployment solutions.
The following components are required:
Cloud hosting for the Astro project itself, a database to store the results, and an email delivery service.
I chose the following microservices.
- Vercel for hosting the application
- Supabase for the database and user authentication
- Resend for sending emails
After registering with and signing in to each service, I can generate the necessary API keys.
Supabase acts as the central authorization service where all the connections come together.
copilot experiences
You should immediately ask it to undo anything that isn’t needed, or remove it manually if necessary. I ran into the same issue later when I didn’t remove the local Supabase installation right away. This led to unnecessary environment variables and policies being added, increasing complexity for no reason.
In particular, functions Copilot creates to isolate and fix errors should be removed afterward. It’s also worth sending a second prompt to check whether all remnants have definitely been removed from the project.
I initially set up the Supabase database with few restrictions to minimize potential sources of errors.
I have to set a username and an email address; there’s no way to proceed without them. You can also set up two separate databases, one for development and one for production. I decide to use just one database for both the local development environment and the eventual live deployment.
The tables for web addresses and scan results are easy to create in the Supabase backend. (The cron job tables were added later.) That covers all the basics for now.
A major task now is rewriting all the API routes so that data is stored in the database instead of the local file. I try to speed this up...
Supabase backend: database schema
copilot experiences
In the next prompt, I briefly explain: “I need a field for entering a URL, which should then be stored in the database. The function stays the same; only the storage should move to the database. In addition to the URL, the email address and username also need to be stored.”
3. Setting up Git source control is next on the list
$ git init
Once everything is configured, I push the local Astro project directory to the repository with the command $ git push.
- Vercel is connected to GitHub using an API key, so every push triggers an automatic deployment.
- The code is then compiled and run on Vercel. In two minutes, everything is live.
- The site is available on a Vercel.com subdomain.
GitHub Copilot features:
Autocomplete = code completion
Chat = questions and explanations in the project context
Terminal = CLI assistance
PRs = documentation and reviews
Workspace = AI builds entire projects
Copilot coding agent
Voice = voice control (still in preview)
4. Setting up and connecting the cloud services
Copilot is extremely useful when connecting the microservices (Vercel, Supabase, and Resend), entering the required environment variables, and finding your way around each provider’s menus.
The process can be sped up considerably if you allow Copilot to run CLI commands.
All the services can be configured in the terminal using specific CLI commands. I make extensive use of this later on.
The remote repository also needs the required API keys, which must be stored securely. Copilot implements this whole area of API key management very quickly, and I check it off my list. However, you should verify later that no keys are exposed. For example, they might be in “old” code Copilot used for debugging that wasn’t fully removed afterward.
One important feature is still missing: automated checks via a cron job. There are various ways to do this; I choose a service integrated into Supabase. Two cron jobs per day are free.
copilot experiences
Code blocks were edited and moved without any major issues. In some cases, I had to ask it to analyze and adjust the code twice.
I had Copilot create elements such as the countdown to the next cron job and the button to trigger it manually.
Optimizing for small screens requires some pretty elaborate prompts to get a precise layout at every screen size. Fortunately, my layout is very simple, so there isn’t much to optimize.

Copilot chat history

Cloud services
page watcher v1.0
5. User authentication & login management
Best practice is to use an external authentication provider.
I chose Supabase Auth.
All right, I had already created my own user in Supabase at the beginning, so this shouldn’t be too much ;) I ask Copilot to create a login page to exclude anyone without an account. The login works right away, but the displayed list of URLs is now empty.
Row-Level Security (RLS) also needs to be configured by user ID so that only the logged-in user can view and edit their own content. Next, new database policies are added for insert, update, and delete.
The URL table needs two additional columns: “user-id” and “email-address”.
Only then does the login work. This also makes it possible for additional user accounts to manage their own URL lists.
copilot experiences
After a few attempts by Copilot to fix the issue, I decided to recreate all user permissions. After that, login worked both locally and in the cloud.
Copilot also handled many frontend enhancements, such as adding a “check now” button for each URL.
On the first attempt, however, it overwrote the entire CSS stylesheet for no reason and changed the layout. After I prevented this in a prompt, the behavior stopped.
The more complex the situation, the longer the prompts become. Sometimes it’s faster to do the work yourself, depending on how experienced you are in that area.
Copilot struggled here to extend user management with the security-related methods in both the local and cloud environments. The analysis and changes had to be repeated several times before communication between the server, client, and database worked correctly.