PieHost Documentation

PieHost is a full-stack cloud platform offering nine managed infrastructure products. Everything runs on robust & battle-tested infrastructure with hourly billing, auto-scaling, and a unified dashboard.

Products at a Glance

Product Category One-liner
PieSocket Realtime API & Server WebSocket powered Pub/Sub - managed & self-hosted with <5ms delivery
PieApp App Hosting Git push-to-deploy web application hosting
PieDB MySQL Database Managed, auto-scaling MySQL
PieMail Email Service SMTP + REST API + Campaigns + Cadences
PieBucket Object Storage S3-compatible file and asset storage
PieCache Redis Cache Managed Redis with microsecond latency
PieMongo MongoDB Managed NoSQL document database
PieGres PostgreSQL Managed relational database
PieBox Cloud Servers On-demand VMs and dedicated servers

PieSocket

Managed realtime WebSocket infrastructure.

PieSocket handles the heavy lifting of running WebSocket servers so you can focus on building features. Publish a message from your server; every subscribed client receives it in under 5ms — globally.

Highlights

  • <5ms delivery across 7+ global regions (US East, US West, Europe, Asia Pacific ×2, South America, Middle East)
  • 99.999% uptime SLA backed by auto-scaling infrastructure
  • JWT channel authentication — lock channels to specific users server-side
  • Webhook support with HMAC signature verification for server-side event handling
  • TLS-encrypted connections on every channel

Quick Start

  1. Create a project in the PieSocket dashboard and copy your API Key and Secret.
  2. Connect a client:
// Browser — vanilla JS
const socket = new WebSocket(
  `wss://free.nyc1.piesocket.com/v3/CHANNEL_ID?api_key=YOUR_API_KEY&notify_self=1`
);
socket.onmessage = (event) => console.log(JSON.parse(event.data));
  1. Publish from your server:
curl -X POST https://www.piesocket.com/api/publish \
  -H "Content-Type: application/json" \
  -d '{"key":"YOUR_API_KEY","secret":"YOUR_SECRET","channel_id":"CHANNEL_ID","message":"Hello!"}'

Common Use Cases

  • Live chat and messaging
  • Multiplayer and real-time collaboration (cursors, presence)
  • Live dashboards and metric streams
  • IoT device sync and alerts

SDKs: JavaScript, Android, iOS (Swift), Flutter, React Native, Python, Node.js, raw WebSocket

PieApp

Git push-to-deploy web application hosting.

Connect your GitHub, GitLab, or Bitbucket repo and PieApp builds and deploys every push automatically. No server configuration required.

Highlights

  • Git push auto-deploy — push to your branch, deployment starts immediately
  • Live build logs streamed to the dashboard in real time
  • Cronjobs — schedule recurring tasks without a separate cron server
  • Daemons — persistent background processes that restart automatically on crash
  • Terminal/SSH access to your app container
  • Environment variables managed securely from the dashboard
  • Free SSL certificates with automatic renewal
  • Free .pie.host subdomain + custom domain support
  • PHP and Node.js version switcher without redeployment
  • Branch preview URLs — every PR gets its own live preview URL
  • One-click rollback to any previous successful deployment
  • Daily backups with point-in-time restore
  • Auto-scaling on demand

Quick Start

  1. Connect your Git provider in the PieApp dashboard.
  2. Select your repository and branch.
  3. Set your build command and environment variables.
  4. Click Deploy — PieApp clones, builds, and goes live.

Laravel example settings:

Build command:   composer install --no-dev && php artisan migrate --force
Start command:   php artisan serve --host=0.0.0.0 --port=8080
Node version:    20
PHP version:     8.3

Supported Frameworks

Laravel, WordPress, plain PHP, Node.js (Express, Fastify), React, Vue, Next.js, static HTML sites

Common Use Cases

  • Full-stack web application hosting
  • WordPress sites with managed infra
  • API servers and microservices
  • Static sites and SPAs with preview URLs per PR

PieDB

Managed MySQL — provisioned in under a minute, scaled automatically.

PieDB removes all database ops work: provisioning, backups, security patches, and connection pooling are handled for you.

Highlights

  • Under-1-minute provisioning — get a connection string immediately
  • Daily automated backups with point-in-time restore
  • SSL/TLS enforced on every connection
  • Web-based query editor built into the dashboard
  • Connection pooling to absorb traffic spikes without application changes
  • Multiple users with fine-grained per-database privileges
  • Storage alerts before you run out

