Vibe code an NFT app with an AI coding agent
An agent writes a better integration when it receives the machine-readable contract, the task guide, and the API’s data rules. Give it these sources before asking it to generate code:
llms.txtfor the documentation index.llms-full.txtfor the complete agent-readable guide set.openapi.yamlfor routes, schemas, scopes, and examples.- The use-case page closest to the product you want to build.
Fetch the agent context
Section titled “Fetch the agent context”curl -sS https://docs.aradia.app/llms.txtcurl -sS https://docs.aradia.app/openapi.yamlconst [index, contract] = await Promise.all([ fetch("https://docs.aradia.app/llms.txt").then((response) => response.text()), fetch("https://docs.aradia.app/openapi.yaml").then((response) => response.text()),]);const context = `${index}\n\n${contract}`;import requests
index = requests.get("https://docs.aradia.app/llms.txt", timeout=30).textcontract = requests.get("https://docs.aradia.app/openapi.yaml", timeout=30).textcontext = f"{index}\n\n{contract}"Prompt with the rules that matter
Section titled “Prompt with the rules that matter”Build an Astar NFT wallet gallery using the Aradia Data API.Use the attached OpenAPI contract as the source of truth.Keep token IDs and blockchain counters as strings.Follow pagination.next_page_params until has_more is false.Render nft.media_url when present, otherwise fall back to nft.image_url.Read the API token from a server-side ARADIA_API_TOKEN environment variable.Do not put the token in browser code, URLs, logs, or committed files.Handle 429 and 503 with bounded retry and backoff.Let the agent test without your key
Section titled “Let the agent test without your key”The reference console obtains a read-only demo token automatically. An agent can also call POST /v1/demo-token, use the returned bearer token for 15 minutes, and replace it with a portal key only when the integration is ready for application traffic.
Treat generated code as a first draft. Verify the requested scopes, pagination loop, error handling, and whether it keeps secrets on the server before deploying it.
