‹ BackHN Continuity

Thread

Floci: Locally emulating any cloud service

220 points · 49 comments · theanonymousone

Loading the complete thread in the background. This saved snapshot is available now. Refresh

  1. hnacobsxph · · focus · HN ↗
    Thing that always bit me with local emulators wasn't the happy path, it was IAM and eventual consistency. Everything passes locally because permissions are wide open and writes are instantly readable, then prod fails on a policy nobody modeled.
  2. elendilm · · focus · HN ↗
    Good work.

    For us, floci-oci for object storage looks interesting. For everything else we have our own stack.

  3. sinabis · · focus · HN ↗

    [dead]

  4. huffer · · focus · HN ↗
    I just spilled my coffee; sorry for the trivial remark, but the name means 'pubic hairs' in Romanian. Apologies.. I thought it's better for you to know and ignore than not to (not quite a big population target for you, I imagine, anyway).
    1. pi-victor · · focus · HN ↗
      you got here before me, had a good laugh tho.
    2. dazzatron · · focus · HN ↗
      schaamhaar.io was already taken
      1. OptionOfT · · focus · HN ↗
        Risky copy-paste of the day.
    3. Vasbarlog · · focus · HN ↗
      Also means cum in greek <a href="https:&#x2F;&#x2F;en.wiktionary.org&#x2F;wiki&#x2F;φλόκι" rel="nofollow">https:&#x2F;&#x2F;en.wiktionary.org&#x2F;wiki&#x2F;φλόκι
      1. mitxela · · focus · HN ↗
        Do Greek people really say &quot;Here comes the spunk!&quot; when they&#x27;re... you know?
        1. Vasbarlog · · focus · HN ↗
          Hahahaha, have never personally heard that.
        2. stavros · · focus · HN ↗
          Do English speakers say that?!
          1. monster_truck · · focus · HN ↗
            Some do, others will even get upset if you don&#x27;t. It&#x27;s pretty funny imho, for some reason they never communicate these things ahead of time. We&#x27;re not mind readers!!!
      2. khimaros · · focus · HN ↗
        though not nearly as popular of an expression in that category as μαλάκας
    4. coolca · · focus · HN ↗
      Also it means gays (not in a flattering way) in italian if you just change a letter.
    5. stevekemp · · focus · HN ↗
      One of the later pages mentions that the name came from &quot;cirrocumulus floccus&quot;, the cloud formation.
      1. adrian_b · · focus · HN ↗
        In this case it is misspelled.

        The Latin word is &quot;flocci&quot;, which means hairs of wool, and it was also used to denote an insignificant thing.

        English normally preserves the double consonants of Latin, and in this case it has already done this in the English words derived from &quot;floccus&quot;, e.g. &quot;to flocculate&quot; and &quot;flocculent&quot;.

        1. illiac786 · · focus · HN ↗
          You mean like Flikr, sonarr, tumblr, Waze…?
          1. tough · · focus · HN ↗
            Flickr*
            1. illiac786 · · focus · HN ↗
              Oh gosh, been such a long time
          2. adrian_b · · focus · HN ↗
            I agree that the misspelling was probably intentional, but in this case, as others have pointed, it lead to some undesirable connotations in some languages.

            Even the original Latin word would be a poor choice, because, as I have said above, it was also used to designate something that is insignificant, and such a meaning is undesirable for a company, product or service.

        2. nephihaha · · focus · HN ↗
          Which gives rise to the word floccinaucinihilipilification.
    6. luis_cho · · focus · HN ↗
      There was once a cloud conference in Brazil called ConaCloud. I&#x27;m guessing &quot;cona&quot; means something different in Brazilian Portuguese than it does in European Portuguese. In Portugal is a slang word for vagina.
    7. nxobject · · focus · HN ↗
      As Coq (now Rcoq) found to their chagrin... I&#x27;m convinced half of the reason Lean has surpassed Coq in mindshare in formal mathematics was because it&#x27;s impossible to not chuckle at the name sometimes.
    8. jeltz · · focus · HN ↗
      It is also similar to an old Norse name: Floki.
  5. aeagentic · · focus · HN ↗
    Would someone be interested in this but intended for production? Im already running a whole bunch of cloudflare and AWS services in my own AWS fake and it works surprisingly well! :)
    1. dxxvi · · focus · HN ↗
      Could you tell us more about it? I&#x27;d love to hear about the use cases of cloudflare and AWS service combinations.
      1. aeagentic · · focus · HN ↗
        Not really for combinations, I use almost 100% the AWS implementations but just a few days ago I found something built serverless on CF and I could deploy via the CF surface. First it was more like an experiment but I can deploy almost everything as a hybrid giving even more durability then just AWS or local alone. Also I can rune base load on cheap metal servers and load balance the rest into the cloud twin. The combination of local and cloud or beeing able to leave any time makes it powerful
  6. mkirsten · · focus · HN ↗
    This looks very cool! Is this only intended for testing and development, or as a feasible way to migrante away from e.g., GCP as well?

    I’m interested in something that would allow me to over time migrante away from a GCP project that uses many services today - e.g., Datastore, FileStorage etc.

    1. _bohm · · focus · HN ↗
      Definitely not feasible to migrate off of actual cloud services using something like this.
  7. thegagne · · focus · HN ↗
    The cool part of this is it’s an example of what’s possible with a community of users armed with AI.

    Many users, (myself included), had need to test cloud stuff locally, but had no tool to do so. Localstack exists, but it started rug pulling the free tier and they didn’t support all the features.

    Meanwhile, Floci makes it easy to write your own cloud compatible test suite, then implement the feature to match. I was able to get a good enough coverage on a few features created in a weekend on the $20 tier of Claude to make it useful to me, then others picked up the work to round it out.

    It’s really cool to see it grow.

    1. didgeoridoo · · focus · HN ↗
      I’d love to see this for stuff like Stripe, Twilio, etc - they’ve got sandboxes but this would be a lot easier and faster.
      1. tough · · focus · HN ↗
        vercel-labs&#x2F;emulate [1], has stripe and twilio (their emulators are much more shallow generally like their AWS one can&#x27;t really be compared to floci here, but i&#x27;ve made custom ones for stuff like emulating hardware devices (airplay&#x2F;google play) with much success so you can basically extend them to your needs.

        1. <a href="https:&#x2F;&#x2F;github.com&#x2F;vercel-labs&#x2F;emulate" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vercel-labs&#x2F;emulate

    2. theptip · · focus · HN ↗
      There’s a general concept brewing, something like “proof of work” where if enough people get together and pool their tokens, then a good thing gets built.

      I think we’re in the early days of this, but for extremely verifiable domains like porting from A to B or simulators with an objective oracle, I think it’s just a matter of putting the scaffolding to enable anyone and their Claude to contribute fruitfully.

      I’m hoping we can do a similar thing with shared search for vulns, though it’s a bit harder. But if eg repos give an AGENTS.md with instructions on the bar for a good reproducer, then you could start to see more helpful federation patterns (instead of drive-by CVEs which are a net drain on contributors).

      Different OSS project management skills required, but I am optimistic that we can do better at onboarding non-experts to federate work via their Claude subs. Almost like Folding at Home.

  8. microflash · · focus · HN ↗
    Been using it for a while to run integration tests with Testcontainers [1]. It&#x27;s very good and much more lightweight than Localstack.

    [1]: <a href="https:&#x2F;&#x2F;testcontainers.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;testcontainers.com&#x2F;

  9. kwkelly · · focus · HN ↗
    fakecloud is another project in the space

    <a href="https:&#x2F;&#x2F;fakecloud.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fakecloud.dev&#x2F;

    1. rirze · · focus · HN ↗
      I&#x27;m using fakecloud and it&#x27;s dead simple to use. (like you said, aws only)
  10. VoidWhisperer · · focus · HN ↗
    Most likely a false positive, but worth noting for the people who run the project: Malwarebytes currently flags the site as &#x27;potentially unsafe&#x27; when trying to visit it - not sure what the best avenue for them to get that fixed beyond reaching out to Malwarebytes might be
  11. n738 · · focus · HN ↗
    This is awesome, hope to see it mature over the years!
  12. catlifeonmars · · focus · HN ↗
    Both localstack and floci live in this weird spot where for a lot of my applications, all the cloud-vendor specific stuff is abstracted out anyway. So the only time I need to touch the cloud is for testing the abstractions and do end to end testing. The abstractions can be tested against real cloud APIs as it is generally cheap to do and provides the highest fidelity results. End to end testing includes testing against a production-like environment, so again, more bang for your buck to just test against the cloud.

    I’ve definitely reached for these local cloud tools from time to time, but in a well-architected piece of software, you aren’t getting that much value from them. Either you don’t have a hard cloud dependency, or you want a high fidelity test of a specific cloud dependency.

    1. mmarian · · focus · HN ↗
      &gt; you want a high fidelity test of a specific cloud dependency

      Reached the same conclusion. Plus it&#x27;s a fair amount of effort to set them up and maintain.

  13. michaelastreiko · · focus · HN ↗
    Local stubs for cloud services are a lifesaver when you&#x27;re a one-person shop and don&#x27;t want a surprise bill just to test a webhook path.
  14. [deleted] · · focus · HN ↗

    [deleted]

  15. IndiaInfraNotes · · focus · HN ↗

    [dead]

  16. kikimora · · focus · HN ↗
    How on earth I never came across this before? ChatGPD does not know about this project either. Looks very, very promising!
  17. enderyentar · · focus · HN ↗
    Nice. Emulators like this are great for the parts you own, but I&#x27;ve learned to be careful with anything that leaves your system. Email is the one that got me: a local SES stub happily accepts every message, and then in the real world the mail bounces or lands in spam because of DNS records or the receiving provider&#x27;s rules. The emulator just tells you your code made the call, not that anything actually arrived. So I still keep one small end-to-end test against the real thing for those paths.
  18. bensyverson · · focus · HN ↗
    I&#x27;ve looked into developing &quot;digital twins&quot; of APIs that I rely on, similar to the StrongDM pattern, but the models talk me out of it every time. The rationale is that there could be subtle differences or drift between the behavior of the real service and the mocked API. So you may think you&#x27;re on solid ground, but once you switch to prod, you could see show-stopping differences.

    I think if I was doing evals on the way an agent interacts with a service (e.g. Slack) the digital twin could make sense, but for rapid iteration or testing, it might not be what you want.

    1. nijave · · focus · HN ↗
      That makes sense for the &quot;make sure this thing is working correctly&quot; case but there&#x27;s still &quot;I want to run this thing locally and it requires this other thing&quot;. The second one you really only need the happy path to work and you can run your test from the first thing against it (contract test).
  19. patriciobcs · · focus · HN ↗
    right on time to try gke
  20. nijave · · focus · HN ↗
    For AWS, moto
  21. conception · · focus · HN ↗
    For a hot minute Eucalyptus <a href="https:&#x2F;&#x2F;www.eucalyptus.cloud" rel="nofollow">https:&#x2F;&#x2F;www.eucalyptus.cloud was amazing - even matching aws bugs to keep compatibility. Wish it had rue support&#x2F;resources to keep going. Maybe a viber will pick up and get it more up to date.
  22. nexo-v1 · · focus · HN ↗
    I was never happy with how heavy LocalStack was, so I&#x27;m going to try this for my next green field cloud app.

    I think having such emulator being lightweight and quick to run becomes more important in AI coding&#x2F;worktree-based workflows where it&#x27;s important to pre-setup the worktree with dependencies and dependent services on local ports.

  23. fduran · · focus · HN ↗
    Floci works well, we started using it at SadServers for our AWS cli scenarios :-)
  24. danduma · · focus · HN ↗
    As a speaker of Romanian, loving the name

    (&quot;floci&quot; means &quot;pubes&quot;)

  25. calini · · focus · HN ↗
    As a Romanian, I chuckle at this.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.