Skip to content
vp.Ven Petrov
WorkAI demoWritingResourcesResume / CVAboutAt a glance
← Projects & notes
Capture CRMProject story · 3 min read

Save the listing now, connect the person when the details arrive

A classified listing may arrive before its phone number or contact name. Capture CRM keeps those records separate, then lets a later capture complete the existing listing and bring contact status back to the browsing page.

Ven PetrovLocal prototype

A classified listing can be worth saving before its contact details are available. If a later capture finds the phone number, the CRM should be able to connect it to the listing already stored. Treating that second save as either a duplicate to discard or a completely new lead would lose part of the relationship.

Capture CRM is a Chrome extension and Next.js dashboard for a Spanish flooring-materials company. Its documented workflow collects professional listings from Wallapop and Milanuncios, associates them with contacts and records later interactions.

I kept listings, platform profiles, people and interactions as separate records. One person can have several ads and a platform profile, while the history of calls or conversations belongs to the contact. That structure lets information arrive in pieces.

The second capture can complete the first

A CSV import may create an ad with a URL and description but no phone number. Its contactId is empty. Later, the extension can capture that same URL with a name or number.

The save route handles that state by finding or creating a contact, linking the existing ad and filling empty listing fields. Stored values are preserved. If the ad already has a contact, the route returns that relationship.

These are illustrations of implemented states, rather than customer records:

First import Later capture Save result
Listing URL, no contact Same URL with contact details Enrich the listing and link a contact
Listing already linked Same URL again Return the existing relationship
New listing Phone or existing profile match Try to reuse the corresponding contact

The effect is specific: a repeat capture can add information to an earlier record. It need not create another contact just because the same ad was encountered again.

The phone normalizer removes spaces and common formatting, strips +34 or 0034, then accepts nine digits beginning with 6, 7, 8 or 9. That helps the same Spanish number match across formats. It cannot establish that a number belongs to only one person or has never changed owner.

Show what is already known while browsing

The extension also asks which visible listing URLs the CRM knows and displays the linked contact status beside them. An operator can see the existing relationship while browsing, rather than opening every listing in the dashboard. The workflow includes states for calling, messaging, a conversation and a shop visit.

Infinite scrolling adds cards after the first page load. A MutationObserver, the browser's mechanism for watching page changes, triggers processing for those new cards. Platform-specific selectors identify where each site's listing data appears.

Requests go through the extension's background worker:

classified page -> content-script message
                -> extension background worker
                -> CRM API -> relationship/status response

The content script reads the page. The worker calls the CRM on its different web origin, then returns the result through an asynchronous message channel kept open for the reply. Extension requests use the configured API key; the dashboard uses its own signed-in session.

A useful relationship model still needs stronger save guarantees

The capture, enrichment and status paths are implemented. Saving currently involves several checks followed by inserts, rather than one atomic upsert. Two concurrent saves can race between those steps. Profile matching can also use a URL suffix, which needs collision tests across platforms.

Those are the next checks before I would call the matching and save behavior reliable under concurrent use. The prototype already demonstrates how later information can complete a listing and expose its contact status. No capture-volume, sales-conversion or production-reliability result has been measured.

Project sources & checks
Local repository and code review

capture-crm-wallapop-milanuncios: src/lib/schema.ts, phone.ts, src/app/api/extension/save/route.ts and extension/background/service-worker.ts.

Documented architecture

CLAUDE.md describes the background-worker message flow, dashboard sessions, extension API-key access and status annotations.

Scope of result

Implementation inspected; no capture-volume, sales-conversion or production-reliability metric was established.

On this page
The second capture can complete the firstShow what is already known while browsingA useful relationship model still needs stronger save guaranteesSources & checks
Next.jsReactChrome extensionData modeling

Connected to this

All writing
Sociedades Inactivas enquiries · Technical note

An enquiry should survive a failed email

Transfutur ERP · Experience

ERP for transport and logistics

Ven PetrovSoftware engineer · Barcelona
GitHub ↗LinkedIn ↗Email ↗

Find a project or a note

18 results

