AWS Builder Center

Weekend Challenge: TaskTidy

I built an app that cleans messy text just by pasting the text and a single click using aws lambda service for backend and amplify for deployment.

Weekend Challenge: Turning Messy Notes into a Simple Web App with AWS Lambda and AWS Amplify

Introduction

We often copy text from WhatsApp chats, meeting notes, online articles, or class lectures into a single document. Most of the time, this text contains duplicate lines, unnecessary spaces, blank lines, or inconsistent formatting. Cleaning this manually is repetitive and takes more time than it should.
For the AWS Builder Center Weekend Challenge, I decided to solve this small but common problem by building TaskTidy, a lightweight web application that cleans messy text in just one click.
The goal of the project was to create a simple, functional tool while demonstrating the use of AWS cloud services. Instead of using a frontend framework, I built the interface with HTML, CSS, and JavaScript, making the application lightweight, easy to understand, and quick to develop.



The Problem

Whether you're a student, developer, or office worker, you've probably copied information from different sources into one place. The result is often text with:
  • Duplicate lines
  • Extra spaces
  • Empty lines
  • Unorganized content
Cleaning this text manually every time is frustrating and repetitive.
TaskTidy automates this process by allowing users to paste their text, choose an operation, and instantly receive a cleaned version.



The Solution

TaskTidy is a simple web application consisting of a static frontend and a serverless backend.
The frontend allows users to:
  • Paste their text
  • Select one of four operations
  • View the processed output
  • Copy the cleaned result
The available operations are:
  • Clean extra spaces and blank lines
  • Remove duplicate lines
  • Convert text into a checklist
  • Sort lines alphabetically
Instead of processing everything inside the browser, the application sends the user's text to an AWS Lambda function through an HTTPS request. The Lambda function performs the selected operation and returns the processed result in JSON format, which is then displayed on the webpage.



AWS Services Used

AWS Lambda

AWS Lambda is the main processing engine behind TaskTidy.
Whenever the user clicks "Tidy My Text", JavaScript sends the text and the selected operation to a Lambda Function URL.
The Lambda function:
  • Validates the request
  • Cleans the text
  • Removes duplicates if requested
  • Creates checklists
  • Sorts lines alphabetically
  • Calculates line, word, and character counts
  • Returns the processed result to the frontend
Because Lambda is serverless, I didn't have to create or manage a backend server.



AWS Amplify Hosting

I used AWS Amplify Hosting to deploy the frontend.
Since the frontend consists only of HTML, CSS, and JavaScript files, deployment was straightforward. I connected my GitHub repository to Amplify, and AWS automatically published the website.
Whenever I push changes to GitHub, Amplify can redeploy the latest version of the application.



Application Architecture

The application follows a simple architecture:
User
↓
HTML + CSS + JavaScript Frontend (AWS Amplify)
↓
HTTPS POST Request
↓
AWS Lambda Function URL
↓
AWS Lambda
↓
Processed JSON Response
↓
Frontend Displays Result
This architecture keeps the frontend simple while allowing AWS Lambda to handle all processing logic.



Building the Application

I first created the user interface using HTML and CSS. The page includes a text area for input, radio buttons for selecting an operation, and a section for displaying the processed result.
Next, I added JavaScript to send HTTP POST requests to the Lambda Function URL using the Fetch API.
After the frontend was ready, I created an AWS Lambda function using the Node.js runtime. The function processes the submitted text according to the selected operation and returns the result as JSON.
Once the Lambda function worked correctly, I created a Function URL so the frontend could access it securely over HTTPS.
Finally, I uploaded the project to GitHub and connected the repository to AWS Amplify Hosting, which deployed the application and generated a public URL.



Challenges

One challenge I encountered was configuring Cross-Origin Resource Sharing (CORS). Since the frontend and backend are hosted on different domains, the Lambda Function URL must allow requests from the Amplify website.
Another challenge was validating user input to ensure that empty requests or unsupported operations do not cause unexpected errors.
Solving these issues helped make the application more reliable and user-friendly.



Results

TaskTidy successfully transforms messy notes into clean, organized text within seconds.
The application performs all processing on AWS Lambda while AWS Amplify hosts the static frontend. This combination demonstrates how serverless services can be used to build useful applications without managing traditional web servers.
Although this project is intentionally simple, it solves a real everyday problem and showcases how AWS services can be combined to create a complete cloud-based application.



Project Links




Conclusion

This project was a great opportunity to learn more about serverless application development using AWS.
By combining HTML, CSS, JavaScript, AWS Lambda, and AWS Amplify Hosting, I was able to build a complete web application that is simple, fast, and easy to use.
In the future, I plan to add features such as AI-powered text summarization using Amazon Bedrock, downloadable output files, and additional text formatting options. However, even in its current form, TaskTidy demonstrates how a small everyday problem can be solved effectively using AWS cloud services.
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