CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/nextjs-api-patterns

Next.js App Router API patterns — Route Handlers, Server Actions, middleware, validation, caching, error handling

92

1.58x
Quality

90%

Does it follow best practices?

Impact

95%

1.58x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-2/

Build a Blog Post Management System

Problem/Feature Description

Build a Next.js App Router application for managing blog posts. The system needs both a public-facing API for external consumers (RSS readers, mobile apps) and an admin interface for creating and editing posts.

Requirements:

  • Public API endpoints for reading posts (consumed by external clients)
  • Admin form for creating new posts (used only from the web UI)
  • Admin form for editing existing posts
  • Posts have: title, content, author, slug (URL-friendly), published (boolean)
  • Slugs must be unique

Use in-memory storage.

Output Specification

Produce:

  • API route handlers for the public endpoints
  • Server Actions for the admin forms
  • A page to list posts
  • A page/form to create a new post
  • package.json with dependencies

You may create additional files as needed.

evals

tile.json