Weekend Productivity Challenge: Priorly
Priorly is an AI-powered task prioritizer built on AWS Lambda and Amazon Bedrock (Nova Lite) — paste in your to-do list and get it ranked by urgency and impact, with reasons for every call.
Vision & What the App Does
Every to-do list looks the same by Sunday night: a flat pile of tasks with no sense of what actually matters. I wanted something that could look at my list the way a good chief-of-staff would — and tell me what to do first, and why.
Priorly is a small AI-powered task prioritizer. You paste in your to-do list, one task per line, and it comes back with the same list re-ordered by urgency and impact, with a one-line justification for each ranking. No accounts, no setup, no saved state — just paste, prioritize, and go. The idea was to keep the scope tight enough to actually finish in a weekend, while still solving a problem I run into almost every day: deciding what to work on next when everything feels urgent.
How You Built It
I split the app into two pieces on purpose: a static frontend with zero build tooling, and a single Lambda function doing all the thinking. That meant no frameworks, no bundlers, no local dev server to fight with — just an HTML file and a Python function, which is about as fast as you can move in a weekend.
The frontend is one HTML file with vanilla JS: a textarea, a button, and a bit of fetch-and-render logic. The backend is a Lambda function that builds a prompt from the submitted tasks, calls Amazon Bedrock's
converse API against the Nova Lite model, and asks it to return a ranked JSON array with a short reason per task.The build itself went smoothly, but getting it deployed surfaced a string of classic serverless gotchas, each one a good learning moment:
- S3 Block Public Access blocked my bucket policy from saving, both at the bucket level and — less obviously — at the account level. Both had to be turned off before the static site could be made public.
- CORS on the Lambda Function URL is separate from CORS headers inside your Lambda code. The browser's preflight
OPTIONSrequest is answered by the Function URL layer itself, before your function ever runs, so it needs its own CORS configuration.
- Handler mismatch: I'd named my function
handler, but Lambda's default runtime setting expectedlambda_function.lambda_handler. The fix was updating the Handler field under Runtime settings (tucked under the Code tab, not Configuration — took me a minute to find).
- Once the Function URL's CORS config was set correctly, my Lambda code was also adding CORS headers, producing a duplicated
Access-Control-Allow-Origin: *, *that browsers reject. Removing the redundant headers from the Lambda response fixed it.
Every one of these was a five-minute fix once I could see the actual error — the real lesson was learning where to look (CloudWatch Logs, browser console, Function URL config) rather than guessing.
AWS Services Used / Architecture Overview
- Amazon S3 — static website hosting for the frontend, publicly readable via a bucket policy
- AWS Lambda — serverless compute for the backend, invoked directly via a Function URL (no API Gateway needed)
- Amazon Bedrock — the Nova Lite foundation model, called via the
converseAPI to rank tasks
Browser (S3 static site) │ POST { tasks: [...] } ▼Lambda Function URL │ ▼AWS Lambda (Python 3.12) │ bedrock:InvokeModel ▼Amazon Bedrock — Nova LiteKeeping the backend to a single Lambda function with a Function URL, instead of Lambda + API Gateway, cut out a whole layer of console configuration without losing anything I needed for a public POST endpoint.
What You Learned
Technically, the biggest takeaway was how many independent layers of "public access" AWS stacks on S3 and Lambda by default — account-level Block Public Access, bucket-level Block Public Access, bucket policies, and Function URL CORS are all separate gates that each have to be opened deliberately. That's a good security default, but it means a "simple" static site + Lambda app touches more permission surfaces than it looks like at first.
The other lesson was about debugging discipline: every issue I hit had a precise, readable error sitting in CloudWatch Logs or the browser console. The fastest path was always reading that message literally rather than guessing at the cause.
Link to App or Repo
- GitHub repo: https://github.com/Fawazcp/priorly
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article