Attendify
A human-centric Attendance & Leave Management Portal built with PHP, MySQL, and ag-Grid. #php #mysql #javascript #css #aggrid
- 4k
- PHP
- MIT
- 5 mo ago
PayPal holds the client's money; Claude checks the work against the brief; the freelancer is paid the minute it passes.
Repo markmdev/held, read from GitHub 1 min ago. markmdev has not joined Take My Repo.
markmdev/held is a public repo on GitHub by markmdev. PayPal holds the client's money; Claude checks the work against the brief; the freelancer is paid the minute it passes. It declares the MIT license on GitHub. It is written mainly in TypeScript, has 0 stars and last changed on 2026-11-12. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-21.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Paid the minute the work passes.
Try it: https://heldpayments.com
Freelancers wait weeks because payment waits for the client to say "done". In Held, nobody has to say it. PayPal holds the client's money while the freelancer works, Claude checks the delivered work against the brief both sides agreed, and the freelancer is paid within a minute of passing, with no invoice and no chasing.
It's for freelancers who sell work with a clear brief (writing, translation, design assets, small web jobs) and for the clients who hire them without knowing them. In the Freelancers Union's 2015 survey of 5,358 freelancers (the report), one in two had trouble getting paid in 2014, and the longest wait averaged 98 days. A client who pays up front has the opposite risk: poor work, already paid for.
/api/stats.npm run bench gets all 40 right today: it prints 20 of 20, 10 of 10 and 10 of 10. The harder cases' first-run verdicts are kept in bench/hard-first-run.json.Check each one in the ledger, on the results page, or run the test set yourself (below).
PayPal's hold is the product's whole mechanism, not a pay button at the end. No person presses pay: when both checks pass, Held calls PayPal's capture and payout itself, and a failed check leaves the hold where it is. Take PayPal out and nothing is left.
| What the user does | PayPal call |
|---|---|
| The client approves the hold | PayPal JavaScript SDK buttons with intent=authorize, then POST /v2/checkout/orders (intent: AUTHORIZE) and POST /v2/checkout/orders/{id}/authorize |
| The work passes, and the money is taken | POST /v2/payments/authorizations/{id}/capture |
| The client releases a part | the same call with a smaller amount and final_capture: true |
| The client cancels | POST /v2/payments/authorizations/{id}/void |
| The freelancer is paid | POST /v1/payments/payouts, then GET /v1/payments/payouts/{batch_id} until it succeeds |
| PayPal tells Held what happened | Webhooks, each checked with POST /v1/notifications/verify-webhook-signature before it's believed, and each recorded. PAYMENT.PAYOUTS-ITEM.SUCCEEDED marks the payout done, PAYMENT.AUTHORIZATION.VOIDED marks the hold cancelled, and PAYMENT.CAPTURE.COMPLETED is recorded. |
The code is in src/worker/paypal.ts.
Claude does four jobs:
| Job | Model |
|---|---|
| Turns a brief into 3 to 7 checks, each marked "measured" (counted by code) or "judged" | Claude Sonnet 5.5 |
| First check of a delivery, reading images and PDFs too | Claude Sonnet 5.5 |
| Second check, a separate call that doesn't see the first verdict; it runs only when the first passes every check | Claude Opus 5.5 |
| Answers questions about the ledger as AG Studio's agent, and adds a widget with the answer | Claude Sonnet 5.5 |
Four rules hold the verdict before money moves. They're enforced in code (src/worker/verdict.ts), whatever the model says:
src/worker/measure.ts), not by the model, and given to Claude as facts.Every call uses structured output, so a verdict is always one of pass or fail with its quote and reason.
An agent that moves money, inside hard limits. When the work passes, no person presses pay: the checker decides, and PayPal takes and sends the money on its word. It can only act inside rules written in code: the amount both sides agreed, a quote behind every pass (from the work, or a fact code measured about it; only a check that something is absent needs none), a second model that must agree, and one capture per hold.
The money moves through PayPal's Orders, Payments and Payouts APIs: an authorization holds the client's money, a capture takes all or part of it, a void cancels it, and a payout sends what was taken to the freelancer. Claude turns the brief into checks and checks every delivery twice, with code counting what can be counted and refusing any pass without a quote. The test set of 40 cases runs through the same code the live site uses, with one command, and the faults its harder cases found are fixed with their tests in the repo. Only the client can release or cancel by hand: the job's maker gets a key, kept in their browser and in a client link only they hold, and the server keeps only its hash.
Built with React, TypeScript and Tailwind CSS, on one Cloudflare Worker (Hono for the API, D1 for the database), with the ledger in AG Studio.
Both sides share one page per job, from the brief to the payment, and each sees their own side: the buttons that release or cancel the money appear only for the client. Every state of the money (held, paid, part paid, cancelled) is on screen with PayPal's own IDs, and each check shows the words from the delivery behind its verdict. The ledger is an AG Studio dashboard in Held's own theme.
Freelancers wait because payment waits for the client to say the work is done, and that sign-off is where the weeks go. Half of the 5,358 freelancers in the Freelancers Union's 2015 survey had trouble getting paid in 2014, losing $5,968 on average that year, and the longest wait averaged 98 days. Held takes the sign-off away: both sides agree what "done" means before the money is set aside, the freelancer is paid seconds after the work passes, and the client never pays for work that misses the brief. A client who means to pay gives nothing up by holding: the money isn't taken until the work passes, and it stays theirs if they cancel or the hold runs out. The ledger shows it on more than writing: a design delivered as an image and a one-page site delivered as a link were each checked and paid the same way. It runs on PayPal alone, so there's no marketplace taking a cut on top of PayPal's usual fees.
Escrow services and marketplaces hold money until a person says the job is done, and AI reviewers give an opinion that a person then acts on. In Held the checks are agreed before the money is held, and the verdict itself moves the money. That is only safe because the model can't pay on its own word: code counts what can be counted, a pass needs a quote that is really in the work or a fact code measured about it, a second model must agree, and any doubt leaves the money held for the client to decide. The checker is then measured against an answer key that anyone can run, with its misses shown.
The video shows one real run on the live site, from the brief to the freelancer being paid, then the ledger and the test results. Everything in it can be repeated at https://heldpayments.com in about two minutes.
Everything was built on 12 November 2026, from an empty repo. Every PayPal call moves sandbox money, every verdict is a live Claude call, and every time shown is measured.
Seeded: the example brief and its two sample deliveries; six finished jobs in the ledger, made by running the real flow on the live site before submitting, so each has real sandbox IDs (four paid, one held after a failed delivery, one cancelled); and the test set of 40. The other three jobs in the ledger are real runs made after those six: the one filmed for the video, a design delivered as an image and a one-page site delivered as a link. The six seeded jobs are locked: nobody can deliver on them or move their money. Rehearsal and test runs made while building were taken out of the ledger; their sandbox payments remain in PayPal.
client@held.example.com, password HeldJudge2026! (also printed beside the button).To see the freelancer's side, open the job's link in a private window while the money is held (after step 3 or 4): the same page, without the client's buttons.
It takes about two minutes, most of it PayPal's login. You can also write your own brief and deliver your own work. The live site allows 200 checks a day, to keep it open to everyone.
You need Node.js 22 or later.
git clone https://github.com/markmdev/held.git cd held npm install cp .dev.vars.example .dev.vars # then fill in the keys npm run db:migrate:local npm run dev # http://127.0.0.1:5173
The keys in .dev.vars:
ANTHROPIC_API_KEY: a Claude API key.PAYPAL_CLIENT_ID and PAYPAL_CLIENT_SECRET: a REST app from the PayPal developer dashboard, in sandbox. The app needs Payouts.PAYPAL_WEBHOOK_ID (optional): the ID of a webhook on that app pointing at /api/paypal/webhook. Without it, Held asks PayPal for the payout's state instead.SANDBOX_BUYER_EMAIL and SANDBOX_BUYER_PASSWORD (optional): a sandbox buyer account, printed beside the PayPal button.Run the test set. It needs only a Claude key:
ANTHROPIC_API_KEY=... npm run bench # all 40 cases ANTHROPIC_API_KEY=... npm run bench -- --tuning # only the 20 used while tuning
It takes about a minute and a half, prints each verdict against the answer key and writes bench/results.json, which the results page shows. The cases are in bench/cases.json and bench/hard.json, with the harder cases' files in bench/files.
npm test runs the tests of the rules that money rests on: the piece counter on the layouts it once got wrong, reading an image's size, a pass resting on a measured fact, holds that run out, and the client's key.
Deploy to your own Cloudflare account: create a D1 database, put its ID in wrangler.jsonc, set the keys with npx wrangler secret put, then npm run db:migrate and npm run deploy.
The ledger is an AG Studio dashboard in Held's theme: totals for money held and paid, the median time to paid, charts of each job's money, of seconds from delivery to paid, and of verdicts, a grid of every job with PayPal's IDs, and Held's own widget, the proof trail, which shows the selected job's PayPal steps and each check's verdict with its quote. The code is in src/client/components/studio.tsx.
"Ask about the ledger" opens AG Studio's AI assistant beside the dashboard, at laptop width. Its agents run on Claude through an AgLlmAdapter (src/client/agent.ts) that sends each turn to Held's worker (src/worker/agent.ts), so the key stays on the server. Ask "Which jobs failed, and why?" and it reads the ledger's data, adds a table of the failed jobs with what each is missing, and answers in words, in about a minute.
Sandbox money only. On live PayPal, PayPal's usual fees apply. The checker suits work with a clear brief. Good work in a form the checker hasn't seen may still be refused, which only holds the money for the client to release. When the two checks disagree, a person decides. PayPal keeps a hold for 29 days; one that runs out shows as expired, and the money stays with the client. PayPal only promises a hold's money for its first 3 days; after that a capture can be declined, and Held doesn't renew the hold yet. There are no accounts yet: the client is whoever holds the job's client link, so a live version needs both sides to sign in.
MIT. See LICENSE.
markmdev/held is a public repo on GitHub by markmdev. PayPal holds the client's money; Claude checks the work against the brief; the freelancer is paid the minute it passes.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-12. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.

A human-centric Attendance & Leave Management Portal built with PHP, MySQL, and ag-Grid. #php #mysql #javascript #css #aggrid


Reverse engineer anything with agents, from app behavior down to native binaries.

An object oriented high-level Python Web Framework that requires no frontend programming
Zero-config Claude Code setup with enforced task scaffolding, structured memory, persistent context after compaction, plug-in code standards, optional TDD mode, and zero behavior changes for developers.

A local-first issue tracker built around JSONL, a CLI, and a browser UI.


This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/markmdev/heldTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.