Main features
- Drag-and-drop builder with attachments, tables, ratings and signatures
- Encrypted responses unlocked with a key only admins hold
- Show or hide fields and sections, or block submission, with logic
- Workflows that route a form through several people with approvals
- Stripe payments on forms
- Webhooks with an official JavaScript SDK
- Verified email and mobile number fields
- Virus scanning of uploaded files
- CSV export of decrypted responses
- Pre-filled fields, restricted access and PDF copies for respondents
What FormSG does
FormSG is the form builder that Singapore’s public service uses to replace paper forms, built by Open Government Products, a team in the Government Technology Agency. Its self-hosting guide says it has been in production since 2017 and is used by more than 160 public agencies and over 150,000 public officers. The code is public, and the team now runs a program to help other governments deploy it themselves.
Officers build forms in a drag-and-drop editor with dozens of field types, including attachments, tables, dates, ratings, signatures and verified email and mobile number fields, which send a one-time code before the respondent can submit. Logic shows or hides fields and sections depending on earlier answers, or blocks a submission when an answer rules the respondent out. Workflows route one form through several people in turn: an applicant fills in the first part, a manager adds theirs and approves or rejects, and fields filled earlier can be locked, with reminders and a status link for each submission. Forms can take Stripe payments, send email confirmations and PDF copies to respondents, and have fields pre-filled.
Encrypted responses
The most distinctive part is how responses are stored. When an admin creates a form, their browser generates a secret key that the FormSG team never sees, and responses are stored encrypted. Viewing or exporting them to CSV means unlocking them with that key, so the server operator cannot read the answers, and admins must keep the key safe. The older Email mode, which only emailed submissions, was phased out in 2025 after lost emails caused lost data. Uploaded files are scanned for viruses, and webhooks can deliver each response to another system using the official JavaScript SDK.
Self-hosting FormSG
The self-hosting guide offers several routes. The simplest runs the repository’s Docker Compose setup on one Ubuntu 22.04 virtual machine, recommended at 2 vCPUs and 4 GB of RAM, which the guide positions for pilots, staging, air-gapped networks and small organizations with up to about 1,000 submissions a month. A separate guide covers a production deployment on AWS, and a Fly.io deployment shows how to adapt it elsewhere. The application needs Node.js 22.12 or later and MongoDB, the only supported database, plus S3-compatible storage for attachments and images, an SMTP service, session storage and a serverless function that scans uploads with ClamAV or similar. The team notes that FormSG was designed for AWS and that other clouds are untested.
Legal homework comes with it: the guide asks you to remove the Singapore government masthead and branding, replace Singpass, CorpPass and MyInfo sign-in with your own identity provider or none, make clear you are not affiliated with the Singapore government, and accept that OGP provides no commercial support.
Hosted version
None for the public. form.gov.sg serves Singapore public officers only, and the public demo deletes forms after three hours with payments and webhooks turned off.
Limitations
Without a hosted option, FormSG is only for organizations that can run Node.js, MongoDB, object storage and email themselves, ideally on AWS. Logic covers showing, hiding and blocking rather than calculations or quotas, and there are no survey features such as matrices, NPS or statistical exports. The national identity integrations, a big part of its value in Singapore, do not carry over.
Who it suits
FormSG suits public bodies and large organizations that want a Google Forms or Jotform replacement for official applications and requests, with encrypted storage, approvals and payments on infrastructure they control. Smaller teams without an operations team will find OpnForm easier to run.
License details
MIT. MIT with extra terms from GovTech Singapore: logos, trademarks, state symbols, third-party assets and any code marked as not licensed are excluded, and disputes go to arbitration in Singapore. Forks must remove Singapore government branding and the Singpass and MyInfo setup.
Technical details
Self-hosting needs
- MongoDB
- S3-compatible storage
- SMTP
Built with
- TypeScript
- Node.js
- React
GitHub topics
- hacktoberfest
Reviewed by the OpenSourcePicks editors from the project's repository and documentation. Something out of date? Tell us.