Shrink the npm tarball: bundled Inter TTFs are 45% of the package
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 62/100
- Tipo de issue
- Refatoração
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- build-system
Direção de pesquisa
Start by running npm pack --dry-run to reproduce the 571 kB packed size, then look at the two font files in assets/fonts/Inter-Bold.ttf and assets/fonts/Inter-Regular.ttf. Check src/utils/fontCoverage.ts to see which glyph ranges the CJK and emoji fallback depends on, so the subset keeps them. Done means the packed size is under 300 kB and the font and drawtext tests still pass.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Why it matters
npx cold starts (the main install path, including in the Action) download the whole tarball every time.
Evidence
npm pack --dry-runreports 571 kB packed, 1.5 MB unpacked.assets/fonts/Inter-Bold.ttf(344 kB) andInter-Regular.ttf(342 kB) make up most of it.- The 51 kB README also ships.
Suggested approach
Subset Inter to Latin plus common symbols. Keep TTF, since ffmpeg's freetype may lack WOFF2 support. Keep the CJK/emoji fallback in src/utils/fontCoverage.ts working, and slimming the README (see the README issue) also helps.
Done when
The packed size is under 300 kB and the font and drawtext tests pass.
- Linguagem predominante
- TypeScript
- Estrelas
- 1
- Forks
- 4
- Merge médio
- 14h 8min
- PRs com merge (30d)
- 48
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TMHSDigital/screencast-mcp
-
effort: small good first issue priority: medium testing
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
TMHSDigital/screencast-mcp#351 ·
Mantenedores costumam responder em até 1 dia
-
bug effort: small priority: medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
TMHSDigital/screencast-mcp#344 ·
Mantenedores costumam responder em até 1 dia
-
bug effort: small good first issue priority: medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
TMHSDigital/screencast-mcp#343 ·
Mantenedores costumam responder em até 1 dia
-
effort: medium help wanted priority: medium testing
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 76/100
TMHSDigital/screencast-mcp#350 ·
Mantenedores costumam responder em até 1 dia
-
effort: medium priority: medium testing
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 70/100
TMHSDigital/screencast-mcp#349 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de TMHSDigital/screencast-mcp
Issues semelhantes
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
openclaw/openclaw#200365 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
area-templates triage:bot-seen triage:needs-human
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
microsoft/aspire#22356 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Archiving an agent that is not loaded keeps its old updatedAtTalvez já em andamento @luoph assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
content triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia