Secure Backend Proxy for React App (2–8 hrs)

Posted 3 days ago

Worldwide

Summary

Project overview AlpenFinanz is a React-based financial wellness app for English-speaking expats in Switzerland (health insurance, pensions, taxes, mortgages). It’s currently a single-file client-side prototype, feature-complete for beta, but blocked from public launch by one critical issue: the Anthropic API key is exposed in client-side code. I need this fixed before I can open the app to real users. The problem The app currently calls the Anthropic API directly from the browser, which means the API key is visible to anyone who opens dev tools. This needs to move server-side. Scope of work 1. Convert project structure • Current: single .jsx file with client-side state (localStorage), no build tooling. • Convert to a Vite or Next.js project (either is fine — your call based on what pairs best with the hosting choice below). • Preserve all existing functionality and localStorage-based state; this is a structural conversion, not a rewrite of app logic. 2. Build a backend proxy for the AI calls • Implement a Vercel Edge Function or Cloudflare Worker (your recommendation) that: • Holds the Anthropic API key as a server-side environment variable (never shipped to the client). • Accepts requests from the frontend, forwards them to the Anthropic API, and returns the response. • Replaces all direct client-side Anthropic API calls currently in the app (used for an AI Coach chat feature and AI-driven insurance recommendations). 3. Add rate limiting • IP-based rate limiting on the proxy endpoint to prevent abuse/cost overruns if the endpoint is discovered or scraped. • Reasonable default (e.g., X requests per IP per hour) — happy to discuss specifics, open to your recommendation. 4. Deploy • Deploy to Vercel or Netlify (your recommendation) with environment variables configured securely. • Confirm the API key is not present anywhere in client-side bundles or source maps in production build. What I’ll provide • The existing single-file JSX source. • Any context needed on which components make Anthropic API calls. • Model string in use (will confirm exact model at handoff). Deliverables • Working deployed app (or deployment-ready project + clear deploy instructions) with the proxy in place. • Confirmation/proof that the API key is not exposed client-side (e.g., screenshot of network tab / built bundle showing no key). • Brief written summary of what was changed and how the proxy is configured, so I can maintain it going forward. • Rate limiting configuration documented (limits used, how to adjust). Not in scope • No changes to app features, UI, or business logic beyond what’s needed for the proxy conversion. • No user authentication or database work (separate future phase). • No design changes. Timeline & budget • Estimated effort: 2–8 hours.

  • Less than 30 hrs/week
    Hourly
  • 1-3 months
    Duration
  • Intermediate
    Experience Level
  • $15.00

    -

    $35.00

    Hourly
  • Remote Job
  • Complex project
    Project Type

Contract-to-hire opportunity

This lets talent know that this job could become full time.
Learn more
Skills and Expertise
Mandatory skills
Vercel
Next.js
Cloudflare
Activity on this job
  • Proposals:20 to 50
  • Last viewed by client:2 days ago
  • Hires:
    1
  • Interviewing:
    2
  • Invites sent:
    0
  • Unanswered invites:
    0
About the client
Member since Jun 29, 2021
  • CHE
    Richterswil6:47 PM
  • 1 hire, 1 active

Explore similar jobs on Upwork

Shopify Website Development for Arc GISHourly‐ Posted 1 month ago
HTML
Web Development
Shopify
Shopify Templates
Create Engaging Ads for SaaS Web AppFixed-price‐ Posted 2 weeks ago
HTML5
JavaScript
Web Design
Graphic Design

How it works

  • Post a job icon
    Create your free profile
    Highlight your skills and experience, show your portfolio, and set your ideal pay rate.
  • Talent comes to you icon
    Work the way you want
    Apply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
  • Payment simplified icon
    Get paid securely
    From contract to payment, we help you work safely and get paid securely.
Want to get started? Create a profile

About Upwork

  • Rating is 4.9 out of 5.
    4.9/5
    (Average rating of clients by professionals)
  • G2 2021
    #1 freelance platform
  • 49,000+
    Signed contract every week
  • $2.3B
    Freelancers earned on Upwork in 2020

Find the best freelance jobs

Growing your career is as easy as creating a free profile and finding work like this that fits your skills.

Trusted by

  • Microsoft Logo
  • Airbnb Logo
  • Bissell Logo
  • GoDaddy Logo