Lambda Readability is a Serverless Reader View to extract readable content from web pages using AWS Lambda, Chromium, and the Readability.js library.
For more information, read my article on DEV.to: Building a Serverless Reader View with Lambda and Chrome
- Serverless project built with AWS CDK
- Runs a headless Chrome browser on AWS Lambda
- Uses the Readability.js library to extract readable content from a web page
- Simple REST API for requests
- Frontend built with React, Tailwind, and Vite
Visit zirkelc.github.io/lambda-readability and enter a URL for a website. Here are some examples:
Maker's Schedule, Manager's Schedule by Paul Graham.
Understanding AWS Lambda’s invoke throttling limits by Archana Srikanta on the AWS Compute Blog.
Advice for Junior Developers by Jeroen De Dauw on DEV.to
Install dependencies from root:
npm install
Build and deploy backend with CDK:
cd backend
npm run build
npm run deploy
Note API URL from the outputs and retrieve the secret API key from the AWS console. Then add tehse values to vite.config.ts:
export default defineConfig(() => {
process.env.VITE_API_URL = "https://...";
process.env.VITE_API_KEY = "...";
return {
// ...
};
});
Start frontend with Vite:
cd frontend
npm start