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
copilot experiences
At first, my IDE was connected to Copilot Chat. Over the course of the project, I enabled all the relevant features offered by GitHub. The models I used were Anthropic Claude Sonnet 4 and OpenAI GPT-4.1 in Copilot.

 


Copilot Logo

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
copilot experiences
Here, Copilot assists me, answers questions, and finds useful
links to the documentation. First, I check whether my idea can actually
be implemented with Astro. 
I want to make sure the core task can be performed reliably, so I’ll initially focus on fetching and comparing the code.

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. 


Proof of concept: 
The system runs reliably and detects every change I make.  


Copilot experiences
copilot experiences
Up to this point, I had been copying the code generated by each prompt into the appropriate project file. This keeps things organized, but the process is still relatively slow.

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. ”
 
Copilot configuration in GitHub Copilot Agent
GitHub user account: Copilot settings
All in all, this experience motivated me to keep working on this application with GitHub Copilot. It took me about 6 hours to build the full-featured local version. In my opinion, that’s a very short development time for a first prototype.
Cloud Logo

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
copilot experiences
Here, I forgot to remove the code artifacts related to file storage. This caused problems later because Copilot assumed that storing data in a file was still a requirement.
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 database view in the backend
Supabase backend: database schema
Copilot experiences
copilot experiences
It’s time to use the Copilot coding agent. The “fetchAndSave( )” function is updated with the necessary database INSERT, UPDATE, and SELECT queries. 

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.” 

Visual Studio Code and Copilot settings
You can find this setting in Visual Studio Code, directly in the chat window at the bottom left. 

So far, everything has worked very well. However, the application only runs in the local development environment.

GitHub Logo

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)

micro services icon

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
copilot experiences
A few changes to my specified server/client architecture were needed before “fetch and save( )” worked again. The assistant worked through the errors one by one. Each step was explained and documented in detail.

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. 


One problem was moving and styling buttons. When moved, elements often ended up in the wrong place. The prompt needs to be carefully thought out and use the right technical terms. It would have been more efficient to copy the code into the right place myself. CSS styling also produced incorrect spacing and buttons of different sizes. Here, too, it would have been easier for me to edit the code myself.

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 output
Copilot chat history



Cloud services





page watcher v1.0



The application is now online 24/7. This part took another 6 hours to complete. However, the application is accessible to anyone who has the URL, which I need to change in the next step.  


user auth icon

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
copilot experiences
This section was not entirely straightforward to implement. Once login and cloud database access were finally working, local login stopped working.

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 output
Copilot fixes problems, chat history


The third part took more than 10 hours to complete.
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. 


The next step is to identify false positives, such as changing honeypot IDs and CAPTCHA codes in forms. If these trigger an email, it should be possible to mark the warning as a false alarm directly from a button in the incoming email. 


6. Results - AI coding experience




PROS / CONS / TIPS /

 

  • Shorter development time, along with all the benefits that entails, such as cheaper prototyping and more agile programming.
  • Expect occasional confusion or misinformation; that shouldn’t surprise anyone using AI. 
  • Frequent code audits and quality checks are necessary.  
  • Typing or speaking prompts can become tiresome over time.  
  • Commit regularly so you can roll the project back in small steps if needed. 
  • The more complex the dependencies, the smaller the steps toward your goal should be.
  • After deleting code that is no longer needed (e.g. after debugging sessions), check the project yourself or send a second, targeted prompt.
  • For layout and corporate identity work, prompts quickly become too imprecise or too long.  However, ChatGPT is very good at interpreting wireframes. You just need to have it generate code for an Astro project and then copy that code into the appropriate file (welcome.astro).




Examples of temporary confusion:

Copilot output ai code monkey



Data flows

Development → Production: VS Code → Git → GitHub → Vercel

User Actions: Browser → Vercel API → Supabase/Resend

Scheduled Jobs: Vercel Cron → Website Checks → Change Detection → Email

Authentication: Browser ↔ Supabase Auth ↔ Vercel API

Real-time UI: Browser ↔ Vercel API ↔ Supabase



Further reading:

Astro web framework: astro.build

Astro documentation: docs.astro.build/en/concepts/why-astro/

Copilot Quickstart: docs.github.com/en/copilot/get-started/quickstart

Hosting: vercel.com / Vercel CLI commands

Database and user management: supabase.com / Supabase CLI commands

E-Mail for developers: resend.com

npm package jsdiff: npmjs.com/package/jsdiff




Assessment and outlook

Taking things one step further, the following development process would also be interesting.
You provide the AI with all the documents created during planning.

For example:

  • Data models (ER diagrams)
  • Process flow diagrams (sequence diagrams)
  • Interface specifications
  • Wireframes and style guides

The AI would then have all the information it needs to translate the project into code over several iterations.
The result would be an initial alpha version or prototype for clarifying requirements, conducting early user tests, or trying out ideas.

There are assistants specifically designed to create ER diagrams, as well as tools that generate a database with all its tables and relationships from a diagram. Copilot cannot turn wireframes or images into code. It uses specially adapted GPT models and specializes in source code (as a code autocomplete tool).
ChatGPT, on the other hand, is very good at generating HTML and CSS from drawings, including individual elements such as a banner or a table. 


base44 - an app builder controlled by prompts

https://base44.com


Kiro is more of a tool for developers. "bringing structure to AI coding with spec-driven development"

https://kiro.dev/



I can only estimate the efficiency gains from this project roughly. It would probably have taken me two or three times as long.
So instead of 32 hours, it could have taken up to 100. Some individual tasks would likely have taken much longer. Working with Copilot and Astro was new to me, so there’s still plenty of room for improvement. 

One open task for PageWatcher is a code audit. Quality assurance should be a high priority in vibe coding.
Honestly, I didn’t factor this in while the project was only for my own use.

I know that AI is a controversial topic for some. Opinions range from “AI is just an investment bubble” to “AI is the end of the world of work.” The technology is certainly interesting and will shorten some workflows in the coming years.
We’ll see who ultimately benefits from it. 

Feel free to contact me with questions or suggestions.
Contact

Marcus Prem, October 2025


The Page-Watcher repository on GitHub is still private for now. I’ll publish the code after a code review. 
Two more interesting projects will be published here by the end of the year. Topic: AI & WordPress