Tier: Beta. Salesforce Apex is a beta target — Archiet generates real, idiomatic Apex, LWC, and metadata, but unlike the web stacks it is not runtime-boot-verified in CI: deploying and running it requires your own Salesforce org / scratch org. Treat the output as a strong, security-aware starting point you validate in a sandbox before deploying to production.
What generating a Salesforce Apex project from requirements produces
force-app/main/default/
objects/
{Entity}__c/ # Custom Object + fields, with __c metadata XML
classes/
{Entity}Service.cls # Apex service; SOQL WITH SECURITY_ENFORCED
{Entity}Controller.cls # @AuraEnabled methods for LWC
{Entity}ServiceTest.cls # @isTest coverage
lwc/
{entity}List/ # Lightning Web Component (js, html, meta)
{entity}Form/
permissionsets/
{Entity}Access.permissionset-meta.xml
flexipages/, tabs/, layouts/
sfdx-project.json
README.md
Salesforce-specific patterns Archiet gets right
SOQL with WITH SECURITY_ENFORCED so field- and object-level security is respected at query time, not bypassed:
public with sharing class OrderService {
@AuraEnabled(cacheable=true)
public static List<Order__c> listOrders() {
return [
SELECT Id, Name, Status__c, Total__c
FROM Order__c
WITH SECURITY_ENFORCED
ORDER BY CreatedDate DESC
LIMIT 200
];
}
}
with sharing classes so record visibility follows the running user's sharing rules — the platform's tenancy model, rather than a hand-rolled filter.
LWC wired to @AuraEnabled controllers. Each Custom Object gets list and form components calling cacheable Apex methods, with error handling surfaced through the Lightning toast pattern.
Permission sets, not profile edits. Access is granted via generated permission sets so deployment doesn't mutate org-wide profiles.
Test classes for deployability. @isTest classes accompany each service so the project can clear Salesforce's coverage gate — review and extend them for your org's assertions.
What is included
- Salesforce DX project —
sfdx-project.json, source format, ready forsfdx force:source:push - Custom Objects + fields — metadata XML per entity from your model
- Apex services + controllers — security-enforced SOQL,
@AuraEnabledfor LWC - Lightning Web Components — list and form UI per entity
- Permission sets + test stubs — for access control and coverage
- Architecture docs — ADRs under
docs/decisions/
Related
- Step-by-step walkthrough: Generate a Salesforce Apex + LWC application from your PRD
- Related page: Salesforce custom development
- All use cases: archiet.com/use-cases
FAQ
Does the generated Apex respect Salesforce security?
Yes — SOQL uses WITH SECURITY_ENFORCED and classes are declared with sharing, so field-level security and record sharing are honored at query time rather than bypassed.
What do I need to run it?
Your own Salesforce org or a scratch org. The project is in Salesforce DX source format; you deploy it with sfdx force:source:push and validate in a sandbox.
Does it include test classes?
Yes — @isTest classes accompany each service so the project can meet Salesforce's coverage gate. Review and extend the assertions for your org before production deployment.
Is the Salesforce stack production-ready?
It is a beta target: the Apex, LWC, and metadata are real and security-aware, but it is not runtime-boot-verified in CI because deployment requires your own org. Validate in a sandbox before production.
CTA
Generate a Salesforce Apex + LWC project from your requirements — free plan, no credit card.
Describe your product, pick Salesforce Apex, and download a Salesforce DX project to push with sfdx.
Start free at archiet.com.