Skip to content

Separate install from start — detect if build needed #319

Closed

Description

@joelteply

Problem

npm start does everything: deps check, Rust build, model downloads, TS build, browser build, worker startup, DB check, seeding, browser open. Takes 70-150s every time.

Desired behavior

  • npm install → full install (deps, builds, models, DB setup). Run once or when needed.
  • npm start → just start services + open browser. Fast (<10s if everything built).
  • Detection: check if binaries exist, models exist, DB exists. If missing, tell user to run npm install.

Current pain

Every restart rebuilds everything. After a reboot, postgres isn't running and the startup hangs. Install concerns mixed with runtime concerns.

Activity

  1. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    Addressed by install.sh (PR #428). Full setup separated from runtime: install.sh handles deps/config/build, npm start handles runtime. install.sh runs prereq checks that npm install doesn't. Startup speed optimization (skip builds when cached) is a separate concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions