Loading...
Loading...
Reference implementations for Factorial Code — a complete marketplace payroll integration (outbound sync with file-export and API-push delivery flavors), a multi-process custom app lifecycle (multi-step setup form, webhook + schedule install, polling, uninstall), and utility processes (CSV export with signed URL + email, XML enrichment from an uploaded file). Use when building a Factorial Code (fcode) integration, custom app, or automation end to end and you want a proven, working pattern to adapt — read the matching reference before writing code.
npx skill4agent add factorialco/factorial-code-skills fcode-examplesreferences/fcode-core-conceptsfcode-javascriptfcode-pythonfcode-json-schemafcode-formsfcode-cli| You are building… | Read |
|---|---|
| A marketplace integration that delivers Factorial data (payroll, leaves, …) to an external system | |
| A custom app with install/uninstall lifecycle: setup form, webhooks, schedules | |
| A one-shot automation: export/report generation, file processing | |
| Pattern | Reference |
|---|---|
Extending the | integration-acme |
| Per-item API push vs aggregate-to-file delivery | integration-acme |
Reporting per-item sync status ( | integration-acme |
| Webhook entry point authenticated by the platform, not in process code | integration-acme, custom-app-linear |
Activating and protecting webhook / form triggers in | integration-acme, custom-app-linear |
Multi-step setup form ( | custom-app-linear |
Dynamic form dropdowns via | custom-app-linear |
| Creating webhooks + schedules at install, recording them for uninstall | custom-app-linear |
| Polling with a datastore cursor + idempotency (dedup map, or vendor upsert when available) | custom-app-linear |
| Best-effort uninstall / teardown | custom-app-linear |
Storage upload + signed download URL + email with | utility-processes |
| Reading a form-uploaded file from Storage | utility-processes |
Calling the Factorial API SDK ( | all three |
fcode.import(...)fcode.import_module(...)| Module | From | Provides |
|---|---|---|
| base-app | |
| base-app | |
| base-app | Form-schema builders: |
| base-app | |
| base-app | Shared error handling |
| base-integration-app | |
fcode-formsfcode.importfcode-formsfcode-logsfcode-javascriptfcode-python| JavaScript | Python |
|---|---|
| |
| |
| |
| top-level |
| camelCase helpers | snake_case helpers |