Idempotent API design — safe retries for POST endpoints, idempotency keys,
93
90%
Does it follow best practices?
Impact
100%
10.00xAverage score across 4 eval scenarios
Passed
No known issues
Build a user registration endpoint for a SaaS application. New users submit their email and name to create an account. The endpoint should create the user in a SQLite database and return the new user record.
Produce:
A server.js (or server.ts) file with an Express app that:
better-sqlite3 with a users tablePOST /api/users route that accepts { email, name } and creates a user201 status codeA public/register.html file with a registration form that submits to the endpoint and shows a success message.
The code should be production-quality and handle edge cases appropriately.