Quick Start

After creating a PieDB instance, copy your connection details from the dashboard:

mysql -h YOUR_HOST -P 3306 -u YOUR_USER -p YOUR_DATABASE

Laravel .env:

DB_CONNECTION=mysql
DB_HOST=your-piedb-host.piehost.com
DB_PORT=3306
DB_DATABASE=your_database
DB_USERNAME=your_user
DB_PASSWORD=your_password
DB_SSL=true

Compatible Clients

Laravel, WordPress, Node.js (mysql2, Knex), Prisma, Sequelize, TablePlus, DBeaver, MySQL Workbench

PieMail

Transactional email, marketing campaigns, and automated cadences — in one service.

PieMail gives you a verified SMTP server, a REST API, a contact database, and a campaign/cadence builder, all under your own custom domain.

Highlights

  • Custom domain sending — verify with CNAME, send as you@yourdomain.com
  • SMTP and REST API — use any language or framework
  • Campaigns — one-off bulk sends to segmented contact groups
  • Cadences — multi-step drip sequences triggered by events or time delays
  • SPF + DKIM signing out of the box
  • Analytics — open rates, click-throughs, bounces, per-contact history
  • Automatic unsubscribe handling and suppression lists

Quick Start

SMTP:

Host:       mail.pie.host
Port:       587 (STARTTLS) / 465 (SSL)
Username:   your@piemailaddress.com
Password:   your-piemail-password

REST API:

curl -X POST https://api.piehost.com/mail/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "you@yourdomain.com",
    "to": "recipient@example.com",
    "subject": "Hello from PieMail",
    "html": "<p>This is a test email.</p>"
  }'

Common Use Cases

  • Transactional emails (password resets, order confirmations)
  • Marketing newsletters and promotional blasts
  • Onboarding drip sequences
  • Business email on a custom domain

PieBucket

S3-compatible object storage — drop in where you already use AWS S3.

PieBucket is fully compatible with the AWS S3 API. Any tool, SDK, or library that works with S3 works with PieBucket without code changes — at a fraction of the cost of AWS S3.

Highlights

  • More affordable than AWS S3 — significantly lower storage and bandwidth costs, with no surprise egress fees
  • AWS S3-compatible API — swap endpoint, key, and secret; nothing else changes
  • Bucket policies — IAM-style JSON permissions for fine-grained access control
  • CORS configuration per bucket for browser-based uploads
  • Auto-scaling — toggle on and storage grows with your data
  • Usage analytics — storage size, object count, and bandwidth in the dashboard
  • Per-bucket credentials — isolate access key and secret per bucket

Quick Start

AWS CLI (pointed at PieBucket):

aws s3 cp myfile.txt s3://my-bucket/ \
  --endpoint-url https://storage.piehost.com \
  --region us-east-1

Laravel config/filesystems.php:

's3' => [
    'driver' => 's3',
    'key'    => env('PIEBUCKET_KEY'),
    'secret' => env('PIEBUCKET_SECRET'),
    'region' => 'us-east-1',
    'bucket' => env('PIEBUCKET_BUCKET'),
    'url'    => 'https://storage.piehost.com',
    'endpoint' => 'https://storage.piehost.com',
],

Common Use Cases

  • User media and file uploads
  • Static site hosting and asset CDN
  • Application backups and archives
  • Large binary distribution

PieCache

Managed Redis — microsecond latency, no server to run.

PieCache provisions a Redis instance in seconds. Use the full Redis data structure API with TLS-encrypted connections and built-in monitoring.

