AWS Builder Center
Weekend Productivity Challenge: FocusForge

Weekend Productivity Challenge: FocusForge

Learn how to cure to-do list decision fatigue by building a fully serverless AI productivity app. This walkthrough explores using Amazon Bedrock’s Nova Lite model, AWS Lambda, and API Gateway to parse unstructured text into a strict, structured action matrix.

AWS Certified Solutions Architect | AIF-C01 | Cloud & DevOps
I have a bad relationship with to-do lists. I write everything down, feel organized for about ten minutes, then look at the list and freeze. Fix the deploy bug? Reply to a client? Buy groceries? They all shout at the same volume, so I end up doing the easy stuff and avoiding the important stuff.
That little moment of "okay, but what do I actually do first" is what I wanted to kill. So I built FocusForge.
The app does one thing, and it tries to do it well. You open it and dump every messy thought in your head into a single text box. No categories, no dragging things around, no setup. You click one button. A few seconds later you get back a clean, color-coded plan. Every task gets a priority, a short note on why it matters, and the exact next step you should take.
That's the whole idea. Chaos goes in, a clear plan comes out.
chaos-to-clarity


How I Built It

I gave myself one weekend, so my rule was simple: pick boring, fast tools and don't over-build. The frontend is a React app made with Vite. The backend is plain Python. Everything runs serverless, so there's no server for me to babysit.
Here's how the three main pieces came together.
1. The brains — Lambda and Amazon Bedrock
The thinking happens in a Python Lambda function. It takes the raw text from the user, wraps it in a prompt, and calls the  amazon.nova-lite-v1:0  model through  boto3 . I picked Nova Lite on purpose. It's quick and cheap, which is exactly what a rapid-fire tool like this needs.
I come from a security background, so the IAM part actually tripped me up first. By default the Lambda role can't touch Bedrock at all. Nothing happens until you say so. I had to attach a Bedrock access policy to the function's role before it could talk to the model. Small step, but easy to forget, and the error messages don't spell it out for you.
import json
import boto3
bedrock = boto3.client(service_name="bedrock-runtime", region_name="us-east-1")
def lambda_handler(event, context):
try:
body = json.loads(event.get("body", "{}"))
raw_tasks = body.get("rawTasks", "")
if not raw_tasks:
return {
"statusCode": 400,
"body": json.dumps({"error": "No tasks provided"})
}
prompt = f"""You are an elite productivity assistant. Take the following raw task list and return a clean JSON array of objects. Each object must have keys: "task", "priority" (High/Medium/Low), "impact", and "immediateNextStep".
Raw Tasks: {raw_tasks}"""
payload = {
"inferenceConfig": {
"maxTokens": 1000,
"temperature": 0.3
},
"messages": [
{
"role": "user",
"content": [{"text": prompt}]
}
]
}
response = bedrock.invoke_model(
modelId="amazon.nova-lite-v1:0",
contentType="application/json",
accept="application/json",
body=json.dumps(payload)
)
response_body = json.loads(response.get("body").read().decode("utf-8"))
ai_output = response_body["output"]["message"]["content"][0]["text"]
return {
"statusCode": 200,
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "Content-Type",
"Access-Control-Allow-Methods": "OPTIONS,POST"
},
"body": ai_output
}
except Exception as e:
return {
"statusCode": 500,
"headers": {
"Access-Control-Allow-Origin": "*"
},
"body": json.dumps({"error": str(e)})
}
Lambda Function

2. The bridge — API Gateway (and a fight with CORS)
To connect the React frontend to the Python backend, I set up an HTTP API in API Gateway with a single  POST /prioritize  route.
This is where the weekend nearly went sideways. The API worked perfectly in Postman, but the browser flat-out refused to call it. Classic CORS. Rather than wrestle with preflight settings for an hour, I took a shortcut: I dropped the  Content-Type  header from my fetch call so the browser wouldn't fire a preflight  OPTIONS  request, and I returned the CORS headers straight from Lambda instead.
return {
"statusCode": 200,
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "Content-Type",
"Access-Control-Allow-Methods": "OPTIONS,POST"
},
"body": ai_output
}
It's not the textbook fix, but for a weekend build it got me unblocked and back to the fun part.
3. The face — hosting on Amazon S3
The UI is just static files, so I didn't need anything heavy to serve it. I built the React app, made an S3 bucket, turned on static website hosting, and added a public-read bucket policy so anyone can load the assets. Then I dropped the compiled  dist  folder into the bucket, and the app was live on the internet. No web server, no containers, nothing to keep running.
S3 permissions
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::focusforge-frontend-deployment/*"
}
]
}

AWS Services Used / Architecture Overview

Architecture Diagram

One request flows through four services and comes back as a finished plan.
  • Amazon S3 — hosts the static React frontend, so the UI loads fast and scales without any effort from me.
  • API Gateway — the front door. It catches the  POST  from the browser and hands it to the backend.
  • AWS Lambda — the Python worker. It reads the payload, builds the prompt, calls the model, and adds the CORS headers on the way back.
  • Amazon Bedrock (Nova Lite) — the engine. It reads the messy text and returns clean, structured JSON.
Architecture Diagram2


What I Learned

Two things stuck with me.
First, wiring AWS services together taught me more than any tutorial has. Seeing exactly where API Gateway ends and Lambda begins, and why the IAM role has to grant Bedrock access on purpose, made the whole "least privilege" idea click in a way that reading about it never did.
Second, I underestimated the small models. Getting an LLM to return strict JSON used to be a pain, full of stray text and broken brackets. Nova Lite handled it fast, cheaply, and without going off-script. It changed how I think about what a "good enough" model looks like for a real tool.
Not bad for a weekend.

Link to App or Repo

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article