Skip to content

new frontend that relies on raw.jsonl and compile_directory.json#170

Draft
yushangdi wants to merge 1 commit intomainfrom
sy_new_frontend
Draft

new frontend that relies on raw.jsonl and compile_directory.json#170
yushangdi wants to merge 1 commit intomainfrom
sy_new_frontend

Conversation

@yushangdi
Copy link
Contributor

@yushangdi yushangdi commented Feb 9, 2026

How to use the new font-end:

# Step 0, this only need to be done once if you don't update the front-end. This produce an html file. 
# The `vite-plugin-singlefile` inlines all JavaScript and CSS into the single `dist/index.html` file. You don't need any other files from the build output.
# optionally, do  NOMINIFY=1 npm run build to get a readable javascript in the html file, but the file size will be 3x larger. 
cd fontend && npm run build    

# Step 1 
cargo run -- <log_file> -o tl_out --no-browser

# Step 2. This script populate the viewer html with raw.jsonl and compile_directory.json, so you can directly open the html without starting a server
./scripts/make_viewer.sh tl_out

# Now you can open viewer.html and browse. 

If you only want to change the front-end, no need to update the rust package. You can just do:

cd fontend && npm run build    
./scripts/make_viewer.sh tl_out
Screen.Recording.2026-02-09.at.5.18.10.PM.mov

@meta-cla meta-cla bot added the cla signed label Feb 9, 2026
@yushangdi yushangdi changed the title new frontend new frontend that relies on raw.jsonl Feb 10, 2026
@yushangdi yushangdi changed the title new frontend that relies on raw.jsonl new frontend that relies on raw.jsonl and compile_directory.json Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments