> NIGHTSHIFT://INFRASTRUCTURE / FIELD NOTES

OWN THE STACK.
LOSE THE DRAG.

Our preferred cloud stack is built around a simple question: How much useful work can we get done without giving one vendor control over our code, our data, and our future?

Local-first when possible. Open-source where practical. Private by design. Cloud resources only when they earn their place.

EXPLORE THE STACK ↓HOW WE MEASURE EFFICIENCY ↗
01 / THE PRINCIPLE

Not anti-cloud. Anti-dependency.

Cloud platforms can be genuinely useful. We use them where they solve a real problem. But a convenient dashboard is not ownership, and a region labeled “private” does not automatically make a system sovereign. NightShift favors systems that can be inspected, backed up, exported, and moved.

Our rule: Keep the data portable, keep critical logic independent of any one platform, and keep operational secrets out of source code and AI prompts.
02 / PREFERRED ARCHITECTURE

The right tool. The right job.

PRIVATE UIMobile dashboard / authenticated controls
APP + APIContainerized services / access controls
DATAPostgreSQL / exports / backups
AI WORKERSLocal inference first / rented GPU when necessary
OPERATIONSMonitoring / encrypted remote access / recovery
SOURCE CONTROL

Forgejo or Gitea

Git hosting that can be self-managed, with repository mirroring and backups. GitHub stays a practical bridge during migration, not a permanent requirement.

RUNTIME

Linux + Containers

Run applications on a modest Linux host using containers, reproducible configurations and minimal always-on services. Host static pages separately when possible.

APPLICATION DATA

PostgreSQL

Open database foundations. Supabase is useful today for managed Postgres, Auth and policies; a tested export and migration route remains part of the design.

PRIVATE CONNECTIVITY

WireGuard

Encrypted tunnels for administrator access and machine-to-machine traffic. Public websites stay public; private consoles should not be casually exposed.

SECRETS + BACKUPS

Encrypted by Default

Runtime secrets in a dedicated secrets store or protected host environment; encrypted off-site backups with routine restoration tests and least-privilege credentials.

INTELLIGENCE

Local AI + Optional GPU

Run smaller open-weight models on owned hardware. Rent compute for demanding workloads rather than paying for a permanently idle GPU.

Current transition tools include Render for website hosting and AWS for selected orchestration experiments. They are not presented as entirely self-hosted infrastructure. The long-term preferred stack is a direction, not a claim that every component is already deployed.

03 / EFFICIENCY IS A SYSTEM PROPERTY

Less overhead. More useful output.

Efficiency isn't only a lower monthly bill. It is the balance of speed, reliability, power consumption, operational effort, security and exit cost. The cheapest hosting plan can become the most expensive option if it constantly needs manual rescue.

$/jobCOST PER COMPLETED WORKLOAD
p95RESPONSE LATENCY
W/jobENERGY PER USEFUL TASK
RTORECOVERY TIME OBJECTIVE
DecisionEfficiency benefitTradeoff
Static hosting for editorial pagesNo always-on app server for mostly static contentDynamic features require a separate backend
Local inference for repeat workReduces external token charges; data can stay on-deviceHardware, electricity, maintenance and model quality constraints
On-demand cloud GPUPay for occasional high-compute jobsRental cost, transfer time and provider availability
Containers and portable databasesReproducible deployment and easier migrationSecurity patching and backup testing still take effort
Observability and job queuesRetry failed work, detect problems and avoid repeated tasksExtra components and operational complexity
Measurement note: These are engineering objectives and evaluation metrics, not measured NightShift performance results. We won't invent speed improvements, privacy guarantees or cost savings without actual benchmarks.
04 / THE PRACTICAL PATH

Build for today. Keep the exit door open.

NOW

Stabilize

Keep the NightShift static site on Render, verify the deploy branch, secure credentials, and document every active integration.

NEXT

Standardize

Introduce versioned container configurations, clean data exports, monitored job queues, backup tests and private administrator access.

FUTURE

Own More

Evaluate Forgejo, self-managed databases, independent VPS options and local/on-demand AI workers based on measured cost and reliability.

We prefer independence over fashionable infrastructure. But independence still means responsibility: patching, incident response, uptime and recovery become our job.

MORE TECH INTELLIGENCE →PRIVATE HARDWARE NOTES →