Baraklabs

🚀 Ditto just got WAY smarter.

We just shipped two killer features for your mock API toolbox:

🎭 Dynamic responses with {{faker.*}}

🔁 Conditional forwarding based on URL patterns

Here's the breakdown ⬇️

1. Dynamic Responses with {{faker.*}}

Now your mock endpoints can feel real.

json

{
  "id": 1,
  "username": "{{faker.internet.userName}}",
  "email": "{{faker.internet.email}}"
}

🧠 Powered by Faker.js, this means every request returns unique, lifelike data — great for devs testing pagination, randomness, or edge cases.

2. Conditional Forwarding

Mock only what you need. Forward the rest.

You can now:

Fully mock /api/user/1
Forward /api/* (like /api/user/2, /api/orders) to a real backend

Define priority rules, so Ditto tries mocks first and forwards only if unmatched

🔁 It’s the best of both worlds: mock what you’re building, and connect to what already exists.

Why it matters:

More realistic dev environments

Less setup time for mocking backends

Better control over your API flows

🧪 Try it now at: https://baraklabs.com

💬 We'd love your feedback — what would make Ditto even better for your workflow?

#ProductHunt #APIs #DeveloperTools #MockServer #Ditto

84 views

Add a comment

Replies

Best
Edith Christian

I always struggled with making mock data look real. Adding faker.js support is such a smart move. It feels like you read dev minds.