Skip to content

Results for “api”

27 prompts

Set up a monorepo for [apps and packages, e.g. web app, API and shared UI library] using [tool, e.g. pnpm workspaces / Turborepo / Nx]. Show the folder structure, config files, shared TypeScript config, build and test scripts, and CI caching.

ChatGPT
Coding & Development

Monorepo setup

Organises multiple apps and packages in one repository.

Build a minimal web chatbot in [stack] that calls the [AI provider] API. Include a chat UI, conversation history, a system prompt for [use case], streaming responses, API key stored in environment variables, and basic rate limiting.

ChatGPT
Coding & Development

Build a simple AI chatbot with an API

A minimal chatbot app that calls an AI model API.

Write a TypeScript client for the [API name] REST API covering [endpoints]. Include typed requests and responses, auth handling, retries with backoff, timeouts, helpful errors, and usage examples.

ChatGPT
Coding & Development

API client SDK wrapper

A typed wrapper around a third-party REST API.

Implement [infinite scroll / cursor pagination] for a list of [items] in [framework] calling [API]. Handle loading and error states, avoid duplicate requests, preserve scroll position, and include the backend query for cursor pagination.

ChatGPT
Coding & Development

Infinite scroll or pagination

Efficient list loading for large datasets.

Write a Python class for [purpose, e.g. a shopping cart]. Include type hints, docstrings, validation, a clean public API, and pytest unit tests covering normal use and edge cases.

ChatGPT
Coding & Development

Write a Python class with tests

A well-designed Python class with type hints and unit tests.

Design a GraphQL schema for [domain, e.g. a blog with posts, authors and comments]. Include types, queries with pagination, mutations, input types, and example resolvers in [language/framework]. Note how to avoid N+1 queries.

ChatGPT
Coding & Development

Write a GraphQL schema and resolvers

A GraphQL schema with queries, mutations and resolvers.

Write a Node.js script that [task, e.g. reads a CSV and calls an API for each row]. Use async/await, limit concurrency to [n], retry failed requests with backoff, log progress, and handle errors without crashing. Include package.json dependencies.

ChatGPT
Coding & Development

Node.js script with async/await

A clean Node.js script with proper async error handling.

Write a FastAPI endpoint for [operation, e.g. creating an order]. Use Pydantic models for request and response, validate [fields], return proper status codes, handle errors, and include an example request with curl and a pytest test.

ChatGPT
Coding & Development

Python FastAPI endpoint

A typed FastAPI endpoint with validation and error handling.

I want to build [app idea] for [users]. Suggest a simple tech stack for a solo developer, the core MVP features, a data model, main pages/screens, API endpoints, auth approach, hosting, and a 4-week build plan. Flag what to leave out of the MVP.

Claude
Coding & Development

Full-stack app plan from an idea

Turns an app idea into an MVP plan with stack, data model and milestones.

Write a documentation page for [feature/API/tool] aimed at [audience]. Include an overview, prerequisites, step-by-step setup, a code or configuration example, common errors with fixes, and related links. Use clear headings and second person. Base it on these notes: [notes].

Claude
Writing & Copywriting

Technical documentation page

Clear technical docs with steps, examples and troubleshooting.

You are an engineer who builds production AI features. Feature idea: [e.g. summarise support tickets, auto-tag products] Stack: [details] Data involved: [types, sensitivity] Design: the prompt and system instructions, input/output format (JSON schema), handling of errors and timeouts, cost and latency considerations,…

Claude
Coding & Development

Add an LLM-powered feature to your app

Plan and build an AI feature, such as summarising, classifying or a chat assistant, with good prompts and guardrails.

Act as a backend engineer. Stack: [details] Endpoints to protect: [list] Limits wanted: [e.g. 100 requests/minute per API key, 5 login attempts per 15 minutes per IP] Infrastructure: [single server / multiple instances / Redis available] Implement rate limiting (explain fixed window vs sliding window vs token bucket),…

ChatGPT
Coding & Development

API rate limiting

Protect your API from abuse with rate limits per user, IP or API key.