glanzlicht / GastroOS
Verified secure showcase
500 Files 1 MB Public size 31 Redacted TypeScript · SQL · JSON · Markdown · DOCKERIGNORE · EXAMPLE

Project overview

GastroOS is a verified code showcase with 500 visible project entries across 3 top-level modules. The primary detected language is TypeScript; protected files remain visible in the structure while their contents stay private.

README

GastravaOS

GastravaOS is a modular Hospitality Operational Intelligence Platform.

The technical repository name remains GastroOS for compatibility. The product is presented publicly as GastravaOS.

Product preview

GastravaOS operations dashboard

GastravaOS is designed for hospitality operations ranging from small venues to larger multi-location organizations. The platform combines operational workflows, resilient data handling and role-specific user experiences without exposing internal complexity to operators.

What this repository demonstrates

This repository is presented as a technical portfolio showcase, not as a complete product blueprint.

It demonstrates work across:

  • backend engineering with Node.js, TypeScript, NestJS and REST/OpenAPI;
  • PostgreSQL data modeling, explicit SQL migrations and transactional consistency;
  • Flutter application architecture with Riverpod, go_router, Drift/SQLite and Dio;
  • operational workflows across hospitality domains;
  • offline-capable client foundations and synchronization patterns;
  • real-time state reconciliation and event-driven integration patterns;
  • integrations for storage, payments, fiscal/accounting systems and external platforms;
  • Docker-based development, CI, observability and runtime verification;
  • tenant-aware security, audit-oriented design and permission boundaries;
  • applied AI around deterministic domain data and human-controlled actions.

Technology stack

AreaTechnology
BackendNode.js 24 LTS, TypeScript, NestJS 11
APIREST / OpenAPI
DatabasePostgreSQL 18, Drizzle ORM, explicit SQL migrations
FrontendFlutter, Riverpod, go_router
Local dataDrift / SQLite
NetworkingDio, json_serializable
InfrastructureDocker Compose, S3-compatible storage
ArchitectureModular monolith, transactional outbox
QualityAutomated tests, CI, observability and runtime verification

Engineering approach

The codebase is organized around clear boundaries and reusable platform capabilities rather than one large feature layer.

Recurring engineering principles include:

  • deterministic and auditable domain state;
  • separation of operational truth from presentation;
  • role- and context-specific interfaces;
  • resilience under intermittent connectivity;
  • explicit integration adapters;
  • composable capabilities instead of duplicated vertical implementations;
  • controlled exposure of sensitive business, security and product logic.

Portfolio boundary

The public showcase intentionally omits detailed roadmaps, ADRs, security internals, commercial logic, AI prompts, operational playbooks and reconstructable product strategy.

Those materials remain in the private repository. The public view is optimized so technical reviewers can evaluate engineering breadth and implementation quality without receiving a reconstruction guide for the product.

Local development

The repository uses a versioned pnpm dependency graph.

corepack enable
pnpm install --frozen-lockfile

Project-specific runtime and verification details remain in the private engineering documentation.

Status

GastravaOS is under active development. The repository contains a broad implementation foundation and ongoing product work rather than a finished commercial release.

The public showcase focuses on engineering capability, architecture quality and implementation breadth while deliberately omitting core IP.

