hckrnws
Show HN: Craftplan – I built my wife a production management tool for her bakery
by deofoo
My wife was planning to open a micro-bakery. We looked at production management software and it was all either expensive or way too generic. The actual workflows for a small-batch manufacturer aren't that complex, so I built one and open-sourced it.
Craftplan handles recipes (versioned BOMs with cost rollups), inventory (lot traceability, demand forecasting, allergen tracking), orders, production batch planning, and purchasing. Built with Elixir, Ash Framework, Phoenix LiveView, and PostgreSQL.
Live demo: https://craftplan.fly.dev (test@test.com / Aa123123123123)
Good, I will with great pleasure now reiterate my point about people now producing their own code, even complex stuff, rather than downloading potentially malicious and foreign code. Which as a tendency threatens ALL clumsy big ERP service providers selling you SAAS.
Go ahead - I'm ready to be down-voted again and again until folks realize it is inevitable, as is inevitable that many companies in the area of business software are going down down down.
I'll down vote just for the whiny attitude and superior tone.
I think the real question here isn't whether roll your own software will replace large complex 'configurable' systems, but whether companies that roll their own will replace the companies that don't.
ie are the efficiency gains of having something that's exactly tailored to you enough to create a competitive advantage.
It's back to the old idea - of software eating the world.
So for example in the UK - there is a relatively new 'energy' company called Octopus - it's grown and grown and finally overtaken the old established players.
In reality it's not an energy company - it's a software company - that used it's expertise in software to overtake it's energy supplier competitors - it was able to provide innovative products in the market because it controlled it's own software - rather than 'big vendor says no'.
I think it's telling that the founder originally left school at 16 to write computer games, before coming back to do a degree etc.
ie the question is - for any particular industry what's the benefit of custom software. Does a bakery having it's own give it enough of an advantage?
I'm a bit bitter about Octopus, although they did rescue us from the horrors of our previous supplier their insistence on us getting "smart" meters that can't then function as smart meters because of poor signal and are actually more difficult to read than our old meters has left me not hugely impressed with them.
Wasn't the smart meter rollout ( and the poor choice of hardware etc ) a central government initiative. Octopus merely used their software agility to make the most of it.
ie not sure issues with the smart meters themselves is the fault of Octopus - as the meter standards are set centrally so they can still work if you switch supplier?
Back to another old adage,
"people who are really serious about software should make their own hardware"
I'm the main dev in a small IT company, my backlog is filled with requests, it's not always easy to prioritize and plan, some of those small projects are ignored for months, yet their business value are sound.
I've observed a new trend, managers who are frequently in the wait list started to use AI to generate small local apps. They still rely on my input when it's complex, or when implementation could generate risks or need resilience and would ask for small code reviews when they are unsure of the generated code quality.
The result is win win, I have more time for high value projects the executives want to prioritize, and managers can innovate faster almost on their own.
That sounds good enough for me.
> “…big ERP service providers selling you SAAS.”
My work uses these services and it’s interesting to see the divide between companies who have documented APIs (some also with “marketplaces”), and others who have many thousands of dollars partnerships license requirements to get API access.
Or companies who are very restrictive about what they will let you do with their API, presumably in an effort to control the ecosystem around their products—whether it’s because they fear being open would devalue their product, or they have a strong notion of their market position and won’t admit any integration which upsets their governance.
First slowly then all at once. [1]
[1]: https://finance.yahoo.com/sectors/technology/software-applic...
That looks demonstrative! For those that don't want to click, from Aug to Feb S&P is up 10%. "Software - Applications" is down 21%.
But in this context, is Uber[9% weight, down ~4% YTD] a transportation company that roles it's own software for competitive advantage? I think other's in the composition are similar. The takeaway is maybe that the tech landscape is changing or LLMs have spooked investors and they're running without direction. But that doesn't necessarily speak to bespoke software uptake (already) cutting into profits(?) Uber would be fine in that case?
I think some the prevalence of AI is actually turning the bias on this. It would actually be a return to the roots of the start of early business computing - and sort of picking up where excel et al left off. I don't think it's AI the tech itself, it's the confidence for companies to build a customized software stack and maintain it is what AI mostly contributes.
> Which as a tendency threatens ALL clumsy big ERP service providers selling you SAAS.
Wait, what?
The big ERP vendors aren't under any threat, the small ones are.
No business is going to switch from a system that has armies of low-paid consultants to in house AI developed system that has effectively zero consultants who can come in and perform the deployment with tested integrations to their accounting system, their 200 suppliers, their customer systems and their 3rd party auditing systems.
But, small businesses who were not going with a 12m contract for 5 consultants, and who dont have any need for integrations to suppliers, customers and 3rd party systems can do their own systems.
It sounds like you are very far removed from ERP and business systems in general.
All magnetic coding is going to do is further entrench existing large systems because new systems, whether AI generated or not, will be too numerous for any one of them to gain traction.
My wife's old company, a fairly significant engineering consultancy, ran it's entire time/job management and invoicing system from a company wide, custom developed Microsoft Access app called 'Time'.
It was developed by a single guy in the IT department and she liked it.
About 5 years ago the company was acquired, and they had to move to their COTS 'enterprise' system (Maconomy).
All staff from the old company had to do a week long (!) training course in how to use this and she hates it.
In future I think there will be more things like 'Time' (though presumably not MS Access based!)
> In future I think there will be more things like 'Time' (though presumably not MS Access based!)
That's my assertion - those things like 'Time' can be developed by an AI primarily because there is no requirement of an existence of a community from which to hire.
It's an example of a small ERP system - no consultants, no changes, no community, etc.
Large systems (Sage, SAP, Syspro, etc) are purchased based on the existing pool of contractors that can be hired.
Right now, if you had a competing SAP/Syspro system freshly developed, that had all the integrations that a customer needs, how on earth will they deploy it if they cannot hire people to deploy it?
I still think MS Access was awesome. In the small companies I worked it was used successfully by moderately tech savvy directors and support employees to manage ERP, license generation, invoices, etc.
The most heard gripe was the concurrent access to the database file but I think that was solved by backing the forms by accessing anything over odbc.
It looked terrible but also was highly functional.
Agreed! The first piece of software I built was a simple inventory and sales management system, around 2000. I was 16 and it was just about my first experience programming.
It was for school, and I recently found the write up and was surprised how well the system worked.
Ever since I've marvelled at how easy it was to build something highly functional that could incorporate complex business logic, and wished there was a more modern equivalent.
Maybe a combination of AirTable and PowerBI/open-source alternative? Or just ms access backed by a proper database?
Grist[1] is great for this stuff, at first glance its a spreadsheet but that spreadsheet is backed by a SQLite database and you can put an actual UI on top of it without leaving the tool, or you can write full blown plugins in Javascript and HTML if you need to go further than that.
Just another yay for Grist here! I've been looking for an Access alternative for quite a while and nothing really comes close. You can try hacking it together with various BI tools, but nothing really feels as accessible as the original Access. While it's not a 1:1 mapping and the graphical report building is not really there, you can still achieve what you need. It's like Access 2.0 to me.
Access as a front end for mssqlserver ran great in a small shop. Seems like there was a wizard that imported the the access tables easily into sqlserver.
I've not seen anything as easy to use as the Access visual query builder and drag-n-drop report builder thing.
> No business is going to switch from a system that has armies of low-paid consultants to in house AI developed system
Are you sure about that? Because thats exactly what Klarna is doing/has done.
https://threadreaderapp.com/thread/1957789124930286065.html?...
> We realized 1 million context window is not enough to explain all facets of Klarna > Every new thread of AI is the same employee starting from scratch again. First day at the job.
Agents are limited. With you so far.
> This week we get a demo of a vibe coded frontend that is more beautiful and easy to use than any ticket management system I have seen
Again, totally matches my expectations. Agents totally make pretty stuff that looks like working software.
I just haven't drunk enough management wine to connect the dots and figure out these facts support a jira replacement.
It also gets me wondering, if Atlassian leaned more heavily into AI (More vibe coding, more agents, more layoffs) would they have been able to keep the Klarna contract?
> Are you sure about that? Because thats exactly what Klarna is doing/has done.
That link does not say that they are switching away from a system that requires armies of consultants to implement.
AFAICT, they are switching away from Jira (Atlassian/confluence products). Those are not ERP systems.
Once again, I must point out that the these sorts of assertions reveal that the person making the assertion has never been involved in an ERP rollout, neither a big one nor a small one.
And, again, I reiterate, the only threat is to small players in the market, who don't have a community to hire from. Because to become a big player, you need to gain traction as a small player, and if every small ERP system can be replaced with an AI generated system, non single one is ever going to gain traction (Why pay $10/user/month for a basic system when you can have AI generate that for a once of fee and some employee time?)
Workday is not an ERP? Beyond that, they're effectively replacing major stacks of traditional SaaS tools with in-house ones. Considering the scale and complexity of what Klarna does and the regulations it has to follow across many different markts, I'd say its a valid concern. Now, I don't think SAP etc are going anywhere, especially in traditional businesses where most of the company is reliant on it, but it seems there is a way to do it.
That said, plenty of banks still run on mainframes and use COBOL.
https://www.salesforceben.com/klarna-salesforce-workday-part...
Well lets see how it works out for them - they're ending the partnership for HR software in order to build their own, but they say they haven't built anything yet!
> It sounds like you are very far removed from ERP and business systems in general.
am I really? it sounds so many people in big ERP service providers are oblivious of the tide rising that will wash them away, because you know what - most of these companies are super pricey, super slow, very messy and tend to fail large-scale projects that cost millions? I've seen this happen personally, and I have personally, as a sole player implemented ERPs with custom inhouse software.
Trust me brother, I know ERPs very well and seen hundreds of high-profile fakers that have zero knowledge of E/R, Business Architecture, and integrations, that still believe they can get away with nonsense.
Hope you're not one of them.
> Hope you're not one of them.
I've been part of enough ERP contracts to know that customers evaluate their options based on how easy it is to hire consultants on the open market.
I did do quite a lot of custom software prior to AI-slop, and that market is completely destroyed with vibe-coding agents. The ERP one looks like it is simply going to further entrench the big players, because new ERPs evolve from some custom application, and once that pipeline is gone, your choices are going to be "build it yourself with no ability to hire for it" or "Go with one of the existing behemoths".
My argument is that AI will remove the pipeline that leads to incumbents seeing more competition.
> on how easy it is to hire consultants on the open market.
In the not not so distant future (5 years? 10?) that consultant market will be of people with very good process knowledge and very good prompting skills. Which might or might not be in a good part the same consultant market we have today.
You think the big players aren’t going to use the new tools to massively cut employees and costs?
> rather than downloading potentially malicious and foreign code
So I shouldn't download and use this right? I can't verify if it's potentially malicious or not
I meant random gh repos really here, though same argument stands for SAAS which is very very very much interested in your data, and you have exactly zero guarantees and control over what happens to it once ingested. Like - GDPR exists not to protect users, but to enforce anonymization of the data that is then going to be aggregated and sold.
Now imagine my not-so-complext ERP or internal system - can be developed with little or no effort. Why would I give Benioff my dollars rather than spend it on in-house assets, that also increase the valuation of my company? I find very little reason to do so in 2026.
Not just that, previously many orgs outsourced to consultancy, now when the consultancies also start outsourcing to AI, sooner all business may cut the middleman and have inhouse it teams outsourcing work to AI instead of consultancies !
100%
You do realize that making software by developer for his wife means for random business is hiring a third party dev to build custom software?
So still, for ransom business much cheaper and better to buy software from SaaS vendor.
In this case it was better ONLY because the client is the wife of the developer.
And even now, if he sells this to other businesses - it will be MUCH cheaper to buy his subscription than homebrew the same version of it - as if it starts selling it he will be adding features and support which requires time (which is money).
> You do realize that making software by developer for his wife means for random business is hiring a third party dev to build custom software?
No, this is not true. There are so many non-technical users of Microsoft Access that run their won businesses without hiring anyone. A friend of mine had a business with an yearly turnover shy of $3M (which is small, alright) and it was running wired spreadsheets and google forms. 20 people. He never ever bought any software, and existed for more than 10 years, until his wife (yes his waifu) decided to divorce and bring the company down.
Business Architecture is not so much about writing the software, sorry, we as IT professionals would love to think it is, but this is a super weak bias.
Almost every SMB I interact with sounds like this company. Was it founded more than 10 years ago? Probably holding the ship together with spreadsheets and email.
So true, we devs are so stuck in our own bubble
This is a great piece of software, with much thought put into nitty gritty details. Aside from the gripes around the mobile experience that some have outlined here, I would say you've put much thought into this piece of software. Your wife is lucky that she has a talented software developer for a husband. AI or no AI, I think this is a very clean and beautiful piece of software. This doesn't seem like its Vibe coded, because AI doesn't write such clean code but maybe AI is improving and I'm just bad at telling which is which. Nonetheless, keep up the great work and thanks for sharing. I'm downloading it just to learn from your codebase. Its not like before AI came around talented devs didn't create working side projects to help their loved ones out.
The truth is that I put a lot of work in at the beginning to define the data structure and flows by myself. AI was very useful later to experiment with how to build the views on top of it and to fix some issues.
I still had to think hard about how to make this simple and easy for someone who does not have deep knowledge of this manufacturing domain.
*Lessons learned:*
1. Data structure is almost everything, then comes business logic
2. You must have deep domain knowledge of what you are building
3. Iterate fast on the views built on top of the data structure
*PS*All mobile fixed had been resolved and deployed ;)
AI will write whatever kind of code you want it to write. If you know how to write clean code and you can describe that in a prompt, it will give you clean code that is indistinguishable from that of a talented dev.
> If you know how to write clean code.
If we're assuming that:
I find it less time consuming to just write the code, understand it 99% (since I wrote it), and debug the rest, than it is to try to describe it to the AI, understand a fraction of what it spits out, and spend more time understanding it and fixing it.
If you can just write clean code just do that. Also, you will improve your skills even more the more you do that (shocker). So the next time you have to do that it will be even easier. This is called learning a skill.
Sorry for the rough tone, reading that back haha. But still posting because I'm just passionate about it, it's nothing personal though.
The question is, does the bakery still produce bread, or does it now randomly produce bread, ice cream or frogs?
I’d consider the latter scenario a feature :)
I'm actually building open-source SaaS for every vertical and leveraging that to build an interoperable marketplace. I'm nearly done with the restaurant one (alternative to Toast).
omg its built with elixir... Everytime I see my favorite language pop up I'm a little happier.
OK HN, time for us to build a full open source general purpose ERP in Elixir based on Ash XD
"That's a great idea! Do you want me to create a PRD, a million markdown files and some useless Playwright tests?" -- Claude
AI Agents Assemble!
You can tell this was written with love. Regardless of what tools were used to make this, I think we could all do more of this for the people important in our lives.
It can still be a LLM-induced marketing stunt to catch attention though. "Hey let's add a bakery story so people can relate to it!"
This is amazing! My wife is also planning to open up a bakery and I was thinking of building something similar. Hadn’t thought of that daily production workflow, just the ingredients and recipes into cost/labour/profit parts.
Some small things: When trying to edit a product (almond cookies) on the phone, I cannot scroll the pop-up so cannot go to all fields or the save button. When calculating the total calories it prints kg as the unit instead of cal. On the overview page of materials for a product it only shows “grams” per ingredient without the actual number.
Super! Will get these fixed asap
Fixed!
I love this. I know another small batch baker who also thought it was cool (we'll dig more when sober). BOM+cost is rad. Eager to try forecasting a weekend-rush situation.
My only nit, as a legacy internet goober is, use example.com for these throw away addresses; it's reserved for that purpose.
Thanks! Would love to hear your feedback. I'm a solo developer so iteration is really fast
This looks great! Love the screenshots, although I'm unable to login to the app. Likely due to the extra traffic this post has gotten. How long did it take you to build this ?
Yeah, trying to pump more memory. It took a few weekends over a long period of time
And I built e-commerce for my wife's micro-bakery https://thonon-les-pains.fr/ (most of it - like product and order management - is behind auth).
I don't think it's useful to anyone - not white label, not open source - but still funny :)
I don’t live nearby, but thank her for baking gluten free!
The best part is the domain, I grew up close by
(Le filtre pain/biscuits/gluten est pété sous safari)
Yep the wordplay made me chuckle too :)
Love that. I was thinking to add e-commerce layer
Can you estimate how many hours went into this? Did you use agents?
A few weekends. At the end I used AI to get JSON:API and GraphQL working, plus the docs website, a few UI changes + bug fixing
Is the logic behind "Usage Forecast" and "Reorder Planner" hard-coded somewhere? I'm not seeing any configuration for that, so I had to ask the question.
Right now it's hard-coded. But based on your feedback I'm going to make some of it configurable
Well done Claude, good job!
Awesome, does it support Semiproducts? For example I'm making my own jam (sugar + fruit) and then I use this again as a material in different finished products, say cakes and croissants.
Nice idea, i think i can make it work. Give me a day or two
This is definitely a nit but is there any reason you need 2 decimal places accuracy for percent complete?
Nope, might change it based on the feedback
This is very cool! How did you make a dashboard this good?
Oh man. My wife's biscotti business will benefit from this. Nice work!
Awesome. Please send any feedback, it will make me so happy to get another person to benefit from it
I think I have needed this for 3d printing for some time
Live demo not loading for me - hug of death?
Nice work. My wife will love this. Only minor gripe is the production schedule doesn't play nicely on mobile. Text leaks between columns.
Oh man, going to fix that ASAP
Fixed!
You've done a great job!
It's simple, well documented, and uses appealing technologies.
I'm sure your wife's business will take off.
I love that you can just "curl download the docker compose file and docker up" to run. Awesome UX.
Just amazing. I had a need for something like this but wound up building it out in Mathesar. That, too, is an amazing project, but my business logic has to remain separate. Jeepers, you're even getting into labor accounting - well done!
I think this is a very nicely thought out approach. I particularly like it doing allergen tracking. Obviously you're at the mercy of supplier/supply-chain integrity but if you do e.g. wind up with ground cumin contaminated with god knows what, this is what will get you where you need to be.
Yeah. Craftplan support batches so you can easily track down a bad batch
Login submission hangs forever, guessing too much traffic
Nice! 5 bucks says you can swap this in for your average software kanban and it does a better job.
awesome and thank you for open sourcing it! Maybe consider renaming it, since there is CraftNote, an app with similar scope in construction business.
Love to the point of invention! This looks and feels great.
I'm an Elixir newbie and wondering if I should start with learning Ash or stick with Liveview until I know more. Any thoughts on what Ash solved for you over Phoenix Liveview?
Ash can be used in conjunction with Phoenix, they aren't mutually exclusive. Ash is really just a framework for modeling your domain(s) and getting a bunch of helpful functionality for free (e.g advanced querying capabilities, pagination, data validations, json+graphql apis, and more) Then you could use those functionalities with phoenix to build a full web app. Or you could use something else other than phoenix, it's up to you :)
Def start with Phoenix first and then try Ash.
Comment was deleted :(
That is one good-looking website.
Seems like the live demo website is about to die though.
Yeah, didn't expect so much traffic. Going to pump some RAM
Rather offtopic question: what browser are the screenshots taken in? The window chrome looks familiar but I can't put my finger on it.
Looks like Arc Browser.
Yup, that's Arc
Thanks!
This is unreal. Nice work How long did it take ? I tried to use ash to build a simple app and couldn’t get it to work lol.
I’m an elixir noob
A few weeks (mostly weekends)
Honestly, well done and thanks for sharing it. I also really appreciate the fact that you included multiple screenshots of the UI, as well as some of the agent plans. Reading the code and project structure, it feels like you put in the work.
Looks well thought out. We wrestle with website, real ERP and building Notion connectors for production orders in make to order scenarios so there’s definitely a pain point.
Yeah. Notion is not a bad idea but you'll need to maintain the connections. In fact i did model the idea first in notion
Incredible
This looks amazing! How long did it take to get to this state?
Few weeks. Elixir + Ash + LiveView is the best productive combination
This is really awesome, congrats!
This is why technical people make the best spouses
This is incredible work. Can we get a blog post?
Maybe? What would you like to hear about?
As someone who struggled with ERPs, this is super-nice and clean!
Thanks!
[dead]
Crafted by Rajat
Source Code