KreaStack
  • Features
  • How it works
  • Pricing
  • About
  • Sign in
  • Get started
Getting started
5 pages
Account & organisation
4 pages
Inbox
2 pages
Projects
5 pages
Studio
3 pages
AI agents
7 pages
Automation
FlowsWorking on the flow canvasStep typesEngine room, event types, travellers and executionsJourneys: registration, login, verification, onboarding, checkoutBind a journey to your siteWebhooks and credentialsFunctions
APACS
6 pages
Websites
13 pages
Publisher & newsletters
2 pages
Webstore
6 pages
Affiliate programmes
2 pages
Courses, webinars & bookings
3 pages
Marketplace, directory & community
3 pages
Marketing & research
3 pages
Integrations & credits
4 pages
Support & help
3 pages
  1. Help Centre
  2. Automation
  3. Functions
Automation 0   Updated 14 Sep 2026

Functions

Server logic as published TypeScript functions — how they are written, what they may touch, and how a page or a flow runs one.

A function is a small program in TypeScript that runs on the server, sandboxed, when a URL or a flow step calls it. It is how a site gets custom server logic without anyone writing server code into the site itself.

Writing one

In Coder, a function is a folder with a manifest and an entry file. The manifest names the function and declares what it needs: read your data, write it, change structure, reach the network, spend credits. The declaration is checked against the platform's capability catalog when you publish.

Publishing and grants

Publishing stores an immutable version. What the function declared decides what happens next:

  • Control, read and write — self-serve; it can run.
  • Structure changes, network, spending, platform-level — an escalation; a person grants it before it runs.

Every run is recorded.

Running one

  • From a URL — create a URL of type Function with the function's name; requests to that path run it, as a page or as an API.
  • From a flow — the Function call step runs it with input and keeps the result.
  • From an agent — the call-function tool.

Why not PHP

Site logic in TypeScript is sandboxed, versioned and declares its reach; that is what makes it safe for agents and for you to publish freely.

Was this helpful?Thanks for your feedback!
Related pages
Coder Pages and URLs Step types Flows Working on the flow canvas

Still need help?

Open a Support Ticket All help pages
KreaStack

A short tagline for KreaStack — replace this in the CMS to describe what your site does.

Product

  • Features
  • How it works
  • Pricing
  • Affiliate program

Company

  • About
  • Contact
  • FAQ
  • Support

Legal

  • Terms of service
  • Privacy policy
  • Anti-spam
  • Disclaimer

Trusted infrastructure

Stripe payments SSL secured CDN delivered 99.9% uptime
© 2026 KreaStack. All rights reserved. Crafted with care · V26.08