- Node.js: Ensure you have Node.js installed (v18+ recommended).
- Python: Ensure you have Python 3.9+ installed.
- Git: Ensure Git is installed.
- Frontend (React):
npm install
- Ingestor (Python):
cd ingestor pip install -r requirements.txt python -m spacy download en_core_web_sm cd ..
The raw_corpus_source directory contains your source texts (PDFs and TXTs).
To process them into the format required by the engine:
- Run the ingestor script:
python ingestor/process_corpus.py
- This will create:
src/assets/corpus/*.json: Processed data for each "Spirit" (author/topic).src/assets/corpus/corpus_manifest.json: An index of all processed data.
- Start the development server:
npm run dev
- Open your browser to the URL shown (usually
http://localhost:5173).
Since the gh CLI was not available, you need to manually push to GitHub:
- Create the repository
HyperstitionEngineon your GitHub (MachineKomi). - Link your local repository:
git remote add origin https://github.com/MachineKomi/HyperstitionEngine.git
- Push the initial commit:
git push -u origin master
src/: React source code.ingestor/: Python scripts for data processing.raw_corpus_source/: Your private collection of texts (Ignored by Git).bootstrap/: Design documents.
- Missing Corpus: If the app shows "Corpus not loaded", ensure you ran the python script.
- Encoding Errors: If
process_corpus.pyfails on a file, check if it's a valid PDF or UTF-8 encoded TXT.