Docs
Reference for developers building on Basehim: themes, apps, the REST API and AI agents.
35 articles
-
Basehim Dev Tools: build and manage your site with an AI agent
Install Basehim Dev Tools from the Marketplace and connect an AI agent such as Claude: it can manage content, build and change themes and apps, read logs and fix problems on your site. Setup, modes, safety checks, rollback and the full tool list.
-
Admin bar for apps and themes
Add menus, live panels, badges, notices and quick-search results to Basehim's admin bar from an app or theme: the adminBar() API, conditions, hooks and examples.
-
Sending email from apps
Send email from a Basehim app with $this->api()->mail(): send() and sendTemplate(), the mail.send permission, the mail.before_send, mail.sent and mail.failed hooks.
-
Installing for development
Run Basehim on your own computer, the full server requirements, the files the installer writes, table prefixes, Apache and nginx rules, and a real cron job for scheduled tasks.
-
Content types, taxonomies and custom fields
Add your own kinds of content to Basehim from an app: content types with public pages, archives, sitemap and search; taxonomies with term pages; custom fields checked against a schema and shown in the editor; theme templates and helpers (bh_field, bh_query); the app API, REST API and MCP; and the editor's permalink line and preview.
-
Search
BH Search, Basehim's one search framework for core and apps: how searching works everywhere (every word in any order, phrases, exclusions), the shared index and its engines, Settings → Search, making an app's records searchable with api()->search(), search results in themes, custom engines and measured performance at a million items.
-
Build with AI
How to build Basehim apps and themes with an AI assistant: three ways to work (a chat assistant, a coding agent on your computer, or an assistant connected to your site through MCP and Basehim Dev Tools), a safe step-by-step workflow, and what to check before anything reaches a live site.
-
Prompts for building with AI
Ready-made prompts for building Basehim apps and themes with an AI assistant: a new app, admin screens, AJAX, public pages, widgets, scheduled imports, uploads, MCP tools, themes, reviews, fixes, migrations and release notes. Fill in the blanks and paste.
-
AI context for Basehim development
One compact page of rules and real API signatures for AI assistants building Basehim apps and themes. Paste it into your AI before you ask for code, or point the AI at this page, so it follows Basehim's conventions instead of guessing.
-
Data tables
Basehim's shared admin list tables: how an app adds a column to Posts, Pages, Comments or Apps without replacing the screen, the two-phase prepare/render contract that keeps tables fast, declared row and bulk actions, user preferences, security and reusable cell components.