惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
人人都是产品经理
人人都是产品经理
月光博客
月光博客
V
V2EX
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
宝玉的分享
宝玉的分享
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
博客园 - 聂微东
博客园 - 司徒正美
博客园 - 【当耐特】
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
FakeAPI — A Mutable, Isolated REST Sandbox for Testing an...
Cristian Rubio · 2026-05-29 · via DEV Community

This is a submission for the GitHub Finish-Up-A-Thon Challenge

What I Built

FakeAPI is a hosted REST API for testing and prototyping — real in-memory CRUD, no database, no auth. You create a workspace and get your own isolated copy of seed data with full CRUD, filtering, sorting, and pagination across Tasks, Users, and Projects.

There are other tools in this space, but none hit the exact combination I needed:

JSONPlaceholder ReqRes MockAPI FakeAPI
No signup
Real CRUD (data actually changes)
Session isolation (your data is yours)
Pre-loaded seed data
Reset to seed state on demand
Multiple resource types

JSONPlaceholder acknowledges your writes but doesn't store them. ReqRes returns hardcoded responses. MockAPI requires an account and you define the schema from scratch. FakeAPI is the only one that gives you real, mutable, isolated data without any setup.


Demo

Live: https://fakeapi-kynw.onrender.com (free tier — first request may take ~1 min to wake the server)

# Create your isolated workspace
curl -X POST https://fakeapi-kynw.onrender.com/api/workspaces/

# Browse pre-loaded tasks, users, projects
curl "https://fakeapi-kynw.onrender.com/api/workspaces/{id}/tasks/?status=pending&sort_by=-created_at"

# Reset to seed state any time
curl -X POST https://fakeapi-kynw.onrender.com/api/workspaces/{id}/reset

Enter fullscreen mode Exit fullscreen mode

Interactive docs: https://fakeapi-kynw.onrender.com/docs


The Comeback Story

I built a rough first version in February 2025, deployed it to Render, and forgot about it for 15 months.

Before — a single /tasks endpoint backed by statically generated fake data using faker. No real storage, no isolation, no CRUD. Every caller saw the same global state and couldn't change anything that persisted. The README was one line. There were no tests, no deployment worth sharing beyond a proof of concept.

The core problem was that I'd solved the wrong thing: I had endpoints that returned data, but not an API you could actually use to build or test something. If you created a task, it was gone on the next request. If two people hit it at the same time, they'd interfere with each other. It was a demo, not a tool.

After — the architecture changed completely. Workspaces became the central concept: each caller gets their own in-memory copy of all seed data, isolated from everyone else. You can create, update, delete — and none of it bleeds into another session. A background loop cleans up expired workspaces hourly, each one lives 24 hours and can be extended up to three times.

On top of that: three full resources (Tasks, Users, Projects) with filtering, sorting, and pagination; nested routes like GET /users/{id}/tasks; rate limiting; a full test suite with a coverage gate enforced in CI; a GitHub Actions pipeline; and a landing page.


My Experience with GitHub Copilot

My background is backend. I'm comfortable with Python, APIs, and data modeling — but when it came to building the landing page, I was starting from scratch.

The design I had in mind was a terminal-style interface: monospaced font, a fake browser bar with colored dots, dark mode toggle that persists across sessions. I knew what I wanted visually, but I didn't know CSS well enough to build it confidently. Copilot bridged that gap. I'd describe what I wanted — "a sticky header with a theme toggle that switches between light and dark using CSS variables and saves the preference to localStorage" — and it would give me something that worked. I'd tweak, ask again, and iterate.

What surprised me was how much I actually learned in the process. Because Copilot explained the patterns it used — CSS custom properties, the data-theme attribute approach, the FOUC prevention trick with an inline script before the CSS loads — I came out understanding the code, not just having it. That felt like the right way to use the tool.


If you're building a frontend, testing an HTTP client, or just need a realistic API without the setup overhead, give it a try.

Repository: github.com/cristianrubioa/fakeapi