Reference implementations for Factorial Code — a complete marketplace payroll integration, a custom app with full install/uninstall lifecycle, and utility processes.
Reference implementations for Factorial Code — a complete marketplace payroll integration, a custom app with full install/uninstall lifecycle, and utility processes.
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.
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorDeclared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Repository health
LicenseLICENSE
Default branchmain
Open issues0
Status
Active
Skill metadata
Parsed from SKILL.md frontmatter.
LicenseMIT
Declared agentscursor
More metadata
category
factorial-code
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md4,580 B
docsSUMMARY.md383 B
History
First seen on skills.sh
First recorded snapshot · 184 installs
SKILL.md
Factorial Code — reference implementations
Worked, production-shaped examples of complete Factorial Code apps. Each reference in references/ walks through one real sample: its architecture, the key code, and how to adapt it. They complement the rule-focused skills (fcode-core-concepts, fcode-javascript/fcode-python, fcode-json-schema, fcode-forms, fcode-cli): those tell you how to write fcode code, this one shows what a finished app looks like.
Adapt, don't paste. These are patterns to rebuild for the user's actual vendor/requirements — rename slugs, variables, and mappings; drop what the use case doesn't need.
Which reference to read
You are building…
Read
A marketplace integration that delivers Factorial data (payroll, leaves, …) to an external system
Where to find a specific pattern, regardless of which app you build:
Pattern
Reference
Extending the outbound-sync base class (OutboundSync)
integration-acme
Per-item API push vs aggregate-to-file delivery
integration-acme
Reporting per-item sync status (success / invalid / failed)
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 metadata.json (webhook.authMode + the workspace webhookAuth, form.authMode, marketplace appRole)
integration-acme, custom-app-linear
Multi-step setup form (nextProcessId chaining)
custom-app-linear
Dynamic form dropdowns via preRenderProcess + #/variables
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 fcode.sendMail
utility-processes
Reading a form-uploaded file from Storage
utility-processes
Calling the Factorial API SDK (factorial-sdk module)
all three
The base workspaces (always present — never recreate)
Every fcode App workspace inherits shared modules from the base apps. Import them with fcode.import(...) / fcode.import_module(...); do not reimplement them:
Note: the fcode-formsmodule above (form-schema builders you fcode.import) is unrelated to the fcode-formsskill, which documents embedding forms on webpages.
The references keep code compact and omit routine logging; real implementations should log verbosely through the shared fcode-logs module (see fcode-javascript / fcode-python).
Language variants
Every sample exists in JavaScript (Node.js v22) and Python (3.13) with identical structure and behavior. References show JavaScript; the Python variant differs only in idiom (main.py, fcode.importmodule, fcode.sendmail, snake_case) — see fcode-python.