Public API and support reference
0.1.0-alpha.6. All FastAng APIs are experimental: being exported makes an API public, not stable across alpha releases. Pin the core and generator to matching versions when reproducing a project.
Public package entry points
@fastang/core | defineApiRoute, config, server factories, Node handler, listen, rendering types | |
@fastang/core/api | defineApiRoute, ApiRouteOptions | |
@fastang/core/config | defineConfig, validateConfig, validateVercelOptions and config types | |
@fastang/core/server | createServer, createApiServer, staticFile, renderer/server option types | |
@fastang/core/http-server | createHttpServer, HttpServerOptions | |
@fastang/core/node-handler | createNodeHandler | |
@fastang/core/listen | listen, DEFAULT_PORT | |
@fastang/core/angular | createRenderer | |
@fastang/core/render-context | RenderContext, ApiDispatchOptions, ApiDispatchResult | |
@fastang/core/contracts | defineApiContract, apiUrl and inferred contract types | |
@fastang/core/contract-route | defineContractRoute | |
@fastang/core/http-client | createApiClient, injectApiClient, ApiRequestOptions | |
@fastang/core/redirect | normalizeRedirectLocation | |
@fastang/core/vite | defineFastangConfig | |
@fastang/core/routes | ||
@fastang/core/vite-plugin | fastang, isServerModule | |
@fastang/core/adapters/vercel-plan | ||
@fastang/core/adapters/vercel | buildVercelOutput |
dist/, src/ or internal command modules. The tooling entry points expose implementation-oriented APIs and are especially likely to change. A module being present in a tarball does not make it an independently supported import path.
/http-client and /contracts as appropriate. /angular configures server rendering, not browser bootstrap. Use import type for server/rendering types consumed by Angular so those imports are erased. The Vite boundary check rejects runtime server imports in browser bundles, including through another module.
Runtime and dependency matrix
^22.22.3 / ^24.15.0 / >=26.0.0 | |
@angular/common | 22.2.3 |
@angular/compiler | 22.2.3 |
@angular/core | 22.2.3 |
@angular/platform-browser | 22.2.3 |
@angular/platform-server | 22.2.3 |
@angular/router | 22.2.3 |
fastify | ^5.12.7 |
rxjs | ^7.8.2 |
tslib | ^2.8.1 |
vite | 8.3.4 |
typescript | ~6.0.2 |
@angular/compiler-cli | 22.2.3 |
@angular/build | 22.2.3 |
@sinclair/typebox | ^0.34.41 |
/. These are the package engine and peer ranges, not a claim that every future matching version has been tested. All Angular peers are pinned together. TypeBox is an optional peer: install it when using shared contracts. Other peers are required by the application/tooling setup. Runtime dependencies owned by the core are installed with it; the table is not a list of every transitive package.
Deployment and rendering scope
/ and runtime namespaces remain reserved. Development renders those pages on demand. See rendering for data and cache behavior and deployment for output layout and Vercel configuration.
CLI contract
npx fastang --help
npx fastang generate
npx fastang routes --json
npx fastang dev
npm run build
npm run build:vercelgenerate writes discovered Angular/API registration modules. routes reads the file map without executing application modules or writing files; --json emits a schemaVersion: 1 document. dev validates config, starts Vite/Fastify and restarts the backend when watched server/shared/config files change. The default port is 3278; PORT and HOST override it.
fastang build or fastang build --vercel. The raw CLI build command does not replace those checks. Build configuration validation happens before replacing dist/. fastang.config.ts and the application bindings supplied by the starter are required; this is not a drop-in CLI for arbitrary Angular workspaces.
Ownership and compatibility boundaries
CLI route checks
fastang check [--project <tsconfig>] [--json] [--strict] checks route/contract correspondence without application execution. See typed APIs.