
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@publicodes/forms
Advanced tools
This library exports utilities to create interactive forms and simulators from publicodes rules.
This library is framework-agnostic and can be used with any state management system:
// Create a form builder
const engine = new Engine(rules)
const formBuilder = new FormBuilder({ engine })
// Initialize form state
let state = FormBuilder.newState()
state = formBuilder.start(state, 'target . rule')
// Get current page UI elements
const formElements = formBuilder.currentPage(state)
// Handle user input
state = formBuilder.handleInputChange(state, 'rule . name', 'new value')
// Navigate pages
state = formBuilder.goToNextPage(state)
state = formBuilder.goToPreviousPage(state)
// Get pagination information
const { current, pageCount, hasNextPage, hasPreviousPage } =
formBuilder.pagination(state)
npm install publicodes publicodes-form
Then follow the guide to create a simple page.
FAQs
Utilities to convert publicodes rules in interactive forms
The npm package @publicodes/forms receives a total of 0 weekly downloads. As such, @publicodes/forms popularity was classified as not popular.
We found that @publicodes/forms demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.