Transfutur ERP · ExperienceERP for transport and logisticsAs the sole engineer, I built an ERP from zero for transport and logistics. It supported roughly €5–6 million in annual invoicing across two offices, and I kept it running for about a year.Finance evidence desk · Project storyCan an AI reviewer improve a financial explanation?A finance review needs the right explanation as well as the right numbers. I tested one AI analyst, an added reviewer and self-review on the same public report. The added review produced fewer supported answers.Financial review lab · Project storyWhat contributed to an $86 million rise in operating income?I built a financial-report explorer around a question I could check: how did seven income-statement movements add up to an $86 million increase? The same source now supports comparisons of sales, cash flow and reported versus core results.MNQ time-series research · ExperimentA time-series model that failed on later dataA model gained about $2,351 in the research simulation, then lost about $1,728 in three later windows. I followed the experiment from data acquisition and time intervals to costs, evaluation and the decision to reject it for trading.Crude-oil narrative tracker · Project storyFollowing crude-oil news without losing the market numbersI used a short personal experiment to follow global events alongside crude-oil prices and position values. The prototype calculates the numbers before asking Claude Code for an assessment and keeps a limited recent history.NQ/MNQ backtest engine · Technical noteYesterday’s short was blocking today’s trades in the simulatorWhen input stopped before the scheduled close, the strategy forgot a position but a shared counter kept counting it. Closing the old position before resetting the day restored the trade record and released the block.Small-cap edge research · Project storyWhat would make a small-cap price pattern worth testing?I built a Python and DuckDB prototype to turn trading ideas into named tests, compare their costs and revisit them in later periods. The candidates deteriorated under further checks, and the source exposed a misleading pass flag.Gadgeon Europe applications · ExperienceConnected-device dashboards and mobile apps at Gadgeon EuropeThe dashboards let people monitor energy use and control connected devices through data from several APIs. My work covered customized Ionic and Angular apps, integrations, store releases and maintenance.ctxforge · Project storyctxforge: turn “add search” into a task an agent can build“Add search” leaves decisions about data, matching and behavior unanswered. I built an editable toolkit that asks an LLM to uncover those requirements and show its assumptions before a coding agent starts.Sociedades Inactivas enquiries · Technical noteAn enquiry should survive a failed emailA failed notification should not make someone submit the same enquiry twice. The implemented form keeps the saved request and its reference while email delivery is retried; live activation is still pending.Astro local-services website · Project storyKeeping local service pages and their FAQs consistentA city page should only offer services enabled for that location. I used shared Astro templates with explicit availability rules, and one FAQ selection for both the visible page and its structured data.3D Spaces website migration · Project storyMoving 3D Spaces without moving its mailboxThe website could move to Next.js and Vercel, while email still depended on the old host. I carried over the pages, enquiry flow and analytics, then checked what the cutover had actually preserved.Capture CRM · Project storySave the listing now, connect the person when the details arriveA classified listing may arrive before its phone number or contact name. Capture CRM keeps those records separate, then lets a later capture complete the existing listing and bring contact status back to the browsing page.Product-description comparison bench · ExperimentWhere did the product description get that detail wrong?A product description can go wrong when the image is read or when the copy is written. This local bench exposes both steps, lets me switch models and records request measurements. A matched quality comparison is still unfinished.Between Us · Project storyBetween Us: keeping control of a generated filmA more emotional dialogue take still needed convincing acting and framing. I kept the alternatives, widened shots to reveal gestures and changed the workflow when its studio limited the films I wanted to make.Restaurant-service voice agent · ExperimentDesigning a restaurant-service call around the real offerThe first correction was the offer: a paid service had become a free visit in one draft. I then compared how the Spanish voice-agent prompts handled new speakers, technical limits and booking results.Vapi and Telnyx voice integration · Technical noteThe Vapi agent could speak, but it could not hear me clearlyI could hear the assistant, but it could not understand my distorted audio. Three codec tests changed the connection behavior and brought the greeting back; the caller-audio problem remains unresolved.Warloop: Echoes of Solmara · Project storyWarloop: turning generated character art into a playable prototypeGood-looking character images became tiny figures, a backwards walk and misplaced bosses in the game. I worked through the gap between generated art and playable behavior.
esc to close · Tab to move through results