# Kooboo Documentation
> Official Kooboo CMS, Template Engine, and server-side KScript runtime documentation. Every published page exposes a raw Markdown `.md` endpoint listed below.
## AI Quick Entry
- [KScript AI Cheat Sheet](https://docs.kooboo.com/llms-kscript.txt): Server-side KScript (JS/TS on Jint) runtime rules, key Kooboo gotchas, scenario-to-API matrix, and full 100+ KScript API catalog
- [KScript API Details Overview](https://docs.kooboo.com/api/index.md): Scenario quick selector and A-Z module catalog
- [简体中文文档索引 (Simplified Chinese)](https://docs.kooboo.com/zh/llms.txt): Complete Simplified Chinese documentation index
- [KScript AI 速查手册 (简体中文)](https://docs.kooboo.com/zh/llms-kscript.txt): Simplified Chinese KScript runtime cheat sheet
## Getting Started
- [Authentication and Authorization](https://docs.kooboo.com/api/getting-started/auth.md): Quick guide to Kooboo platform authentication in KScript using k.account.isLogin, login, logout, and ensureLogin.
- [API Getting Started](https://docs.kooboo.com/api/getting-started/index.md): Get started with server-side Kooboo KScript (k.*): write your first GET/POST APIs, explore the global k object, and enable IDE type hints.
- [KScript Language and Runtime](https://docs.kooboo.com/api/getting-started/runtime.md): Kooboo server-side KScript (JS/TS on Jint) runtime guide: script hosts, Classic vs Module scope, env="server", ES imports, and limits.
- [API Details](https://docs.kooboo.com/api/index.md): Complete server-side Kooboo KScript (k.*) API catalog, scenario quick selector matrix, and AI raw Markdown / llms.txt discovery index.
- [SPA Multilingual (Frontend Endpoint)](https://docs.kooboo.com/api/spa-multilingual/index.md): Kooboo SPA Multilingual frontend JSON endpoint (GET /_spa/lang/lang) reference: fallback order, caching, CORS, and browser integration examples.
- [index.md](https://docs.kooboo.com/index.md): Learn to build and manage Kooboo websites with Admin CMS tutorials, template engine guides, and the KScript API reference.
- [Add Content](https://docs.kooboo.com/quick-start/add-content.md): Create a content model and content items so pages can retrieve managed data from Admin.
- [Write Your First KScript API](https://docs.kooboo.com/quick-start/add-script-api.md): Add a server-side endpoint to Kooboo so the frontend can retrieve JSON or execute business logic.
- [Build Your First Page](https://docs.kooboo.com/quick-start/build-first-page.md): After selecting New, give the page a clear name and URL. For the first page, start with a simple path such as /about, /news, or /contact.
- [Create Your First Site](https://docs.kooboo.com/quick-start/create-first-site.md): After signing in, you enter the site list. This is an account-level page and does not contain a SiteId. If you already have a site, select Manage on its card to enter site Admin.
- [Quick Start](https://docs.kooboo.com/quick-start/index.md): Take the shortest path through Kooboo: create a site, build a page, add content, write a small amount of server-side logic, and publish it.
- [Publish and Domains](https://docs.kooboo.com/quick-start/publish-domain.md): Confirm that the site can be reached externally and complete the basic go-live configuration.
## Core HTTP & Runtime
- [k.analytics](https://docs.kooboo.com/api/analytics/index.md): Query Kooboo site visitor logs, static resource traffic, and error analytics, or track custom conversion goal events via k.analytics.
- [k.api](https://docs.kooboo.com/api/api/index.md): Define KScript API routes with get/post/put/delete handlers, action matching, metas validation, resultHander wrapping, and HTTP status shortcuts.
- [k.cache](https://docs.kooboo.com/api/cache/index.md): Site-isolated in-memory cache with set, get, getOrCreate, remove, removeAll, localCache, and group; returns undefined on miss; prefer getOrCreate over getOrSet.
- [k.content](https://docs.kooboo.com/api/content/index.md): Query, create, update, delete, reorder, relate, and localize Kooboo ContentFolders and TextContent items across list and single-content modes.
- [k.cookie](https://docs.kooboo.com/api/cookie/index.md): Read, set, and remove client HTTP cookies by day, minute, domain, or sameSite; get returns null when missing; pairs with k.privacy consent.
- [k.history](https://docs.kooboo.com/api/history/index.md): Query site CMS edit history, inspect object versions and diffs, replay edit videos, roll back changes, or check out snapshots via k.history.
- [k.label / k.t / k.site.labels](https://docs.kooboo.com/api/label/index.md): Read and manage multilingual site labels with k.t(), k.label() auto-creation, placeholder formatting, and the k.site.labels repository.
- [k.logger](https://docs.kooboo.com/api/logger/index.md): Write server-side logs across five severity levels and query CodeLog entries with date, category, level, traceId, and pagination filters.
- [k.mail](https://docs.kooboo.com/api/mail/index.md): KScript mail API for SMTP sending, IMAP inbox collection, EML parsing and attachments, Amazon SES, SpamAssassin checks, and Mail module context.
- [k.media](https://docs.kooboo.com/api/media/index.md): Manage site Media Library image folders and files with subfolder listing, creation/deletion, binary uploads, ID or path lookups, and existence checks.
- [k.module](https://docs.kooboo.com/api/module/index.md): Runtime API for Kooboo script modules: module context, config, local file/DB storage, scheduled tasks, and site-level install, import, and export.
- [k.openApi](https://docs.kooboo.com/api/openapi/index.md): Invoke admin-imported OpenAPI and Swagger endpoints in KScript using generated operation names, positional parameters, and authorize profile APIs.
- [k.page](https://docs.kooboo.com/api/page/index.md): Dynamically set
and charset, name, property (Open Graph), and http-equiv tags on the HTML page rendered by the current request.
- [k.paramConfig](https://docs.kooboo.com/api/param-config/index.md): Read site-level structured settings defined in Admin Parameter Config (UserOptions) via direct property access, get(name), or bracket indexing.
- [k.privacy](https://docs.kooboo.com/api/privacy/index.md): Read localized Kooboo Cookie consent banner settings, resolve regional close-button actions, and scan third-party scripts for Cookies.
- [k.request](https://docs.kooboo.com/api/request/index.md): Read incoming HTTP request queryString, form, raw body text, uploaded files, headers, model binding, clientIp/country, and culture context.
- [k.response](https://docs.kooboo.com/api/response/index.md): Shape HTTP responses with write/json (keeps text/html default), headers, status codes, views, files, binary downloads, redirect, stop, and meta.
- [k.security](https://docs.kooboo.com/api/security/index.md): Cryptographic helpers for MD5/SHA1/SHA256/SHA512, HMAC, AES/RSA encryption, PEM SHA256 signing, Base64, GUID/Snowflake IDs, password hashing, and JWT.
- [k.session](https://docs.kooboo.com/api/session/index.md): Store and read per-session server state (_kb_session_id) with 30-min inactivity expiration, 50-key cap, null on miss, and null keys before first write.
- [k.state](https://docs.kooboo.com/api/state/index.md): Pass per-request ViewData to pages, layouts, and views via set, setCurrent, and get; discarded after the request and returns null when missing.
## Site & Content
- [k.site.codes](https://docs.kooboo.com/api/site/code.md): k.site.codes API: CRUD, URL lookup, and change logs for Api and CodeBlock items; Api requires url on add(), CodeBlock has no route, verify delete with get().
- [k.site Context and Built-in Helpers](https://docs.kooboo.com/api/site/context.md): k.site context & helpers: info, read-only webSite, settings, multilingual URLs, search (findAll/on), version, diskSpace, and helper.
- [k.site.styles](https://docs.kooboo.com/api/site/css.md): k.site.styles API: CRUD, route URL lookup (getByUrl/getUrl/getAbsUrl), updateBody, and change logs for standalone site CSS stylesheets.
- [k.site.files](https://docs.kooboo.com/api/site/file.md): k.site.files (CmsFile) API: add, query, updateBinary, delete, and view change logs; uses GUID id and add() does not register a route automatically.
- [k.site.formValues](https://docs.kooboo.com/api/site/form-value.md): k.site.formValues API: query, add, update, and delete FormValue records; populate values after add() via update(), as nested values on add() throw.
- [k.site.htmlBlocks](https://docs.kooboo.com/api/site/html-block.md): k.site.htmlBlocks API: read, interpolate placeholders, getOrAdd, and update multilingual HTML blocks; delete() is a no-op at runtime.
- [k.site.images](https://docs.kooboo.com/api/site/image.md): k.site.images API: upload images with addImage(), query by URL/folder/id, update bytes or alt text, and inspect logs; getByFolder() is iterable, not an array.
- [k.site](https://docs.kooboo.com/api/site/index.md): Kooboo k.site API reference: manage versioned pages, layouts, views, scripts, styles, files, images, site context, routes, and scheduled jobs.
- [k.site.job / runJob / getJob](https://docs.kooboo.com/api/site/job.md): k.site.job repository, runJob(), and getJob() API: manage scheduled site jobs, trigger immediate execution, and check live running status.
- [k.site.scripts](https://docs.kooboo.com/api/site/js.md): k.site.scripts API: CRUD, route URL lookup (getByUrl/getUrl/getAbsUrl), updateBody, and change logs for standalone site JavaScript assets.
- [k.site.layouts](https://docs.kooboo.com/api/site/layout.md): k.site.layouts API: create, read, update, updateBody, delete, and inspect change logs for Layout HTML skeletons with k-placeholder regions.
- [k.site.menus](https://docs.kooboo.com/api/site/menu.md): k.site.menus API: read navigation menu trees, manage submenus and localized names; get() returns a truthy empty wrapper if missing, so check list() first.
- [k.site.pages](https://docs.kooboo.com/api/site/page.md): k.site.pages API: CRUD, URL lookup, multilingual routes (getUrls/updateRoute), and change logs for site pages; distinct from request-scoped k.page.
- [k.site.routes](https://docs.kooboo.com/api/site/route.md): k.site.routes API: query routes by URL/name/objectId, rename paths via changeRoute(), and create aliases via makeAlias() (throws if source route is missing).
- [k.site.views](https://docs.kooboo.com/api/site/view.md): k.site.views API: create, read, update, updateBody, delete, and inspect version logs for reusable HTML View fragments (no route URLs).
## Database & Storage
- [k.DB](https://docs.kooboo.com/api/database/index.md): Unified k.DB entry point covering indexedDb, keyValue, sqlite, sequenceDb, sql routing, and external MySQL, SQL Server, MongoDB, and Redis.
- [Folder Operations — k.file](https://docs.kooboo.com/api/file/file-folder.md): k.file disk folder management APIs: folderFiles, subFolders, folderExists, createFolder, renameFolder, deleteFolder, and getAllFiles.
- [FileInfo / SearchFolderOptions — k.file](https://docs.kooboo.com/api/file/file-info.md): k.file data structures: FileInfo file metadata, FolderInfo directory metadata, and SearchFolderOptions for filtering folderFiles().
- [k.file.resumableUpload](https://docs.kooboo.com/api/file/file-resumable.md): k.file.resumableUpload chunked upload API with create, get, saveChunk, and build; covers 1-based chunk indexing and remove() caveat.
- [k.file](https://docs.kooboo.com/api/file/file.md): k.file site disk file API for text/binary read and write, append, copy, rename, delete, and /__kb/kfile/ URLs (separate from k.site.files).
- [k.DB.indexedDb](https://docs.kooboo.com/api/indexed-db/index.md): k.DB.indexedDb dynamic table API for schema-flexible object CRUD, chained queries, pagination, indexes, and 99-entry change history.
- [k.DB.keyValue](https://docs.kooboo.com/api/key-value/index.md): k.DB.keyValue lightweight site string store with set, get, contains, and remove; 4096-byte value limit and runtime caveat on keys.
- [k.DB.sequenceDb](https://docs.kooboo.com/api/sequence-db/index.md): k.DB.sequenceDb local sequential store for numeric-key appends, range scans, find/findAll predicates, and openDb/deleteDb lifecycle.
- [k.DB.sqlite](https://docs.kooboo.com/api/sqlite/index.md): k.DB.sqlite built-in SQLite API supporting parameterized query, get, value, execute, transactions, and cross-site attach().
## Account & Auth
- [k.account](https://docs.kooboo.com/api/account/index.md): Kooboo k.account platform account entry covering login, user, organization, and oAuth submodules for auth state and account system boundaries.
- [k.account — Login and Identity](https://docs.kooboo.com/api/account/login.md): k.account authentication and token APIs: isLogin, login, loginOrganization, logout, ensureLogin, and JWT identity control.
- [k.account.oAuth](https://docs.kooboo.com/api/account/oauth.md): k.account.oAuth API for builtIn OAuth, activeDirectory tokens, and standalone WeChat, Google, Facebook, Apple, and Weibo sign-in.
- [k.account.organization](https://docs.kooboo.com/api/account/organization.md): k.account.organization API to inspect organizations, members, roles, departments, and tenants, and manage org sub-accounts and structure.
- [k.account.user](https://docs.kooboo.com/api/account/user.md): k.account.user API for reading the current signed-in user, orgs, and roles, querying users, switching orgs, updating passwords, and test tokens.
## Commerce & Payment
- [k.commerce.address](https://docs.kooboo.com/api/commerce/address.md): k.commerce.address: query countries, provinces, and cities, or call addressDetail() to enrich an Address with localized translation metadata.
- [k.commerce.cart](https://docs.kooboo.com/api/commerce/cart.md): k.commerce.cart: create carts, inspect session currentId, compute totals with discounts/shipping/points, edit lines, and update contact or delivery options.
- [k.commerce.category](https://docs.kooboo.com/api/commerce/category.md): k.commerce.category: query categories and parent chains, create/delete categories, update single or batch multilingual fields, and assign or remove products.
- [k.commerce](https://docs.kooboo.com/api/commerce/commerce.md): k.commerce entry module: aggregates 13 sub-modules for products, categories, carts, orders, customers, loyalty, discounts, shipping, and settings.
- [k.commerce.currency](https://docs.kooboo.com/api/commerce/currency.md): k.commerce.currency: read default currency code, list configured currencies with exchange rates, and convert amounts via convert().
- [k.commerce.customer](https://docs.kooboo.com/api/commerce/customer.md): k.commerce.customer: manage customer records, session currentId, login/logout/password, OAuth bindings, addresses, order history, and assigned discounts.
- [k.commerce.discount](https://docs.kooboo.com/api/commerce/discount.md): k.commerce.discount: list site discount codes and automatic discounts, including condition rules, discount values, priority, and usage limits.
- [k.commerce.loyalty](https://docs.kooboo.com/api/commerce/loyalty.md): k.commerce.loyalty: inspect loyalty points and membership status, change or renew memberships, earn or redeem points, and paginate point ledger records.
- [k.commerce.membership](https://docs.kooboo.com/api/commerce/membership.md): k.commerce.membership: fetch configured membership tiers via list() and get(id), including pricing, duration, auto-upgrade, and conditions.
- [k.commerce.order](https://docs.kooboo.com/api/commerce/order.md): k.commerce.order: query orders, create orders from cart or CreateOrderInit, mark paid, ship whole or partial lines, update shipping/address, and cancel or reopen.
- [k.commerce.product](https://docs.kooboo.com/api/commerce/product.md): k.commerce.product: manage products and variants, multilingual field updates, keyword/facet search, price calculation, digital delivery items, and customer reviews.
- [k.commerce.settings](https://docs.kooboo.com/api/commerce/settings.md): k.commerce.settings: read global e-commerce settings including currencies, weight unit, payment methods, loyalty point rules, custom fields, mail server, and webhooks.
- [k.commerce.shipping](https://docs.kooboo.com/api/commerce/shipping.md): k.commerce.shipping: query physical shipping methods via list(options?) with cartId/currency cost calculation, and digital delivery via digitalList().
- [k.commerce.wishlist](https://docs.kooboo.com/api/commerce/wishlist.md): k.commerce.wishlist: manage customer wishlists via list(customerId), add(customerId, variantId), and remove(customerId, variantId) (void return).
- [k.payment.alipayForm / alipayApp / alipayH5](https://docs.kooboo.com/api/payment/alipay.md): k.payment.alipayApp, alipayForm, and alipayH5: create Alipay App, web form, and H5 payments, check status, and handle callbacks (CNY only).
- [k.payment](https://docs.kooboo.com/api/payment/index.md): k.payment payment gateway hub: initiate charges, query status, and read PaymentRequest records across 15 providers after configuring them in CMS.
- [k.payment.moneyBoxs](https://docs.kooboo.com/api/payment/moneyboxs.md): k.payment.moneyBoxs: create MoneyBoxs card charges (USD only) with billing/shipping addresses, read local status, and verify 3D Auth callbacks.
- [k.payment.paynlCheckout](https://docs.kooboo.com/api/payment/paynl.md): k.payment.paynlCheckout: create Pay.NL Checkout charges (default expire 86400s), poll payment status, and process callbacks to update orders.
- [k.payment.paypalCheckout / paypalForm](https://docs.kooboo.com/api/payment/paypal.md): k.payment.paypalCheckout and paypalForm: create PayPal Checkout or Form charges and handle callbacks; paypalForm.checkStatus() throws.
- [k.payment.square](https://docs.kooboo.com/api/payment/square.md): k.payment.square: create Square Checkout charges (USD only) with redirect URLs, check payment status, and handle built-in callbacks.
- [k.payment.stripeCheckout / stripe](https://docs.kooboo.com/api/payment/stripe.md): k.payment.stripeCheckout and stripe: Stripe Checkout hosted pages, PaymentIntent card charges, saved card CRUD, status checks, and order callbacks.
- [k.payment.twoCheckout](https://docs.kooboo.com/api/payment/two-checkout.md): k.payment.twoCheckout: create TwoCheckout card charges with billing addresses, 3DS redirect handling, status checks, and order callbacks.
- [k.payment.weChatH5 — WeChat H5 Payment Flow](https://docs.kooboo.com/api/payment/wechat-h5-flow.md): k.payment.weChatH5: end-to-end WeChat mobile browser H5 flow; requires order, CNY currency, and totalAmount, redirecting via redirectUrl.
- [k.payment.wechat / wechatApp / wechatJsApi / weChatH5](https://docs.kooboo.com/api/payment/wechat.md): k.payment.wechat, wechatApp, wechatJsApi, and weChatH5: WeChat Native QR, App, JSAPI, and H5 payments plus status checks (CNY only).
## Network & Utilities
- [k.google](https://docs.kooboo.com/api/google/index.md): k.google provides Lighthouse scoring and Firebase Auth; accessing k.google eagerly loads the site Firebase service account JSON and throws if unconfigured.
- [k.net.DNS](https://docs.kooboo.com/api/net/dns.md): k.net.DNS (case-sensitive): resolve host A/AAAA IPs, MX and NS records, reverse DNS, and Whois, with optional custom NS server overloads.
- [k.net.httpClient](https://docs.kooboo.com/api/net/httpclient.md): k.net.httpClient outbound HTTP client: JSON/text/form/multipart bodies, send() single requests, and batch tasks; unsupported verbs fall back to GET.
- [k.net](https://docs.kooboo.com/api/net/index.md): k.net network overview: outbound HTTP via httpClient or url, webSocket upgrades, DNS, IP geolocation, ping, and SSH/SFTP/Telnet remote sessions.
- [k.net.IP](https://docs.kooboo.com/api/net/ip.md): k.net.IP (case-sensitive): read inbound client myIP and look up city, country, coordinates, and ASN info by IP; returns null for invalid IPs and an empty IPInfo object when unmapped.
- [k.net.ping](https://docs.kooboo.com/api/net/ping.md): k.net.ping sends an ICMP probe to a hostname or IP and returns ip, round-trip time in milliseconds, and success status.
- [k.net.sftpClient](https://docs.kooboo.com/api/net/sftpClient.md): k.net.sftpClient connects over SFTP using password or PEM private key, runs upload/download inside a callback, and closes automatically.
- [k.net.sshClient](https://docs.kooboo.com/api/net/sshClient.md): k.net.sshClient opens an SSH session using password or PEM private key, runs shell commands via ConnectedClient.runCommand(), and closes automatically.
- [k.net.telnetClient](https://docs.kooboo.com/api/net/telnetClient.md): k.net.telnetClient opens a Telnet session via connect() and reads/writes using write, writeLine, read, and terminatedRead inside the callback.
- [k.net.url](https://docs.kooboo.com/api/net/url.md): k.net.url synchronous HTTP helpers: get/post/put/patch/delete/getAsBinary; headers+cookies overloads return CurlResponse; downloadZip requires Content-Disposition.
- [k.net.webSocket](https://docs.kooboo.com/api/net/websocket.md): k.net.webSocket (camelCase): upgrade ws/wss requests with accept(), list active connections, and push text/binary messages or close via get().
- [k.utils.CDN](https://docs.kooboo.com/api/utils/cdn.md): k.utils.CDN (uppercase): control response CDN caching and cache duration; note enableCDN() currently triggers the same disable flag as disableCDN().
- [k.utils.clientJS](https://docs.kooboo.com/api/utils/clientJS.md): k.utils.clientJS: inject browser variables via setVariable() (HTML rendering context only), return Monaco editor assets via monacoResource(), and read i18n() config (also usable in API routes).
- [k.utils.community](https://docs.kooboo.com/api/utils/community.md): k.utils.community: interact with Kooboo Community/AppStore packages via search(), downloadFile(), share(), shareBinary(), and delete(); auth required for writes.
- [k.utils.compression](https://docs.kooboo.com/api/utils/compression.md): k.utils.compression: decompress Gzip text from site files or bytes, and create or extract ZIP archives in memory (Entry/ZipItem) or site folders.
- [k.utils.converter](https://docs.kooboo.com/api/utils/converter.md): k.utils.converter calls Kooboo cloud conversion services for HTML-to-PDF (with AppendText headers/footers), GIF-to-WebP, and Office-to-HTML conversion.
- [k.utils.CRM](https://docs.kooboo.com/api/utils/crm.md): k.utils.CRM (uppercase): internal Kooboo CRM billing sync; fetch CRMCustomer[] and CRMOrder[] records from a startDate using a valid crmKey.
- [k.utils.date](https://docs.kooboo.com/api/utils/date.md): k.utils.date: read now/utcNow, format dates with formate() (source spelling), and offset DateTime values by seconds, minutes, hours, days, months, or years.
- [k.utils.dom](https://docs.kooboo.com/api/utils/dom.md): k.utils.dom: parse HTML to extract plain text, image lists (hasImage/images), and a DOM document; must call parse() before reading images or it throws.
- [k.utils.image](https://docs.kooboo.com/api/utils/image.md): k.utils.image: convert image formats, resize FileInfo or byte arrays, adjust DPI (min 72), apply watermarks, read size, and count/convert animation frames.
- [k.utils](https://docs.kooboo.com/api/utils/index.md): k.utils entry point: root helpers (sleep, bytesToString, stringToBytes) plus 21 submodules for XML, URI, compression, images, Excel, Puppeteer, and more.
- [k.utils.inlineHtml](https://docs.kooboo.com/api/utils/inlineHtml.md): k.utils.inlineHtml: render a site page by name or relative URL with site-local images, files, CSS, and scripts inlined (external URLs skipped); returns null if missing.
- [k.utils.mime](https://docs.kooboo.com/api/utils/mime.md): k.utils.mime: look up a MIME content type from a filename with getMimeMapping() and reverse-map a MIME type to extensions with getExtensions().
- [k.utils.ninjible](https://docs.kooboo.com/api/utils/ninjible.md): k.utils.ninjible: start site migration and Lighthouse comparison tasks and poll NinjibleProgress; task state lives in process memory and clears on restart.
- [k.utils.office](https://docs.kooboo.com/api/utils/office.md): k.utils.office.excel: read and write .xls/.xlsx site files or byte arrays as objects, 2D arrays, or KWorkBook/KSheet; note getExtentionName() spelling.
- [k.utils.puppeteer](https://docs.kooboo.com/api/utils/puppeteer.md): k.utils.puppeteer: headless browser screenshots (1440x900 default), DOM/JS evaluation, and long-lived task pool management; throws if Puppeteer is disabled.
- [k.utils.screenShot](https://docs.kooboo.com/api/utils/screenShot.md): k.utils.screenShot: capture PNG bytes or Base64 screenshots from URLs, site paths, page names, or HTML strings; 1440x900 default viewport with scaling/fullPage.
- [k.utils.sitemap](https://docs.kooboo.com/api/utils/sitemap.md): k.utils.sitemap: build sitemaps.org-compliant XML sitemaps with chained create(), append(loc, options?), and build(), including hreflang alternates.
- [k.utils.sms](https://docs.kooboo.com/api/utils/sms.md): k.utils.sms: send SMS via aliSMS, tencent, or chinaMobile providers using site Console SMS settings; aliSMS/chinaMobile throw on error while tencent returns false on non-Ok status.
- [k.utils.string](https://docs.kooboo.com/api/utils/string.md): k.utils.string (KText): strip HTML tags, extract substrings or semantic summaries, and perform case-insensitive replace/remove; subString throws on out-of-bounds.
- [k.utils.template](https://docs.kooboo.com/api/utils/template.md): k.utils.template: render Views or Pages on the server; render() requires or inline HTML, whereas named views must use renderView().
- [k.utils.uri](https://docs.kooboo.com/api/utils/uri.md): k.utils.uri: parse absolute URLs (with scheme) into a mutable KUriBuilder, or read/rewrite query parameters with getQueryParam() and setQueryParam().
- [k.utils.xml](https://docs.kooboo.com/api/utils/xml.md): k.utils.xml: parse or create XML documents with Document, Element, Attribute, and CDATA helpers; element.value returns null when children exist.
## CMS
- [Carts](https://docs.kooboo.com/cms/commerce/carts.md): View and manage site cart instances: storefront add-to-cart, marketing automation, and other flows all create records; the admin can also create carts manually, edit line items, and…
- [Currencies](https://docs.kooboo.com/cms/commerce/currencies.md): Configure the site default currency and additional currencies with exchange rates relative to the default, for multi-currency display and conversion. Carts / orders can switch trial…
- [Customers](https://docs.kooboo.com/cms/commerce/customers.md): Maintain site customer profiles and shipping addresses for carts and orders association and checkout. Storefront registration/login is handled by k.commerce.customer; see API.
- [Discounts](https://docs.kooboo.com/cms/commerce/discounts.md): Configure site discount rules: can apply automatically when conditions are met, or via discount codes entered by customers/admin in carts. Cart and checkout trial calculation uses the…
- [Commerce](https://docs.kooboo.com/cms/commerce/index.md): The Commerce module manages products, orders, carts, shipping, discounts, and more in the Kooboo site admin. Storefront checkout and product data are read/written via k.commerce; this…
- [Loyalty](https://docs.kooboo.com/cms/commerce/loyalty.md): Configure membership tiers (Membership), view members with points and tiers, and set earn points and redeem points rules. Data is stored in Commerce settings.earnPoint /…
- [Notification](https://docs.kooboo.com/cms/commerce/notification.md): Configure commerce email notifications and webhooks: send email or callback external URLs on events such as order created, payment succeeded. Settings stored in Commerce settings. Bottom…
- [Orders](https://docs.kooboo.com/cms/commerce/orders.md): View and process site orders: filter, export, detail, mark paid, ship, cancel, and maintain notes. Orders are usually created from cart checkout or storefront API; development…
- [Product Categories](https://docs.kooboo.com/cms/commerce/product-categories.md): Product categories organize storefront navigation and filters (e.g. "Men / Outerwear"). Categories can manually or automatically include products, and support parent categories for…
- [Product Detail (Create and Edit)](https://docs.kooboo.com/cms/commerce/product-management-detail.md): Create: /_Admin/commerce/product-management/create?SiteId=...&typeId=[typeId or blank]
- [Product Management (List)](https://docs.kooboo.com/cms/commerce/product-management.md): Maintain site sellable products list, filters, and entry points; per-product form and variants in Product detail (create and edit).
- [Product Types](https://docs.kooboo.com/cms/commerce/product-types.md): Product types define an attribute template and variant option presets for a class of products (similar to Content -> Content Types defining entry structure, but product type "form…
- [Sale Stats](https://docs.kooboo.com/cms/commerce/sale-stats.md): View site commerce sales reports by date range (read-only; does not modify order data). Top Date range defaults to last month through today; three tabs share the same range; changing…
- [Settings](https://docs.kooboo.com/cms/commerce/settings.md): Site-level commerce global configuration (Commerce Store settings): units of measure, checkout payment methods, product/category/order field models, and variant/digital product display…
- [Shipping](https://docs.kooboo.com/cms/commerce/shippings.md): Configure checkout shipping methods: physical products use express shipping (amount/condition-based surcharges); digital products use digital shipping (email delivery of content).…
- [Tax](https://docs.kooboo.com/cms/commerce/taxes.md): Configure commerce tax by country/region: one rule per country with base tax rate, optional regional overrides for provinces/states, and product condition overrides. Cart trial and order…
- [Content Types](https://docs.kooboo.com/cms/content/content-types.md): Content types define the field structure of content entries (similar to a database table schema). Creating a content folder requires specifying a content type.
- [Content Entries](https://docs.kooboo.com/cms/content/contents-entries.md): Folder: /_Admin/content/textContentsByFolder?SiteId=...&folder=[contentFolderId]
- [Content Folder Settings](https://docs.kooboo.com/cms/content/contents-folder-settings.md): Content Folder Settings in Kooboo: Open from row Settings (gear) or the New wizard on the content folder list
- [Content Folders](https://docs.kooboo.com/cms/content/contents-folders-list.md): After you define a Content Type, create a content folder here and then manage entries inside it. The content folder name is also the key used in k.content.
- [Files](https://docs.kooboo.com/cms/content/files.md): Files manages the site CMS file library: upload PDFs, ZIPs, documents, etc., organize by folder, and serve downloads or access via site URLs. This is not the same storage as top-bar…
- [HTML Blocks](https://docs.kooboo.com/cms/content/html-blocks.md): HTML blocks (HtmlBlock) let you maintain a reusable HTML block in the admin for use across multiple Pages, Layouts, and Views. The front end renders the version for the current site…
- [Content](https://docs.kooboo.com/cms/content/index.md): Core routes: /_Admin/content/contentTypes?SiteId=... and /_Admin/content/contents?SiteId=...
- [Labels](https://docs.kooboo.com/cms/content/labels.md): Labels centralize multilingual copy for the site (buttons, hints, fixed paragraphs), avoiding hardcoding in pages/Views. Templates and KScript use k.label(), k.t() for the current…
- [Element Attributes](https://docs.kooboo.com/cms/content/tag-attributes.md): Element attributes (engine KConfig) let you centrally edit editable HTML tag attributes in templates (e.g. href, src, inner HTML) without changing Page/View source each time. Entries…
- [Parameter Config](https://docs.kooboo.com/cms/content/user-options.md): Parameter config defines a set of structured key-value parameters for the site: design Schema (field names, display names, types) in the admin, then fill Data on another page; templates…
- [Database](https://docs.kooboo.com/cms/database/index.md): The Database group manages multiple data stores within a site: IndexedDB dynamic tables, table relations, key-value storage, and browsing and data maintenance for external SQLite / MySQL…
- [Key-Value Storage](https://docs.kooboo.com/cms/database/key-value.md): Key-value storage provides simple site-level key / value pairs: suitable for cache flags, lightweight configuration, temporary state, and other scenarios that do not need a table schema.…
- [MySQL Tables](https://docs.kooboo.com/cms/database/mysql-table.md): MySQL tables let you browse and manage tables in an connected external MySQL database from the admin: create tables, maintain columns and data, and import / export CSV. Configure the…
- [SQL Logs](https://docs.kooboo.com/cms/database/sql-logs.md): SQL logs show SQL statements executed by site scripts through k.DB.sqlite / k.DB.mysql / k.DB.sqlServer: statement text, parameters, duration, and database type for troubleshooting and…
- [SQLite Tables](https://docs.kooboo.com/cms/database/sqlite-table.md): SQLite tables manage tables in the site’s built-in SQLite database: create tables, maintain columns and data, and import / export CSV in the admin. No separate connection string is…
- [SQL Server Tables](https://docs.kooboo.com/cms/database/sqlserver-table.md): SQL Server tables let you browse and manage tables in a connected external SQL Server database from the admin: create tables, maintain columns and data, and import / export CSV.…
- [IndexedDB Table Relations](https://docs.kooboo.com/cms/database/table-relation.md): Table relations declare an association between two IndexedDB tables: specify Table A / Field A, relation type, Table B / Field B, and give the relation a name. After saving, when reading…
- [IndexedDB Tables](https://docs.kooboo.com/cms/database/table.md): IndexedDB tables are the site’s built-in dynamic table storage: after defining table names and fields (columns) in the admin, you maintain data on this page and read/write in KScript…
- [Authentication](https://docs.kooboo.com/cms/development/authentication.md): Configure access control rules for front-end site requests: match requests by URL / HTTP method, then run JWT validation or custom KScript. On failure, return an HTTP status code or…
- [Code Log](https://docs.kooboo.com/cms/development/code-log.md): View runtime logs from site KScript / code execution: filter by log level, time, TraceId, and keywords, and open single-entry details. Unlike operation logs (content change audit), this…
- [Code Search](https://docs.kooboo.com/cms/development/code-search.md): Full-text search across code and template bodies in the site: pages, View, Layout, Script, Style, Code, HtmlBlock, forms, content, and more. Lists hit line numbers and snippets; Edit…
- [Code](https://docs.kooboo.com/cms/development/code.md): Manage site KScript / TypeScript code resources: API, CodeBlock, event handlers, page scripts, etc. Types come from the admin Code/CodeType API; tabs and list filter by type. Script…
- [Forms](https://docs.kooboo.com/cms/development/forms.md): Manage site form definitions and submission data: external forms can be created and edited here with HTML templates; embedded forms are created with pages/objects and viewed/configured…
- [Development](https://docs.kooboo.com/cms/development/index.md): The Development group centralizes templates and site-level resources for the site: View, Layout, Script, Style, Code, plus URL routing, forms, admin menus, authentication, Open API, SPA…
- [Jobs](https://docs.kooboo.com/cms/development/jobs.md): Jobs run KScript / TypeScript on the Kooboo server on a schedule: configure one-time or recurring runs for sync, cache cleanup, batch notifications, etc. Task scripts run in the site's…
- [Layouts](https://docs.kooboo.com/cms/development/layouts.md): Layouts define the site page shell (HTML skeleton, @RenderBody() placeholder, shared header/footer). Pages bind a Layout in page settings or page properties; template syntax: Layout…
- [Menus](https://docs.kooboo.com/cms/development/menus.md): Manage site navigation menu definitions: create menu groups, maintain multi-level menu items (name, link, multilingual), and configure output HTML templates (placeholders for child…
- [Modules](https://docs.kooboo.com/cms/development/modules.md): Modules are installable Kooboo extensions: package views, APIs, scripts, static assets, and module.config in an isolated directory, expose capabilities via site routes, and can be edited…
- [Open API](https://docs.kooboo.com/cms/development/openapis.md): Import external OpenAPI (Swagger) documents into the site, configure auth credentials and response cache, and call remote HTTP APIs in KScript via k.openApi.[name]. Unlike Swagger…
- [Scripts](https://docs.kooboo.com/cms/development/scripts.md): Manage site JavaScript resources: standalone .js files (external), embedded scripts from pages/layouts, and script groups merging multiple external scripts. Syntax and references: Script…
- [SPA Multilingual](https://docs.kooboo.com/cms/development/spa-multilingual.md): Maintain key-value multilingual copy for single-page applications (SPA): edit translations per language in admin; front-end fetches JSON dictionary via /_spa/lang/[languageCode]. For…
- [Styles](https://docs.kooboo.com/cms/development/styles.md): Manage site CSS resources: standalone .css files (external), embedded styles from pages/layouts, inline style rules from the designer, and style groups merging multiple external styles.…
- [URL](https://docs.kooboo.com/cms/development/urls.md): Manage site access paths and route mappings: internal URLs (pages, views, route aliases, etc.), external URLs (paths to external or remote resources), and not found addresses visitors…
- [Views](https://docs.kooboo.com/cms/development/views.md): Views are reusable HTML template fragments in the site, referenced by pages, layouts, etc. Maintain View name and template body in admin; syntax and rendering: View template engine.
- [Create a Site](https://docs.kooboo.com/cms/getting-started/create-site.md): Create a site from My Sites: blank site, import package, or clone an existing site.
- [Login and Site List](https://docs.kooboo.com/cms/getting-started/login-and-site-list.md): Enter Kooboo from the account-level console, organize sites with folders, and open a site's admin workspace.
- [Kooboo Admin (CMS)](https://docs.kooboo.com/cms/index.md): Configure sites, content, and integrations in the Kooboo console — for administrators and implementers
- [Site Admin Menu Overview](https://docs.kooboo.com/cms/navigation.md): Organized by the Kooboo site-admin left sidebar. UI labels follow the language of your logged-in admin.
- [AB Testing](https://docs.kooboo.com/cms/operations/ab-testing.md): Configure A/B experiments for a site: pick an experiment object (page, view, product, etc.) as control A, configure one or more variants B/C… (full object replacement or field…
- [Operations Center](https://docs.kooboo.com/cms/operations/index.md): The Operations Center is where you monitor traffic, analyze behavior, review logs, coordinate sync workflows, and manage advanced operational tools.
- [Page Interaction](https://docs.kooboo.com/cms/operations/page-interaction.md): Track page anchor (k-track) clicks: per-page trigger count, visit count, trigger rate, site-wide anchor ranking, and per-page anchor distribution. In Page Detail, preview the page, view…
- [Resource Guardian](https://docs.kooboo.com/cms/operations/resource-guardian.md): Monitor static resource requests and bandwidth for a site: bandwidth by file type, resource composition and access ranking, live request list, bot traffic, and hotlink / unauthorized…
- [Site Logs](https://docs.kooboo.com/cms/operations/site-logs.md): Site logs track content and resource changes across a site: who changed what, when it happened, and which version was affected. You can review versions, compare differences, restore past…
- [Sync](https://docs.kooboo.com/cms/operations/sync.md): Synchronize content and settings between a local site and other sites on a remote Kooboo server: compare local/remote differences, perform push and pull, manage ignore rules and sync…
- [Visitor Logs](https://docs.kooboo.com/cms/operations/visitor-logs.md): View site visitor and access data: page views, unique visitors, bot share, trend charts, device and region distribution, source and browser rankings, and the latest visit details. Data…
- [Action Hooks](https://docs.kooboo.com/cms/settings/action-hooks.md): Action Hooks fire rules before and after backend resource operations such as create, update, and delete, for auditing, synchronization, notifications, or business validation before a…
- [AI Service](https://docs.kooboo.com/cms/settings/ai-service.md): AI Service configures site-level AI capabilities: vector search, MCP server, AI functions, llms.txt, automatic Markdown output, and global JSON-LD mapping. It appears under both Settings…
- [Basic · Access Control Tab](https://docs.kooboo.com/cms/settings/basic/access.md): Controls who can access which paths on the site: site type (public / member / private), path allow/deny lists, single sign-on, geo restrictions, request rate limits and blocks, CORS, and…
- [Basic · Advanced Tab](https://docs.kooboo.com/cms/settings/basic/advanced.md): Low-level switches for development and operations: default relational database, k.DB.sql target, SQL log and code log, constraint fix on save, Hook master switches, resumable downloads,…
- [Basic · Editor Tab](https://docs.kooboo.com/cms/settings/basic/editor.md): Configures admin and inline editing experience: rich text (TinyMCE) toolbar, inline design defaults, Monaco code suggestion libraries, and operation log screen recording.
- [Basic · General Tab](https://docs.kooboo.com/cms/settings/basic/general.md): This tab configures public site identity, preview Base URL, HTTPS/SPA behavior, multilingual culture, and import / export of full site packages.
- [Basic Settings](https://docs.kooboo.com/cms/settings/basic/index.md): Basic Settings is the entry for site-level configuration: six tabs at the top; click bottom Save (or shortcut) to persist changes to the Site model. Unlike Domains or Integrations, this…
- [Basic · Performance Tab](https://docs.kooboo.com/cms/settings/basic/performance.md): Optimizes static asset delivery: JS/CSS minification, browser caching, image cache policy, automatic WebP conversion, and on private/local servers resource cache (styles, scripts,…
- [Basic · SEO Tab](https://docs.kooboo.com/cms/settings/basic/seo.md): Site-level search engine and PWA settings: Lighthouse optimization, Sitemap generation, PWA Manifest/Service Worker, visitor log toggle, block SEO crawlers, image Alt assist, and…
- [Cookie](https://docs.kooboo.com/cms/settings/cookie.md): Cookie Management configures the front-end Cookie consent banner: enable scope, display style, multilingual copy, Cookie categories, external resource classification, and consent…
- [Domains](https://docs.kooboo.com/cms/settings/domains.md): Domains configures bindings for the current site: map subdomains or ports to this site, with optional redirect, language culture, and SSL. The primary domain in the list usually matches…
- [Settings](https://docs.kooboo.com/cms/settings/index.md): Settings configures site basics, domains, third-party integrations, admin users and permissions, Hooks, Cookie, and more. Shares /system prefix with Operations Center but different left…
- [Integrations · Database](https://docs.kooboo.com/cms/settings/integrations/database.md): The Database group configures external database and cache connections plus built-in SQLite options. After save, scripts use k.DB.mysql, k.DB.sqlServer, k.DB.mongo, k.DB.redis, etc.; if…
- [Integrations](https://docs.kooboo.com/cms/settings/integrations/index.md): Integrations centralizes site CoreSetting: database, payment, SMS, OAuth login, object storage, JWT, etc. The page groups items by Group; each row shows name and value summary…
- [Integrations · OAuth2](https://docs.kooboo.com/cms/settings/integrations/oauth2.md): The OAuth2 group configures third-party social/platform login (AppId, Secret, callbacks, etc.). After save, the front end completes authorization via Kooboo OAuth callback routes; dialog…
- [Integrations · Others](https://docs.kooboo.com/cms/settings/integrations/others.md): The Others group holds site-level extension integrations that do not fit Database / Payment / etc.
- [Integrations · Payment](https://docs.kooboo.com/cms/settings/integrations/payment.md): The Payment group enables and configures payment channels: merchant keys, callbacks, and certificates. After saving, Code and Commerce call properties exposed by completion, such as…
- [Integrations · SMS](https://docs.kooboo.com/cms/settings/integrations/sms.md): The SMS group configures SMS provider parameters for verification codes, notifications, etc. (exact calls depend on scripts/modules).
- [Integrations · Storage](https://docs.kooboo.com/cms/settings/integrations/storage.md): The Storage group stores media library, content files, and other binaries on third-party object storage (or enables remote storage). Common fields: Endpoint, AccessKeyId,…
- [Request Hooks](https://docs.kooboo.com/cms/settings/request-hooks.md): Request Hooks run KScript rules at fixed points in the visitor HTTP request lifecycle (before/after route, page, view resolution) for URL rewrite, conditional redirects, dynamic…
- [Roles](https://docs.kooboo.com/cms/settings/roles.md): Roles defines which admin features and actions (view / edit / delete, etc.) each site role may use. After assigning roles on Site Users, menu visibility, buttons, and API calls follow…
- [Site Users](https://docs.kooboo.com/cms/settings/site-users.md): Site Users adds members from the current Organization to this site and assigns site roles. Added users can log into Kooboo admin and open this site; menus and actions follow feature…
- [Dashboard](https://docs.kooboo.com/cms/site/dashboard.md): The dashboard is the default landing page inside a site admin. It gives you a quick overview of site resources, traffic, and recent work, and links you into the most common CMS areas.
- [Media Library](https://docs.kooboo.com/cms/site/media.md): Manage site images and other media files for use in pages, content, and templates. In scripts, read and write media paths via k.media.
- [Edit Code](https://docs.kooboo.com/cms/site/pages-edit-code.md): Use the full-screen Monaco editor to edit the Page body (HTML source). It supports KScript hints, formatting, and code references.
- [Inline Edit](https://docs.kooboo.com/cms/site/pages-inline-edit.md): Click elements directly on the front-end rendered result to change them. It is suitable for copy, images, links, and local styles without writing HTML by hand. Saving writes back to the…
- [Page Settings](https://docs.kooboo.com/cms/site/pages-setting.md): Page settings manage route, meta, page-level assets, and cache beside a live preview. This page does not edit the HTML body itself.
- [Pages](https://docs.kooboo.com/cms/site/pages.md): Manage all accessible page resources in the site: list maintenance, routing, code editing, and inline editing. For page syntax, see Template Engine -> Page. For scripts, see k.site.pages.
## Templates
- [Template Binding Syntax](https://docs.kooboo.com/templateEngine/binding/index.md): Server-side k- directives for binding data and attributes inside Layout, Page, and View templates.
- [Style](https://docs.kooboo.com/templateEngine/css/index.md): Style in Kooboo: Routed .css resources for global themes, patches, and Layout head references.
- [Template Engine](https://docs.kooboo.com/templateEngine/index.md): How Kooboo organizes and renders pages, layouts, views, and routed static assets.
- [Script](https://docs.kooboo.com/templateEngine/js/index.md): Routed .js resources for shared utilities, ES Modules, and cooperation with script tags inside Pages.
- [JSON5 Condition Expressions](https://docs.kooboo.com/templateEngine/k-data/condition.md): Instead of SQL-like strings, use JSON5 objects to describe filtering and branching conditions.
- [k-data Built-in Functions](https://docs.kooboo.com/templateEngine/k-data/functions.md): k-data Built-in Functions in Kooboo: Functions available through let use="functionName" params="...".
- [k-data](https://docs.kooboo.com/templateEngine/k-data/index.md): Declare data flow with HTML tags inside a template. This is the recommended approach and replaces deprecated k-query.
- [Query Sources](https://docs.kooboo.com/templateEngine/k-data/query.md): For common attributes, see Tag Syntax. The sections below are organized by data source. In all cases, action is one of item, list, or paged.
- [k-data Tag Syntax](https://docs.kooboo.com/templateEngine/k-data/tags.md): k-data Tag Syntax in Kooboo: Attributes and composition patterns for the tags used inside k-data.
- [Layout](https://docs.kooboo.com/templateEngine/layout/index.md): Site-level HTML skeleton: shared head, global assets, and k-placeholder regions.
- [Page](https://docs.kooboo.com/templateEngine/page/index.md): An HTML page with a route: either a full standalone document or a Layout-based page with injected placeholders.
- [View](https://docs.kooboo.com/templateEngine/view/index.md): Reusable HTML fragments embedded into a Page, Layout, or another View with view id="..."