pmcelhaney/bizallele ? reverse-engineered prompt

Reverse engineered prompt

Build me a TypeScript library for reusable business rules so I can define how my data behaves once and use the same rules in forms, tables, and server side validation.

I want to be able to create field definitions with labels, required rules, default values, dependencies between fields, and readable validation errors. Then I want those fields to be combined into a record for one item, and a recordset for a list of items. Changing one field should automatically affect other rules, like making a Tax ID required only when the country is not US.

Please include support for validating API style data, formatting values, and conditional field state. I also want simple Lit based form components for fields, records, and tables that can connect to the same data model. Make it easy to use in a normal app, with clear examples and TypeScript types. If anything is unclear, look up the latest docs online and follow the project style already in the repo.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab