Add frontends API and tests