Home/Docs

Documentation

How AppWand works, what it writes, and how to take your app from a description to a live API.

Projects

A project is a folder in Documents\AppWand\Projects\<name>. It holds three things:

  • api/: a Node.js API built on Express, with Sequelize models for your tables.
  • app/: a Flutter app using Riverpod, go_router and dio.
  • appwand.json: the plan for each page (its route, purpose, tables and who can open it) and your project settings.

The code on disk is the source of truth. AppWand never keeps a hidden copy of your pages. If you edit a file in another editor, AppWand sees the change.

AppWand's Home screen: a box to describe the app, with Database, Sample data and Design choices, and recent projects below
Home: describe a new app or connect your database. Your recent projects are below.

The bar across the top of a project is the way through it: Data, Plan & Design, Build, Check and Deploy. Each step's dot shows its state, and you can move between them at any time.

The Explorer on the left lists the app's settings screens, its sign-in screens under Authentication, and its pages. A green dot means a page's code is written; an amber one means the check found something in it.

Data

Every app starts with its tables. There are two ways in.

Describe a new app

From Home, describe what you want to build and connect an empty MySQL or PostgreSQL database. AppWand proposes the tables as SQL. Read it, ask for changes in the prompt bar, or edit it on the SQL tab, then apply it. The diagram updates from your real database.

The Data view: a prompt bar above a diagram of the tables, their columns and the links between them
Data: the diagram of your tables, with the prompt bar for changes above it.

Connect your database

Choose Connect my database on Home and pick a database you already have. AppWand reads its tables and opens on Data, where Build the app starts the rest. If it can't tell which table people sign in with, it asks you, or offers to add an accounts table.

Sample data

Sample data on the Data view fills the tables you tick with realistic rows. Related tables are filled in the right order, ids never clash with rows you already have, and sample accounts sign in with the password password.

Changing the tables later

When you change tables that pages already use, Data offers Update the pages, which plans the code changes for you on the Plan view.

Plan & Design

Once the tables are in place, AppWand plans the app: its pages, their routes, the menu order, and the roles that can open each page. Each page also gets a pattern: list, detail, form, dashboard, master–detail or custom.

The Plan and Design view: a prompt for app-wide changes above a card per page, each with its route, purpose, pattern and roles
Plan & Design: a card per page, with its route, pattern, list features and the roles that can open it.

Reorder pages to change the menu, add a page, or re-plan from scratch. A page card's menu also changes that page's list features and its transition.

The prompt under the plan's header takes requests about the whole app, like "let people create an account" or "add a users page for admins". AppWand answers with steps (a database change, new pages, edits to existing pages), and you untick any you don't want before it runs them.

The App section at the top of the Explorer opens four screens.

App Design

Pick the brand colour, then go through the tabs: UI Style (sixteen looks, from Material You to Fluent, Cupertino, Glass and Neon), Font, Login Design, Icons, Notifications, Dashboard (the welcome message your home page opens with, and how its cards come on screen), Page Transition, Splash and Theme mode. Almost all of these only rewrite the theme, so your pages don't change and a hot reload shows the result.

App Design: a row of brand colours, tabs from Style to Theme mode, and preview tiles for each style
App Design: the brand colour, then a tab for each part of the look.

Login Design is the exception: the sign-in screens are your app's own code, so screens that are already written are rebuilt in the new layout as a change you review first.

The Login Design tab with eight sign-in layouts: centred card, split screen, full-bleed hero, minimal, bottom sheet, tabbed, step by step and illustrated
Eight layouts for the sign-in and registration screens.

App layout

How people move between pages: a side menu, bottom tabs, a top bar, or a reveal menu that stays hidden until its button is pressed. Desktop width lets pages fill the window or stay in a centred column on large screens.

App layout: four navigation choices and two desktop width choices
App layout: the navigation and the desktop width.

App info

The app's name, logo and API port. It also shows the package ID (fixed once the project is created, because app stores tie a published app to it), the API's address, the database and the project folder.

App info: app name, package ID, logo, API port, API address, database and project folder
App info.

Plugins

Plugins are features AppWand adds from tested code, not written by the AI: S3 storage, sign in with Google, Apple or GitHub, biometric unlock, offline mode, camera and photos, push notifications, analytics with crash reporting, and an audit log of who changed what. Press Add, fill in the plugin's settings, and it is wired into the API and the app. Their settings travel with Deploy.

The Plugins screen: a grid of plugin cards, each with a category, a description and an Add button
Plugins: add a feature without touching your pages.

Build and edit

AppWand writes every page at once, a few at a time in parallel. Select a page in the Explorer to see its API code and UI code. Both are full code editors with Dart and JavaScript language servers, so you get completion, hover and live errors.

