Static Hosting SDK
Deploy with three lines of code. No account required. Node.js and Browser ready.
deploy.ts
import Ship from '@shipstatic/ship'; // Initialize with your API key const ship = new Ship({ apiKey: process.env.KEY }); // Deploy directory atomically const { url, id } = await ship.deploy('./dist'); await ship.domains.set('staging', { deployment: id }); console.log(`Live at ${url}`);
TypeScript Native
Type-safe automation.
new Ship() and deploy. No credentials needed. Full TypeScript support with completion and compile-time safety.
- Deploy without an account
- Isomorphic (Browser & Node)
- Fully typed response objects
- Progress tracking & cancellation
$
npm i @shipstatic/ship
Configuration as Code
One file. Full control.
Drop a ship.json in your project root to configure rewrites, redirects, and custom headers. No dashboard clicks, no deploy flags, just code.
SPA Rewrites
Route all paths to index.html for client-side routing.
Redirects
Permanent or temporary redirects with status codes.
Custom Headers
Set CORS, CSP, cache-control, and any other HTTP header.
ship.json
{
"rewrites": [
{
"source": "/**",
"destination": "/index.html"
}
]
}
Ready to go live?
No extra charges, no surprise bills, nothing to maintain.