展示HN:Craftplan – 我为我的妻子构建了一个用于她面包店的生产管理工具
Show HN: Craftplan – I built my wife a production management tool for her bakery

原始链接: https://github.com/puemos/craftplan

## Craftplan:为手工艺型企业设计的开源ERP Craftplan是一个自托管的开源ERP系统,专为小型制造商和手工艺企业设计。它将必要的工具——产品目录管理、库存、订单处理、生产计划、采购和CRM整合到一个平台中,无需多个订阅。 主要功能包括带有物料清单(BOM)版本控制和成本跟踪的详细产品目录、订单和发票生成、带物料消耗的生产批次处理,以及强大的库存管理(包括批次追溯和过敏原/营养成分跟踪)。 Craftplan提供用于客户/供应商数据的CRM,CSV导入/导出功能,以及可配置的事务性电子邮件。它采用现代技术构建(Elixir、Phoenix LiveView、PostgreSQL),并提供JSON:API和GraphQL访问。 通过Docker部署简单,并欢迎在AGPLv3许可下贡献代码。它专为按需生产设计,提供一种无供应商锁定、数据保留在您基础设施上的解决方案。

## Craftplan:一家烘焙坊生产管理工具 一位开发者为他妻子的微型烘焙坊开发了Craftplan,一款开源的生产管理工具,因为现有的软件要么太贵,要么不适合小批量生产。 Craftplan管理烘焙坊的关键运营,包括带成本跟踪的版本化配方、库存(带批次追溯和过敏原信息)、订单管理、生产计划和采购。它被设计成精简且专门为小型烘焙坊的需求量身定制,避免不必要的复杂性。 该工具使用Elixir、Ash Framework、Phoenix LiveView和PostgreSQL构建,并在GitHub上可用 ([https://github.com/puemos/craftplan](https://github.com/puemos/craftplan))。 也有一个在线演示可供测试 ([https://craftplan.fly.dev](https://craftplan.fly.dev))。 该项目在Hacker News上引发了关于UI细节(如小数位精度)的讨论。
相关文章

原文

GitHub-Banner

Open-source ERP for small-scale artisanal manufacturers and craft businesses

License: AGPLv3 Elixir ~> 1.15 Phoenix ~> 1.8

Live Demo

🔑 Demo Credentials

Email: [email protected] Password: Aa123123123123

Craftplan brings all essential business tools into one platform: catalog management, inventory control, order processing, production planning, purchasing, and CRM, so you can get off the ground quickly without paying for multiple separate platforms.

Manage overview with schedule, make sheet, and completion snapshot

Catalog & BOM

  • Product catalog with photos and labels
  • Versioned Bills of Materials — edit latest, older versions read-only
  • Automatic cost rollups across nested BOMs
  • Labor steps with time and cost tracking

Orders & Invoices

  • Customer order processing with calendar-based scheduling
  • Invoice generation
  • Order item allocation to production batches

Production

  • Production batching with automatic material consumption
  • Cost snapshots per batch
  • Completion workflow with produced quantity tracking

Inventory

  • Raw material management with lot traceability
  • Stock movements (consume, receive, adjust)
  • Allergen and nutritional fact tracking
  • Demand forecasting and reorder planning

Purchasing

  • Purchase orders and supplier management
  • Receiving into stock with lot creation

CRM

  • Customer and supplier database
  • Order history and statistics

Import / Export

  • CSV bulk import for products, materials, and customers
  • CSV export

Email

  • Transactional email delivery configurable from the UI
  • SMTP, SendGrid, Mailgun, Postmark, Brevo, and Amazon SES
  • API keys encrypted at rest

Calendar Feed

  • iCal (.ics) subscription URL for Google Calendar, Apple Calendar, or any iCal-compatible app
  • Includes order deliveries and production batch schedules
  • Generate and revoke feeds from Settings

API

  • JSON:API and GraphQL endpoints for programmatic access
  • API key authentication with encrypted storage
  • CORS configuration

Access Control

  • Admin and staff roles
  • Policy-based authorization on all resources

Elixir · Ash Framework · Phoenix LiveView · PostgreSQL · Tailwind CSS

Deploy Craftplan on your own server. No need to clone the repo:

curl -O https://raw.githubusercontent.com/puemos/craftplan/main/docker-compose.yml
curl -O https://raw.githubusercontent.com/puemos/craftplan/main/.env.example
cp .env.example .env   # Fill in the required secrets (see .env.example)
docker compose up -d

This starts Craftplan, PostgreSQL, and MinIO with migrations running automatically.

See the self-hosting guide for single-container mode, Railway deployment, reverse proxy setup, and more.

For contributors who want to work on the codebase. Prerequisites: Docker, Elixir ~> 1.15, Erlang/OTP 27

docker compose -f docker-compose.dev.yml up -d   # Start PostgreSQL + MinIO + Mailpit
mix setup               # Install deps, migrate, build assets, seed
mix phx.server          # Start at localhost:4000

See the development setup guide for detailed instructions.

  • Purpose-built for artisanal manufacturing — not a generic ERP adapted to fit; workflows are designed around small-batch, made-to-order production
  • Allergen & nutritional tracking — first-class support for food and beverage producers who need to track ingredients and generate nutrition labels
  • BOM versioning with cost rollups — iterate on recipes and formulas while keeping full history and accurate costing
  • Self-hosted, no vendor lock-in — your data stays on your infrastructure, backed by PostgreSQL

Contributions are welcome. For major changes, please open an issue first to discuss your proposal.

mix test       # Run the test suite
mix format     # Format code (Styler, Spark, Tailwind, HEEx)

Commits follow the convention: type(scope): description (e.g., feat(batching):, fix(orders):, ui(production):).

This project is licensed under the AGPLv3 License. See the LICENSE file for details.

联系我们 contact @ memedata.com