Singapore statutory payroll rules as code, in TypeScript, Python, PHP, Java, C#, C, C++, Rust and Haskell, with conformance vectors and an integration kit. The SME SDK is for your own payroll; the Engineering SDK is for products and client payroll.
Not sure it fits? See who Skedula isn't for.
Which edition fits how you'll use it?
| Use | Excel Workbooks | Developer Code (SDK) |
|---|---|---|
| Your own entities | SME Packs or Complete SME Suite (1 UEN, up to 200 staff); groups or 200+ staff use Corporate & BPO | SME SDK Edition (your company and its group companies, for their Singapore payroll) |
| Clients' payroll | Corporate & BPO Edition | Engineering SDK Edition |
| Shipped in a product | — | Engineering SDK Edition |
The Engineering SDK includes every other business edition. Corporate & BPO and the SME SDK each include the Complete SME Suite, but not each other.
SME SDK Edition
For businesses automating their own payroll in code, with an internal developer or contractor.
Full refund within 7 days. Orders from October to December also cover all of next year. By card it renews each 1 January, and you can cancel from your receipt. By PayNow it's one payment that never renews, and we send reminders before it ends. Hold the Suite or a pack? Upgrade in the portal (a pack via the Suite): what you paid for them since 1 October, less refunds, is credited (Master Terms 7.2). If you hold Corporate & BPO or the SME SDK, the other costs its full price (7.5). Which Excel do its workbooks need? See which versions.
- Your Own Payroll: Covers your company and its group companies, for their Singapore payroll; contractors permitted under confidentiality
- All 48 Programs in 9 Languages: TypeScript, Python, PHP, Java, C#, C, C++, Rust and Haskell (+ experimental COBOL), with 66,000+ conformance vectors and the SME Suite workbooks
- CPF EZPay Contribution File Writer & Checker (Preview): Generates and checks EZPay (FTP) files in all nine languages. Preview: no file it writes has yet been uploaded to CPF EZPay, and only CPF's upload confirms a file is accepted
- Updates & Kit: Statutory releases (what changed), integration kit and self-check against the vectors
- MCP Server for AI Assistants (Preview Release): Lets an AI assistant that supports MCP run every program on your computer, for your own payroll work. The assistant chooses the programs and inputs, so check what it reports
Included: Email on the rules and how the materials behave, and update alerts. Not included: Writing, reviewing or debugging your code, connecting to your systems, phone or video calls, filing, or handling credentials or employee data.
Own payroll only. No distribution or client service—choose the Engineering SDK for products or bureaus (schedule).
Engineering SDK Edition
For HRIS platforms, EOR providers, shift-management SaaS and fintech teams embedding payroll rules.
Full refund within 7 days. Orders from October to December also cover all of next year. By card it renews each 1 January, and you can cancel from your receipt. By PayNow it's one payment that never renews, and we send reminders before it ends. Hold the Suite, a pack, Corporate & BPO or the SME SDK? Upgrade in the portal (a pack via the Suite): what you paid for them since 1 October, less refunds, is credited (Master Terms 7.2). Which Excel do its workbooks need? See which versions.
- 9 Production Languages: TypeScript, Python, PHP, Java, C#, C, C++, Rust and Haskell, plus experimental COBOL (GnuCOBOL)
- 66,000+ Conformance Vectors: Golden test suites, integration kit and self-check ready for CI/CD
- CPF EZPay Contribution File Writer & Checker (Preview): Generates and checks EZPay (FTP) files in all nine languages. Preview: no file it writes has yet been uploaded to CPF EZPay, and only CPF's upload confirms a file is accepted
- Royalty-Free Embedding: Ship inside your software or run client payroll without seat fees; includes integer-exact arithmetic and updates (what changed)
- MCP Server for AI Assistants (Preview Release): Lets an AI assistant that supports MCP run every program on your computer, for building and testing your own work; not for shipping. The assistant chooses the programs and inputs, so check what it reports
The languages
TypeScript, Python, PHP, Java, C#, C, C++, Rust and Haskell, plus experimental COBOL (GnuCOBOL).
See the code
From the integration kit's quick starts for TypeScript (kit/quickstart/ts.md) and Python (kit/quickstart/py.md), using sg.cpf, the CPF contributions for one employee and one month. Every program works the same way: its own module with an input, an output and a compute(...) function. Every input is required, and money is in whole cents.
import { compute, PrScheme, Residency, Status } from "./sdk/ts/sg_cpf.ts";
// year and month: the pay period, as numbers (month 1 to 12)
const out = compute({
year,
month,
residency: Residency.Citizen,
prScheme: PrScheme.GraduatedGraduated, // ignored for a citizen, but required
prYear: 1900,
prMonth: 1,
birthYear: 1990,
birthMonth: 6,
ordinaryWage: 500000n, // money is bigint, in cents
additionalWage: 0n,
otherWagesInMonth: 0n,
owSubjectYear: 6000000n,
awSubjectPrior: 0n,
});
if (out.status === Status.Ok) {
console.log(out.employee, out.employer, out.total); // bigint cents
} else {
console.error("not computed, status", out.status); // 1, 2 or 3
}from payroll_rules import Status
from payroll_rules.sg_cpf import Input, PrScheme, Residency, compute
# year and month: the pay period, as ints (month 1 to 12)
out = compute(
Input(
year=year,
month=month,
residency=Residency.CITIZEN,
pr_scheme=PrScheme.GRADUATED_GRADUATED, # ignored for a citizen, but required
pr_year=1900,
pr_month=1,
birth_year=1990,
birth_month=6,
ordinary_wage=500000, # money is an int, in cents
additional_wage=0,
other_wages_in_month=0,
ow_subject_year=6000000,
aw_subject_prior=0,
)
)
if out.status == Status.OK:
print(out.employee, out.employer, out.total) # int cents
else:
print("not computed, status", int(out.status)) # 1, 2 or 3
Every call returns a status, and every other output is zero unless the status is OK (0). Status 2 is a period outside every version of the rules, and status 3 a requirement not met: a case the rules do not cover, where you are not to guess a figure.
| Status | Name | What it means | What to do |
|---|---|---|---|
| 0 | OK | The rules cover your inputs and the outputs hold the result. | Use the outputs. |
| 1 | InputOutOfRange | An input is outside the range its documentation gives. | Fix the input. The range is in the input's doc comment. |
| 2 | NoRuleForPeriod | No version of the rules covers the year and month you passed. | Check the year and month, then see the troubleshooting page. |
| 3 | NotCovered | The inputs describe a case the rules do not cover. | See the troubleshooting page; do not guess a figure. |
Both SDK editions carry the integration kit: a quick start, a worked example and troubleshooting for each of the nine languages, RESULTS-FORMAT.md, and a self-check against the vectors.
The results format
The 66,000+ conformance vectors are golden test suites, ready for CI/CD. The self-check compares what your integration computes with what Skedula expects. From kit/RESULTS-FORMAT.md: for each row of a vectors/<program>.vectors file, call your integration with the row's inputs and write one JSON object per line to RESULTS.jsonl.
{"program": "sg.cpf", "inputs": {"year": YYYY, "month": 1, "residency": 0}, "status": 0, "outputs": {"total": 123400, "employee": 20000}}
programis the name after# programin the vectors header.inputshas every input name from the# inputsheader, with the row's integer values.statusis the status your integration returned.outputshas the output names from the# outputsheader (notstatus), with the integers it returned.- All values are integers, exactly as the library returns them (money in cents).
The header of a vectors file names the inputs and the outputs in order, and each data row gives the inputs, then the status, then the outputs. This is the header of vectors/sg_ea_salary_deadline.vectors (when salary must be paid) and three of its rows, one of them a status 2:
# payroll-rules conformance vectors
# program sg.ea_salary_deadline
# inputs 4 year month event tax_clearance_needed
# outputs 4 status days_after day_basis tax_hold_days
# rows 256
2023 5 1 0 2 0 0 0
2027 2 0 0 0 7 0 0
2027 9 3 0 0 3 1 0
Then run python3 tools/skedula-check.py RESULTS.jsonl. It prints one line per program, such as sg.cpf: 1498/1500 match, and names each difference. If you believe an expected figure or a library is wrong, send support this report and the name of your target language. Under the Engineering SDK, support also helps get the vectors running in your own build. Neither edition's support debugs your own code. Never send real employee data: run your integration on the inputs of the vector rows only.
How we know it's right
- Official cases. Tests from the agencies' worked examples and figures, the tables and formulas they print, and legislation. Their expected values are copied from the source, never taken from Skedula's own output.
- Derived cases. Figures worked out from the source alone, without sight of the rule or the program's output, and kept only where they agree with the program.
- The vectors. The reference results of the rules' interpreter, which the code in every language must reproduce. They are the program's own results, not a source.
- A mutation check on every release. Before each release we change each rule in small ways, one change at a time: a different rate, a different threshold, a rule left out. A change that no case worked from a published source catches stops the release, unless no one could tell the changed rule apart from the original.
- The same answers in every language. The code in nine languages and the Excel workbooks are generated from the same rules, and each is run against the same vectors before release.
Before you buy
The two editions differ in what you may do with the code. Each limit below is in the edition schedules on the terms page, and you should read the schedule before you buy. The full text is in the schedules and the Master Terms.
- SME SDK: your own payroll only. Your company and its group companies, for their Singapore payroll and the HR, tax and finance work that goes with it, with contractors permitted under confidentiality (schedule 3 and 4(a)). No distribution to anyone else, in any form, and nothing that is part of a product or service you supply to others (4(c)). You may not use the materials, or anything built from them, to provide payroll, bureau, accounting, tax or advisory services, or a hosted, multi-tenant or API service, to anyone other than your company and its group companies, including clients and tenants (4(d)); shipping the code or running it for clients needs the Engineering SDK (4(e)). See the SME SDK schedule.
- Engineering SDK: embedding and client payroll. Embedding the code in your own product or service, which must have substantial functionality of its own beyond the code, and running it in internal services, APIs and hosted services, with no royalty per employee, transaction or tenant (schedule 4(a)). See the Engineering SDK schedule.
- Where the code may run. TypeScript, and any JavaScript or WebAssembly built from any SDK target, runs only on your own backend servers (SME SDK 4(c); Engineering SDK 4(b) and 7(d)). Do not bundle, embed or serve it in client-side browser code, public or internal web frontends, downloadable web assets, desktop or mobile hybrid app containers (Electron, Tauri, Capacitor, React Native), WebViews or browser-executed WebAssembly, and do not expose source maps (
.map) or raw source files. The schedules' examples of backend servers are server-hosted Node.js, Deno, Bun and serverless functions, with internal backend APIs (SME SDK 4(c)) and cloud APIs (Engineering SDK 4(b)). Under the SME SDK, for your own payroll, the libraries in the other languages may run on the computers and devices of your business, its group companies and their contractors, including in internal desktop and mobile tools (4(c)). Under the Engineering SDK, compiled or linked into your product, they may also run on your customers' servers and end-user devices, including in desktop and mobile applications (4(b)). No SDK code runs in a web browser or WebView. A different arrangement needs Skedula's prior written agreement (Engineering SDK 4(b) and 7(d)). - Distribution only as compiled binaries (Engineering SDK). You distribute the code to customers only as compiled or linked binary components forming part of your product where the language allows, or, where an interpreted server-side language needs source files at runtime, on your own servers only, and never separately (4(b)). Publishing the code, the vectors or generated rule sources in a public or open-source repository is not allowed (7(b)). The experimental COBOL code may not be distributed at all: see COBOL code under Support.
- What your customer terms must say (Engineering SDK 4(c)). They must prohibit extracting, copying and redistributing the code, state that your product is not legal, tax, accounting or payroll advice, and exclude Skedula's liability to the extent the law allows, with an express right for Skedula to enforce that exclusion under the Contracts (Rights of Third Parties) Act 2001 or equivalent law.
- Your responsibility and indemnity (Engineering SDK 4(d)). You are solely responsible for your products, your own outputs and filings, and your customers, and you indemnify and hold harmless Skedula against all third-party claims, damages, penalties, regulatory costs and reasonable legal costs arising from your product, its use by your customers or end users, or a breach of 4(c) or section 7, except to the extent directly caused by Skedula's fraud or wilful default.
- No thin wrappers. Under the SME SDK, you may not offer the materials, or a thin wrapper around them, as a stand-alone library, SDK, rule set, calculation API or developer tool whose main purpose is to supply statutory calculation logic to others (7(a)). Under the Engineering SDK, you may not offer them, or a thin wrapper or proxy API around them (including any public web calculator, calculation microservice, formula lookup endpoint or third-party-facing MCP tool/server), as a stand-alone library, SDK, rule set, calculation API, public calculator or developer tool whose primary value or function is to expose statutory calculation outputs without substantial surrounding payroll, HR, workforce or finance workflow features, such as employee records, payroll runs, payslip generation, ledgering or compliance workflows (7(a)). A payroll, HR, workforce or finance product that uses the code to deliver substantial workflow features of its own is not a breach of the Engineering SDK's 7(a).
- Other languages and certification need a separate agreement. Bindings outside the nine languages and the experimental COBOL, and any certification or conformance statement for your product (section 8 of both schedules).
Continuity and updates
- You keep what you have. When a licence period ends and isn't renewed, you may keep using the versions you hold, with no time limit, unless the licence ends early under the terms (Master Terms 10.1 and 10.4). That does not include updates, support or the warranty, and the versions will become out of date (10.2, 10.3). You can still download your edition's files for each year a licence covered, unless the licence for that year ended under clause 6 or clause 11, or while a dispute over its payment is open; in a year an Engineering SDK licence also covers, the SME SDK's files come in the Engineering SDK's download instead (10.2).
- Nothing phones home. The SDKs run in your own environment and send no employee or payroll data to Skedula (17.1). Nothing depends on a licence server.
- Updates. During a paid licence period, we publish updates to your edition's programs for statutory changes in force in Singapore, through the customer portal (Master Terms 8.1). The releases are listed on what changed. Our target is to publish an update at least 30 days before a change takes effect, and within 14 business days of the official publication when that comes less than 44 days before the change or after it (8.2). These are targets, not guaranteed dates (8.3). The experimental COBOL code is not covered: see COBOL code under Support.
- A versioned C interface. The C library's interface has a major version, stated in its header and carried in the library's file name, so a program cannot load a library of another major version. Within a major version a newer library can be deployed without rebuilding. A breaking change starts a new major version.
Support
Support for the Engineering SDK is email at [email protected] on using the Licensed Materials, on business days in Singapore. We aim to send a first reply within 3 business days; that is a target, not a promise (Master Terms 9). It is not legal, tax, payroll or accounting advice, it ends with the licence period, and it does not cover modified materials (Master Terms 9; Engineering SDK 5). The SME SDK's target is 5 business days.
- SME SDK support (schedule 9). The rules and how the materials behave, such as whether a result is right or what a status means. It isn't integration support.
- Engineering SDK support (schedule 9). The same, plus getting the kit's worked example and the conformance vectors running in your own build, in each of the nine languages. It isn't development or integration support, or support for your customers or end users.
- COBOL code (COBOL Schedule). In both editions, you and your group companies may use and change the experimental COBOL code in your own systems, for the uses your edition allows, but you must not distribute it to anyone else, including as part of your product (section 1). It is provided as is, without the warranty of Master Terms 13.1, and production use is at your own risk (sections 3 and 4). Skedula may give updates or support for it, but has no obligation to (section 4).
See every edition side by side, or the Corporate & BPO Edition for workbooks for your clients.
Supplier facts
- Supplier: Stutterheim Technologies, registered in Singapore, UEN 53534754E. It is not registered for GST, so none is charged on PayNow purchases (Master Terms 5.3). By card or wallet, Stripe (or its group company acting as merchant of record, such as Link) handles payment, tax collection and billing; Stutterheim Technologies remains the seller of the licence (5.2).
- Payment: card or PayNow at checkout. A quote for approval is available from [email protected].
- Terms: the plain-text Master Terms at
/legal/v2.8/LICENSE_MASTER_TERMS.txt, with every edition's schedule on the terms page. - Data: the workbooks, SDKs and MCP Bundle (preview release) run in your own environment: your computers and servers, or your own Excel for the web account. They do not send employee or payroll data to Skedula (Master Terms 17.1). With the MCP Bundle, the AI assistant you connect passes the inputs it gives the tools, and the results they return, through its provider's service: that data leaves your environment (17.2).
- Continuity: you keep every version you paid for, with no time limit (Master Terms 10.1), unless the licence ends early under the terms (10.4). Nothing depends on a licence server.
Skedula is independent and not affiliated with, approved or endorsed by CPF Board, MOM or IRAS. Reference calculations only, not payroll, tax or legal advice.