{"id":23070213,"url":"https://github.com/a-mhamdi/snap2typst","last_synced_at":"2026-02-03T12:08:23.163Z","repository":{"id":268305701,"uuid":"900455712","full_name":"a-mhamdi/snap2typst","owner":"a-mhamdi","description":"Equation parser and bibliography fetcher using ollama","archived":false,"fork":false,"pushed_at":"2024-12-22T20:21:46.000Z","size":9767,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T05:33:58.583Z","etag":null,"topics":["ollama","streamlit","typst"],"latest_commit_sha":null,"homepage":"https://snap2typst.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-mhamdi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-08T20:15:01.000Z","updated_at":"2024-12-30T12:30:05.000Z","dependencies_parsed_at":"2025-02-08T23:31:38.536Z","dependency_job_id":"4f62b79e-dec6-42ee-99a4-a3148e06adbc","html_url":"https://github.com/a-mhamdi/snap2typst","commit_stats":null,"previous_names":["a-mhamdi/snap2typst"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a-mhamdi/snap2typst","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-mhamdi%2Fsnap2typst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-mhamdi%2Fsnap2typst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-mhamdi%2Fsnap2typst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-mhamdi%2Fsnap2typst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-mhamdi","download_url":"https://codeload.github.com/a-mhamdi/snap2typst/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-mhamdi%2Fsnap2typst/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29045461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ollama","streamlit","typst"],"created_at":"2024-12-16T06:25:19.743Z","updated_at":"2026-02-03T12:08:23.141Z","avatar_url":"https://github.com/a-mhamdi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SNAP To `TYPST`\n\n![Home](snap2typst.png)\n\nThis repository contains a web application that allows users to upload an image  of an equation and receive the corresponding `Typst` code. Additionally, users can input a URL to obtain the Hayagriva `YAML`-formatted bibliography reference compatible with `Typst`.\n\n## Features\n1. **Equation Parser**: Upload an image containing an equation, and the application will parse it and generate the corresponding `Typst` code.\n1. **URL Bibliography Fetcher**: Input a URL, and the application will fetch and display metadata such as the author, title, and publication name in `YAML` format compatible with `Typst`.\n\n## Project Structure\n- `app.py`: The main application file;\n- `bib.txt`: contains the guidelines for bibliographic metadata retrieval;\n- `eq.txt`: contains the guidelines for equation parsing;\n- `.streamlit/config.toml`: Configuration file for Streamlit.\n\n## Installation\nTo install the required dependencies, run:\n```zsh\nuv pip install -r requirements.txt\n```\nYou need to install the `ollama` CLI to run the application. To install the CLI, run:\n```zsh\ncurl -fsSL https://ollama.com/install.sh | sh\n```\n`llama3.2-vision` is required to run the application:\n```zsh\nollama run llama3.2-vision\n```\n\n## Usage\nTo start the application, run:\n```zsh\nstreamlit run app.py\n```\n\n## DEMO\n![DEMO](demo-eq.gif)\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-mhamdi%2Fsnap2typst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-mhamdi%2Fsnap2typst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-mhamdi%2Fsnap2typst/lists"}