apps/backend/src/modules/accounting/workers/accounting-export.worker.tsTypeScript
import { Injectable } from '@nestjs/common';
import { DatabaseService } from '../../../infrastructure/database/database.service';
import { AccountingExportService } from '../application/accounting-export.service';
import { AccountingArtifactStorageService } from '../application/accounting-artifact-storage.service';
import { DatevCsvService } from '../application/datev-csv.service';
import { assertAccountingScope, assertAccountingText } from '../application/accounting-input-validation';
type AccountingExportRunInput = string | {
organizationId: string;
locationId: string;
exportJobId: string;
};
@Injectable()
export class AccountingExportWorker {
constructor(
private readonly database:DatabaseService,
private readonly exports:AccountingExportService,
private readonly artifacts:AccountingArtifactStorageService,
private readonly datev:DatevCsvService,
) {}
async runOne(input: AccountingExportRunInput) {
const scoped = typeof input !== 'string';
if (scoped) {
assertAccountingScope(input, 'accounting.export_input_invalid');
assertAccountingText(input.exportJobId, 200, 'accounting.export_input_invalid');
} else {
assertAccountingText(input, 200, 'accounting.export_input_invalid');
}
const jobId = typeof input === 'string' ? input : input.exportJobId;
const scopeParams = typeof input === 'string'
? [jobId]
: [jobId, input.organizationId, input.locationId];
const scopeWhere = typeof input === 'string'
? 'id=$1 and status=\'queued\''
: 'id=$1 and organization_id=$2 and location_id=$3 and status=\'queued\'';
const jobs=await this.database.query<any>(
`select * from accounting_export_jobs where ${scopeWhere}`,
scopeParams,
);
const job=jobs[0];
if(!job) return {processed:false};
const claimed=await this.database.query<any>(
`update accounting_export_jobs
set status='processing',started_at=now()
where ${scopeWhere}
returning id`,
scopeParams,
);
if(!claimed[0]) return {processed:false};
try {
await this.exports.buildRows(jobId);
const rows=await this.database.query<any>(
`select * from accounting_export_rows
where accounting_export_job_id=$1 order by row_number`,
[jobId],
);
let content:Buffer;
let fileName:string;
let artifactType:string;
if(job.export_type==='datev_csv') {
content=this.datev.render(rows,job.options_json??{});
fileName=`datev-${job.period_start}-${job.period_end}.csv`;
artifactType='datev_csv';
} else if(job.export_type==='journal_csv') {
const cell=(v:any)=>{
let s=v==null?'':String(v);
if(/^[=+\-@]/.test(s)) s=`'${s}`;
return `"${s.replace(/"/g,'""')}"`;
};
const headers=['booking_date','debit_account','credit_account','amount_minor','currency_code','tax_key','reference','booking_text'];
const lines=[headers.map(cell).join(',')];
for(const row of rows) lines.push(headers.map(h=>cell(row[h])).join(','));
content=Buffer.from(lines.join('\r\n'),'utf8');
fileName=`journal-${job.period_start}-${job.period_end}.csv`;
artifactType='journal_csv';
} else {
await this.database.query(
`update accounting_export_jobs set status='unsupported',completed_at=now(),
last_error='This export type is handled by invoice/provider-specific workflows.'
where id=$1`,
[jobId],
);
return {processed:true,status:'unsupported'};
}
const stored=await this.artifacts.store({
organizationId:job.organization_id,
locationId:job.location_id,
sourceType:'accounting_export_job',
sourceId:job.id,
artifactType,
fileName,
mimeType:'text/csv',
content,
userId:job.requested_by_user_id,
});
await this.database.query(
`update accounting_export_jobs
set status='completed',file_asset_id=$1,completed_at=now()
where id=$2`,
[stored.fileAssetId,jobId],
);
return {processed:true,status:'completed',fileAssetId:stored.fileAssetId};
} catch(error:any) {
await this.database.query(
`update accounting_export_jobs
set status='failed',completed_at=now(),last_error=$1 where id=$2`,
[String(error?.message??error).slice(0,1000),jobId],
);
return {processed:true,status:'failed'};
}
}
}

Architecture

High-level modules detected from the verified public snapshot. Protected implementation details are intentionally omitted.

appsmodule
.vscodemodule
.githubmodule

Technology stack

TypeScriptSQLMarkdownJSONGITIGNOREDOCKERIGNORENode.js / JavaScript ecosystem
TypeScript68.8%
SQL20.0%
Markdown10.9%
JSON0.3%
GITIGNORE0.1%
DOCKERIGNORE0.0%
CJS0.0%
MJS0.0%