CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/http-caching-strategy

HTTP caching for web APIs — Cache-Control headers, ETags, conditional requests,

88

25.00x
Quality

84%

Does it follow best practices?

Impact

100%

25.00x

Average score across 4 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-1/

Blog Platform API

Problem Description

Build the backend API for a blog platform. Authors write articles that are read by many visitors. The platform supports public article browsing and authenticated author features.

Output Specification

Produce a self-contained server.js (or server.ts) file with an Express app that:

  1. Has a GET /api/articles route that returns published articles (support ?tag= filter).
  2. Has a GET /api/articles/:slug route that returns a single article by slug.
  3. Has a GET /api/articles/:slug/comments route that returns comments for an article.
  4. Has a GET /api/me/drafts route (behind auth middleware) that returns the authenticated author's draft articles.
  5. Has a POST /api/articles route (behind auth middleware) that creates a new article.
  6. Has a PUT /api/articles/:slug route (behind auth middleware) that updates an article.
  7. Stores data in memory (arrays or Maps are fine).
  8. Returns JSON responses with appropriate HTTP status codes.
  9. Listens on port 3000.

The code should be production-ready and suitable for a content-heavy site with high read traffic.

evals

scenario-1

criteria.json

task.md

tile.json