A page open in the Build stage: UI code, API code and Plan tabs over a code editor, with the assistant panel on the right
A page in the Build stage: its code in the middle, the assistant on the right.

Asking for changes

Type what you want in the assistant panel. The answer comes back as a change to review: a diff per file, each with a tick box. Accept it, untick files, or ask for a revision. Nothing is written until you accept.

Suggestions

Suggest features reads the page and offers ideas, both new features and ways to modernise what is there. Build it turns an idea into a reviewed change. More ideas asks for ones you haven't seen.

A page only ever touches its own two places: api/src/routes/<page>.js and app/lib/features/<page>/. Shared wiring such as the router, the menu, sign-in security and the theme belongs to AppWand's base app, so an AI change to one page can't break another.

Check

After every accepted change or save, AppWand checks the app: flutter analyze for the Flutter side, and a load of every API route for the Node.js side. The Check stage turns amber when something needs attention, and editors mark the lines.

The Check view groups problems by the page that owns them. A group with errors has Fix with AI, which comes back as a change to review like any other. Click a row to jump to the line.

The Check view: a Flutter app summary and an API summary, then one page's warning with the file and line
Check: a summary for the app and the API, then the problems under the page that owns them.

Run

Run starts the API and the app in the built-in terminal. Pick your desktop, Chrome or an Android device. Hot reload brings your changes into the running app without restarting it.

Deploy

The Deploy view has a checklist on the left and three cards: Push to GitHub, Deploy the API and Build the app.

The Deploy view: a readiness checklist, and cards to push to GitHub, deploy the API and build the app
Deploy: the checklist, and the cards for GitHub, the API and release builds.

Deploy the API

The card puts your API in a sandbox at https://<your-app>.appwand.io, so you can test it beyond your own machine: run the app on a phone against it, or share the address with testers. Each API runs in its own container with its own network and database, behind HTTPS. How many sandbox APIs you can have at once depends on your plan.

  • It runs a check first, and won't deploy if API routes fail to load.
  • The first deploy copies your local database, with or without its rows, and your uploaded files.
  • Deploy again keeps the live data. If you added tables, columns or foreign keys locally, they are added to the live database first. Tables or columns that only exist live are kept, never dropped.
  • A new version starts beside the old one and must pass a health check before traffic moves, so updates have no downtime.
  • Run on the live API starts your app on your desktop, in Chrome or on Android against the deployed API.
  • Take offline deletes the deployed API, its database and its files.

Changed column types and new indexes on existing tables are not detected by Deploy again. For those, use Replace the live database in the card's More menu, which overwrites the live data with your local copy.

The sandbox is sized for testing and demos, not production traffic, and it is deleted after 30 days, with its database and uploaded files. Keep your own copy of anything you need. To go to production, host the api/ folder yourself: it is a standard Express app that runs on any Node.js server or cloud.

Push to GitHub

Commits api/, app/ and the database schema to a repository of your own, private by default. AppWand asks GitHub for repository access the first time. Secrets stay behind: .env goes up only as .env.example with its secrets blanked.

Build the app

Makes release builds for Windows, Android and the web. Under The API the builds call, choose My own server and enter your production API's address (such as https://api.example.com) for the app you publish, or The AppWand sandbox for a test build, which stops working when the sandbox is deleted. The files land in the project's releases folder.

Sign-in and roles

Every AppWand app has sign-in. Passwords are hashed with bcrypt, sessions use signed tokens, and the security steps live in the base app where page code can't change them.

The sign-in screens themselves are your code, kept in the Authentication section above Pages in the Explorer. Edit them like any page. Reset to the default brings back the original screens.

If your accounts table has a role column, each page can be limited to some roles. Access is enforced twice: the API refuses the request, and the app hides the menu entry and redirects.

The generated code

WhereWhat
api/src/routes/<page>.jsA page's API. Mounted at /api/<page> behind sign-in and its roles.
api/src/models/A Sequelize model per table, with associations from your foreign keys. Regenerated when the tables change.
api/src/middleware/validate.jsZod validation for params, queries and bodies. Errors come back as plain sentences per field.
api/src/uploads/File uploads, served at /uploads/.
api/.envDatabase connection, port, rate limits and the token secret.
app/lib/features/<page>/A page's Flutter screens. The entry is <page>_page.dart.
app/lib/core/The theme, the API client, sign-in state, shared widgets and helpers.
app/lib/app/router.g.dartRoutes and menu, generated from the plan.

Run the API yourself with npm start in api/, and the app with flutter run in app/. To point a build at your deployed API:

flutter run --dart-define=API_URL=https://your-app.appwand.io/api