Highlights

  • Microsecond read/write latency — in-memory by design
  • Full Redis data structures — strings, hashes, lists, sets, sorted sets, streams, pub/sub
  • TLS encryption enforced (rediss:// with SNI)
  • Live metrics — active connections, memory used, key count; refreshed every 10 seconds
  • Password rotation from the dashboard without downtime
  • Resize with zero data loss
  • Millions of operations per second at larger instance sizes

Quick Start

Connection string from the dashboard:

rediss://:YOUR_PASSWORD@your-cache.piehost.com:6380

Node.js (ioredis):

const Redis = require('ioredis');
const client = new Redis('rediss://:YOUR_PASSWORD@your-cache.piehost.com:6380');
await client.set('key', 'value', 'EX', 3600);
const val = await client.get('key');

Laravel .env:

REDIS_HOST=your-cache.piehost.com
REDIS_PASSWORD=your_password
REDIS_PORT=6380
REDIS_SCHEME=tls

Common Use Cases

  • Session storage
  • API response and query result caching
  • Background job queues (with Laravel Horizon, BullMQ, etc.)
  • Rate limiting and leaderboard sorted sets

PieMongo

Managed MongoDB — flexible schema, auto-scaling, zero ops.

Provision a MongoDB instance in seconds. PieMongo handles upgrades, patching, and monitoring so you can ship features instead of managing databases.

Highlights

  • Seconds-to-provision with auto-generated credentials
  • TLS-encrypted connections on every instance
  • Auto-scaling — compute, storage, and bandwidth scale on demand
  • Live metrics — active connections, database count, collection count, storage; refreshed every 10 seconds
  • Resize with zero data loss
  • Full MongoDB feature set — aggregation pipelines, change streams, indexes, operators

Quick Start

Connection string from the dashboard:

mongodb://YOUR_USER:YOUR_PASSWORD@your-mongo.piehost.com:27017/?tls=true&tlsInsecure=true

Node.js (mongoose):

const mongoose = require('mongoose');
await mongoose.connect(process.env.MONGO_URI);

Laravel (jenssegers/mongodb):

DB_CONNECTION=mongodb
DB_HOST=your-mongo.piehost.com
DB_PORT=27017
DB_DATABASE=your_database
DB_USERNAME=your_user
DB_PASSWORD=your_password

Common Use Cases

  • SaaS applications with evolving or flexible schemas
  • Content management and product catalogs
  • Real-time data with MongoDB change streams
  • Logging and event data at scale

PieGres

Managed PostgreSQL — ACID-compliant, auto-scaling, production-ready.

PieGres provisions a PostgreSQL cluster in seconds with SSL enforced, live metrics, and hands-off operations.

Highlights

  • SSL enforced (sslmode=require) on every connection
  • Auto-scaling — compute, storage, and bandwidth on demand
  • Live metrics — connections, databases, tables, storage; refreshed every 10 seconds
  • Resize with zero data loss
  • Full PostgreSQL — schemas, transactions, joins, views, indexes, extensions (PostGIS, pgvector, etc.)
  • Zero ops — patching, upgrades, and monitoring handled for you

Quick Start

Connection string from the dashboard:

postgresql://YOUR_USER:YOUR_PASSWORD@your-pgres.piehost.com:5432/YOUR_DATABASE?sslmode=require

Prisma schema.prisma:

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

Laravel .env:

DB_CONNECTION=pgsql
DB_HOST=your-pgres.piehost.com
DB_PORT=5432
DB_DATABASE=your_database
DB_USERNAME=your_user
DB_PASSWORD=your_password
DB_SSLMODE=require

Common Use Cases

  • Multi-tenant SaaS (users, tenants, subscriptions, billing)
  • Analytics and reporting workloads
  • ACID-compliant transactional systems
  • REST and GraphQL API backends

PieBox

On-demand cloud servers — standard VMs, memory/CPU optimized, and GPU instances.

Launch a server in under 5 minutes with your choice of OS, region, and hardware class. No long-term commitments; billed by the hour.

Highlights

  • 15+ global regions with low-latency routing

  • 20+ OS images — Ubuntu, Debian, CentOS, Fedora, and more

  • Four server classes:

    • Standard — general purpose web servers and development
    • Memory Optimized — Redis, Memcached, large in-memory datasets
    • CPU Optimized — video encoding, batch jobs, CI/CD runners, scientific compute
    • Dedicated — guaranteed bare-metal resources, no noisy neighbors
  • GPU servers (RTX 6000) for AI/ML training and inference

  • Resize without downtime — change CPU, RAM, or storage on a live server

  • Automated backups with one-click restore

  • 99.999% uptime SLA

Quick Start

  1. Choose a region, OS image, and server class in the PieBox dashboard.
  2. Add your SSH public key.
  3. Click Launch — server is ready in under 5 minutes.
  4. Connect:
ssh root@YOUR_SERVER_IP

Common Platform Features

All nine products share these cross-cutting capabilities:

Feature Detail
Hourly billing Pay for what you use, cancel anytime
Multi-region Deploy close to your users
TLS/SSL everywhere Encryption enforced across all products
Auto-scaling Toggle on to grow and shrink with demand
Unified dashboard All products managed from one place
REST API Every product accessible programmatically
Managed operations Patching, backups, and monitoring handled for you