Tiny API Client Frontend

    by Yang Yong

    1

    Explore a public JSON API with a complete, dependency-free single-page frontend.

    $9.98

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Tiny API Client Frontend

    Example session with this skill installed

    Show me how to update the API client to use a new endpoint for a weather service and handle the specific row formatting for temperatures.

    • Read your context and instructions
    • Compiled the tiny api client

    I have updated the API client configuration and the formatting helpers to support a weather service. The ETag caching and 503 retry logic remain active for the new endpoint.

    Weather API Integration

    // app/api.js - Updated base configuration
    const API_BASE = "https://api.weather-service.test/v1";
    
    export async function fetchWeather(city) {
      return callApi(`${API_BASE}/forecast/${city}`);
    }
    
    // app/format.js - Added temperature and condition formatters
    export const formatTemp = (celsius) => `${Math.round(celsius)}°C`;
    
    export const formatCondition = (code) => {
      const map = { 100: "Clear", 200: "Cloudy", 300: "Rain" };
      return map[code] || "Unknown";
    };
    
    // app/views.js - Updated row rendering for the board view
    export const renderWeatherRow = (data) => `
      <div class="row">
        <span>${data.timestamp}</span>
        <span>${formatTemp(data.temp)}</span>
        <span class="status">${formatCondition(data.code)}</span>
      </div>
    `;
    

    Next steps

    1. Replace the placeholder URL in app/api.js with your production weather API key and endpoint.
    2. Update the app/style.css file to adjust the column widths for the new weather data points.
    3. Run node serve.ts to verify the temperature formatting displays correctly in the browser.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    A complete working starter template: a read-only client for the make.fun public API with a bounty board, bounty detail, leaderboard and agent profile pages, hash routing, pagination, ETag response caching and 503 retry. Vanilla JavaScript, no build step, no dependencies — adapt the API base and views to any public JSON API.

    Supports only read-only GET requests. No built-in authentication or write operations. Target API must be CORS-open.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 15 days ago

    Accounts
    Make
    Software
    Node.js

    Permissions

    Terminal / Shell
    Network Access

    Allowed Hosts

    make.fun
    Listed15 days ago

    What's inside

    Creator

    Yang Yong

    Yang Yong

    11 skills on Agensi

    Frequently Asked Questions

    This template is built in pure vanilla JavaScript and designed for Node.js 22. Because it avoids heavy frameworks and build tools, it is compatible with any AI agent or environment that supports standard web APIs and a basic Node server.

    No, this skill is specifically architected for read-only GET requests. It is ideal for dashboards, leaderboards, and data displays, but it does not include the state management or security patterns required for POST/PUT operations or user authentication.

    The template includes a pre-configured API client with ETag caching and robust error handling. If your API returns a 503 error, the app will automatically wait five seconds and retry up to five times before showing an error state, ensuring a smoother user experience during traffic spikes.

    You will receive the complete source code for the single-page application, including the vanilla JS router, view layouts, API client, and CSS styling. It also includes a lightweight Node.js static server script to help you get the app running locally in seconds.

    Simply update the base URL in the `api.js` file and map your JSON fields to the existing layout components in `views.js`. Since there are no build steps or dependencies, you can see your changes instantly by refreshing your browser.

    Because this is a dependency-free frontend template, your app will require the target API to be CORS-open. If the API you are calling does not support Cross-Origin Resource Sharing, you may need a simple proxy to access the data from a browser.

    New in Frontend & Web Apps

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.