High-fidelity capture of Twitter threads as sealed PDFs - archive.social.
 
 
 
 
Go to file
Matteo Cargnelutti 5184207301
Merge pull request #7 from edsu/create-a-key
Create an access key
2022-11-22 11:58:25 -05:00
.github/workflows Auto-deploy 2022-11-18 17:49:41 -05:00
app Linting, typography adjustments, meta tags edit for clarity. 2022-11-21 23:53:47 -05:00
certs Pre-alpha 2022-11-18 11:20:26 -05:00
docs Update SuccessLog.md 2022-11-21 13:31:31 -05:00
executables Pre-alpha 2022-11-18 11:20:26 -05:00
scripts Clean up and documentation 2022-11-21 13:20:25 -05:00
.gitignore Cleanup: continued 2022-11-18 14:18:50 -05:00
.prettierrc Pre-alpha 2022-11-18 11:20:26 -05:00
LICENSE Initial commit 2022-11-14 17:43:03 -05:00
README.md added info about how to create a key 2022-11-22 08:40:21 -05:00
brewfile Pre-alpha 2022-11-18 11:20:26 -05:00
package-lock.json Clean up and documentation 2022-11-21 13:20:25 -05:00
package.json Clean up and documentation 2022-11-21 13:20:25 -05:00

README.md

Save Your Threads 📚

High-fidelity capture of Twitter threads as sealed PDFs: archive.social.

An experiment of the Harvard Library Innovation Lab.

🚧 Experimental / Prototype. Early release to be consolidated.


Summary


Dependencies

Runtimes

Browsers

  • Google Chrome (npx playwright install --force chrome may be used).

Python dependencies

  • ⚠️ For now: Python dependencies are installed at machine level, as a post-install step of npm install.

Known Ubuntu packages

curl bash gcc g++ python3 python3-pip python3-dev zlib1g zlib1g-dev libjpeg-dev libssl-dev libffi-dev ghostscript poppler-utils
  • ⚠️ On Linux, this project is only compatible with Ubuntu at the time, because it uses Playwright + Chrome.
  • Node may be sourced from Nodesource.

For development on Mac OS

A brewfile is available. Run brew bundle to install machine-level dependencies that can be provided by homebrew.

☝️ Back to summary


Local development

Run the following commands to initialize the project and start the development server.

brew bundle # (Mac OS only) - See Linux dependencies above.
npm install # To install npm packages
npx playwright install chrome # To ensure Playwright has a version of Chrome to talk to
npm run generate-dev-cert # Will generate a certificate for self-signing PDFs. For testing purposes only.
npm run dev # Starts the development server on port 3000

Create an access key to test with:

$ uuidgen
BB67BBC4-1F4B-4353-8E6D-9927A10F4509

and then add the key to app/data/access-keys.json:

{
  "BB67BBC4-1F4B-4353-8E6D-9927A10F4509": true,
}

☝️ Back to summary


Dev CLI

start

npm run start

Starts the app's server on port 3000 with warning-level logs.

dev

npm run dev

Starts the app's server on port 3000 with info-level logs. Watches for file changes.

generate-dev-cert

npm run generate-dev-cert

Generate a certs/cert.pem and certs/key.pem for local development purposes.

docgen

npm run docgen

Generates JSDoc-based code documentation under /docs.

☝️ Back to summary