#Community

4437 messages · Page 5 of 5 (latest)

prime robin
#

The install script?

inner kiln
#

Sob did you have problems with the cname? 6 commits updating and deleting it 😟

prime robin
#

Something like that

#

I don't actually remember exactly what the issue was

crisp summit
#

did anyone here talk in a community call previously (for the spotlight)? I haven't even participated before. It would be fun if I could say something short either about rowmantic/rowtable or about the interesting way the custom line numbers hack works (that I just worked on this weekend). I guess the former is a bit more useful

prime robin
#

IIRC @solid umbra had a spotlight about his work upstreaming tablex before he officially joined the team.

prime robin
#

@flat bane can you edit comments on the RFC repo?

#

You have triage access and if this is enough ecosystem team members can simply clicking a TODO entry on a comment to vote on an RFC

flat bane
prime robin
#

Hmm, that's annoying but I suppose write permissions will be fine

#

It doesn't say which perms add this though

#

Ok, it's write access

#

You should now be able to, let's hope that works I'll create vote on the process doc regarding the usgae of typst itself for RFCs

flat bane
#

yep, was able to check and uncheck boxes in the PR

prime robin
#

I wonder how rust RFCs distinguish between hasn't voted yet and voted no

#

Ah it just marks it as reviewed

prime robin
#

@dense vale Could you take a look if something about the docker link is ill configured on tytanic?

#

I'm on my phone in a train

keen gorge
#

I've just requested to give netlify access to typst-docs-web. (typst-community/typst-docs-web#13)
(I'm forwarding it here in case someone thinks it's spam.)
Update: Granted. No additional action is required.

dense vale
prime robin
#

I haven't been able to use a pc so far

#

Would be appreciated if you could check

steep orbit
spice comet
prime robin
#

Just above here is something akin to this, a typst snippet site

ornate condorBOT
#

@Y.D.X. Since you are working with the docs.json file quite a lot, I wanted to bring this up early: As we are in the process of migrating the documentation to Typst, we so far have no plans to continue supporting the JSON output. Rather, the Typst code for the new docs will directly reflect on the standard library and output the appropriate HTML. There will still be opportunity for customization via show rules and a way to integrate it into an existing website (as we need that too) instea...

inner kiln
#

Would you guys be interested in adding a homebrew tap repository?
Or nuh uh

prime robin
#

Don't we have one of those?

#

Oh no, that's scoop

#

Sure

prime robin
#

That is, if you're willing to maintain it too

whole crest
#

yoo, I'm trying to do a wasm based wgpu or webgl renderer but it's giving me errors on plugin import

#

is this just not possible??

#

I thought I'd make a community typst 3d renderer package, but if there's no wgpu support, this is gonna be a lot more of a workaround than I'd like, not to mention performance

#

I wanted to have a protein renderer and molecule orbital renderer for the chemistry packages based on this 3d renderer, and it already works if I do it manually, it's just that the wasm plugin is giving unreadable errors

#

haven't seen a proper 3d rendering package on the universe as well..

whole crest
prime robin
#

I don't think the local runtime even has webgl available

whole crest
#

But the browser version does(?)

prime robin
#

Maybe? It's wasm in wasm so probably not

whole crest
#

And how about webgpu?

prime robin
#

Well it says web

tacit nymph
#

doesnt mean anything actually

prime robin
#

And I'm not aware of typst doing any GPU stuff

tacit nymph
#

webgpu is the name of the standard

#

it runs on everything

prime robin
#

Stupid name for a standard then

whole crest
#

Maybe I need to make a cpu based renderer then 😔

inner kiln
#

wasnt webgpu recently added major support for all major browsers?

toxic mauve
inner kiln
#

yeah its been recently added in chromium 142-4, and only edge (dev) has it enabled properly others just have it disabled (at least on linux)

prime robin
#

I hope to get back to my work on the RFC repo this weekend, perhaps we can get the process document refined and voted on

oblique star
#

Btw can I transfer Thumuss/setup-utpm ?

prime robin
#

Are you maintaining it?

#

Or do you want to add it to the nursery

ornate condorBOT
oblique star
prime robin
#

OK, then go ahead I suppose, but perhaps wait until I'm back at my PC so I can make you maintainer right away

#

I'll tell you

oblique star
#

I'll propose when I get a bit of time today

#

The homebrew repo can be interesting too tho

#

Do you think adding the utpm homebrew tap repo could be done?

prime robin
#

utpm homebrew tape?

inner kiln
#

Homebrew tap

#

= Scoop bucket

#

Taps are a bit confusing as they don't work similar to the buckets, homebrew core for example releases bottles which are recompiled binaries so it kinda uses github repository storage for it, unlike scoop which directly downloads from the website.

#

I tried setting my own which downloads directly from website but I couldn't manage to fully automate the CI to merge the PR automatically.

#

I wonder what homebrew is gonna do about its self hosted runners with the new fees from github 😔

flat bane
#

I just realized that this comment on #5454 should probably also be taken care of by utpm (@oblique star) and typship (@tropic field):

when we untar a package bundle we should also skip symlinks in the bundle

I think both packages use cloning git repos to get package contents, which can contain symlinks that should be filtered out—both for security, and for consistency with what Typst itself would install.

oblique star
#

I use the typst download system (from their crate), I don't think that applied on utpm for the download
But for the upload part I need to check yeah

prime robin
#

I think he's refering to git dependencies

#

i.e installing packages from a git repo

flat bane
#

yeah, basically: if you install a package into one of Typst's lookup locations (cache or local packages dir), the installation should discard any symlinks the package might contain

ornate condorBOT
#

Like many people, I dislike having large files of text. This is one of the primary reasons I use Typst, allowing me to break down large documents into smaller, more manageable files.

I say that because what I'm trying to do is have my acronyms in a typ file called acronyms.typ, then reference that file when I need to reference an acronym.

I have the following in acronyms.typ:

#import "@preview/glossarium:0.5.9": make-glossary, register-glossary, print-glossary, gls, glspl
#show: make-g...
prime robin
#

<@&1097885324740407387> this was essentially advertising from a quick look can you remove the embed?

#

I have removed the post and blocked the user from the organization, but I obviously can't do that here.

#

@dense vale I treated this like a advertising spam on here, but I wonder if we even have an explicit rule against this yet?

It was a link to their github pages for paid writing advice, it didn't exactly look unprofessional, but advertising on github forums like that seems fishy the account joined 9 hours ago at the time of writing, so that's definitely a scam, but what about cases where people advertise genuine services.

If the embed is removed by the time you see this I can send you a screenshot and link, but you can probably see this in the org audit log too.

dense vale
#

if so yes i agree

#

should advertising anything be permitted in first place in discussions for services?
genuine or not?

prime robin
#

That's what I'm wondering, we could technically allow it if it is genuine, but that's a subjective measure.

prime robin
prime robin
#

If anyone has any thoughts on that feel free to drop them there.

errant pulsar
#

@prime robin I've written a asdf plugin for tytanic, would you be willing to test it and tell me if its working on your end? I suppose it could be advertised on tytanic's README if you feel like it.
I grew bored of mananing versions of tt by end lol!
https://github.com/quachpas/asdf-tytanic

GitHub

Contribute to quachpas/asdf-tytanic development by creating an account on GitHub.

prime robin
#

I haven't used asdf and I'm not sure it'll work well on nix considering the OpenSSL dependency of tytanic, I can try but I may run into issues because of this that aren't related to your plugin at all.

#

Though it may be fine, I have nix-ld enabled globally.

prime robin
#

It worked a little different for me than on the README, but it seems to work. Feel free to open a PR that adds this to the book as an installation method or so.

errant pulsar
#

would it be alright to transfer that repo to typst-community? I haven't been following any news lately, so I don't know who the admin are :p

inner kiln
#

the deer 🦌

errant pulsar
#

@thedeer !!

inner kiln
#

I meant tinger

errant pulsar
#

ah :p

#

oh yes his pp is a deer

#

I don't have them enabled, so I didn't notice

inner kiln
#

or a bull (bc of the ring) i cant really tell what fursona mix might be

prime robin
errant pulsar
prime robin
#

Sure, tell me when it's done so I can give you the perms right after.

errant pulsar
#

done

#

thank you

#

one day I'll check why the tests are failing but since it works for you and for me I don't see why it wouldn't for others! 🤞

prime robin
#

OK you should have all necessary perms

keen gorge
#

Hi! May I move https://github.com/YDX-2147483647/typst-extra-docs to typst-community/extra-docs?
It's a simple mdbook website serving extra official documentations for Typst (e.g., hayagriva changelog and its file-format.md). This website makes it more convenient to search and read those docs.
Considering the nature of this project, I think the repo better lives under typst-community: 1. It has a greater chance of keeping the contents updated; 2. Multiple such projects can cause confusion, but a central one won't.

(No action is needed on your side, because it looks like that my GitHub account already has necessary permissions.)

prime robin
#

(No action is needed on your side, because it looks like that my GitHub account already has necessary permissions.)
Not quite, unfortunately when you move a project to an org you're in you don't retain maintainer status, so giving the admins a heads up is important if you want to immediately work on it right after.

If you maintain the project then the move is welcome of course :) I'll give you maintainer once I see the webhook in here.

keen gorge
#

If you maintain the project
Yes I intend to do so. (but as most open-source projects, there's no strict guarantee)
I myself also use the website. Before I made the repo public, I was using a private netlify build.

#

you don't retain maintainer status
Indeed, I can't update the repo description nor adjust GitHub Pages settings…

prime robin
#

You have maintainer role now

flat bane
#

For crates.io, I'm not sure whether a community can own a crate, but there can be multiple owners. @prime robin, did you look re tytanic whether crates can handle org ownership, our did you actively choose to personally own the crate anyway?

#

For maintainership—@lean fractal, @lunar palm, @hollow gyro, @tidal walrus, @keen gorge (tagging people who had significant activity or are active short term), are any of you interested in (co)maintaining wasm-minimal-protocol?

prime robin
#

Yes this is also how the rust bus project worked

#

Though, the project itself is abandoned now in a existential sort of irony

prime robin
keen gorge
# flat bane For maintainership—<@305718585718865922>, <@140174183995801600>, <@9703725524321...

I can watch the repo if it's moved.
I guess future development will focus on adding more examples in other languages, but that relies on new contributors from other languages, and there isn't much I can do.
Besides, I want to mention https://github.com/sjfhsjfh/typst-wasm (typst-wasm-protocol on crates.io). It adds support for more data types to the #[wasm_func] macro. However, it hasn't been updated for 10 months.

flat bane
#

I didn't know about that crate, thanks!

Then I guess I could also start the discussion thread, so that Astrale doesn't have to invest too much time into the move.

ornate condorBOT
#

Project Name

wasm-minimal-protocol

Initial Author(s)

astrale-sharp

Repository URL

https://github.com/astrale-sharp/wasm-minimal-protocol

Status

Unmaintained

Description

This is a Rust crate that makes it easy to export functions as a Typst WASM plugin, and a collection of Plugin examples in other languages.

Discussion on this move has started here, and @YDX-2147483647 has indicated they would take care of the repo. That said, the focus would likely become p...

keen gorge
#

So what's blocking it? Is there anything on my side that needs to be done?

prime robin
#

You could answer to my question on the thread itself, so it's official whether you'd actively or passively maintain the crate :)

#

If that's clear then I could do the appropriate transfer later today

prime robin
#

@flat bane you started the transfer discussio for wasm-minimal-protocol, are you in a position to transfer it?

flat bane
tight star
#

I don't have the rights the create a public repository on typst community so can't transfer as is

prime robin
#

If you transfer to ensko or me one of us can take care of the rest for you

tight star
prime robin
#

Thank you! We'll take good care of it :)

tight star
#

tingerrr?

#

Or just tinger

#

Thanks 😇

flat bane
tight star
#

Transferred!

prime robin
#

Thank you!

#

I'll take care of the transfer later

prime robin
#

I don't seem to have an email or a notification for it :/

#

I'll check if it comes by tomorrow otherwise I'll have to bother her again

prime robin
#

@tight star sorry to bother you, but can you check if everything went smoothly? I can't seem to find an email or notification about the transfer.

earnest ember
prime robin
#

Nope, it's still on her account and not reachable on mine

#

no email, no notification.

tight star
prime robin
#

Thanks, sorry for the trouble!

#

fwiw, It might be necessary to add me as a contributor before transferring the repo to me

keen gorge
#

Perhaps, astrale-sharp can be invited to typst-community? After that, astrale-sharp will have the permission to create repos under typst-community.

prime robin
#

Yes that would work too, I wanted to avoid this at first because it's more work for her and she's already slim on time, but considering that she may have to add me that could work better too.

#

It's just annoying either way because she has to check her email separately for this, invites to orgs are not sent as notifications for some odd reason

prime robin
#

@tight star I have extended an invite to you (which should show up in your emails), this way you can simply transfer the repo to typst-community right away when you have time without us having to synchronize on the transfer. If the invite expires before you have time just ping me and I'll invite you again.

flat bane
#

😔 I wonder if there is a better way to do this, but it also sounds kinda sensible that transfers to orgs are only to orgs you are a part of.

tight star
#

I'll do it as soon as I'm able!

runic moat
toxic mauve
#

he hacks away at the Typst web app, figuring out why WebKit broke our multi-threaded WebAssembly setup (again)
😭

#

can't wait to watch the recording!

abstract needle
toxic mauve
#

Wait it's in the Netherlands? That'd be closer to me than Berlin, but I doubt I could make it still. I'll look into it
edit: Train service seems to be a bit of a mess rn, it'd be quite a headache 😭

manic sluice
#

Ooh, it is only two hours with the train for me.
-# Shame I am still rust-illiterate... 🥲
-# oh and it is on a workday

keen gorge
prime robin
#

Unfortunately not

prime robin
#

cc: @keen gorge

keen gorge
#

Finally!
I don't have permission to rename the default branch. Could you rename it to main? I proposed it last week on GitHub, and there're 3 votes now.

prime robin
#

Ah this might be an admin only permission, one second, I'll rename it

#

Done

tacit nymph
#

the setup-typst github workflow recommends fontist for font management in CI and while it seems like a nice idea, at least right now it is all somewhat outdated. the action from fontist itself is behind the fontist releases (last of which as 2024) and some fonts cannot be found or are still linked to an older release. For an example: I wanted to install Libertinus Sans but it has to be the whole family, so I tried fontist install "Libertinus" which should already work as they renamed it from "Libertinus Fonts" in 2024 but it cant find it. and even if it did, it would use the older version

#

it seems there arent many nice font management tools for CI tbf

#

good old

wget -O /usr/share/fonts/download.zip link/to/direct/download.zip
unzip -d download /usr/share/fonts/download.zip
fc-cache -fv

will work at least

#

(well with sudo when doing wget directly into usr)

tacit nymph
#

ok nvm i was NOT cooking

#

turns out, it can find the fonts, i just have to specify the variant i want fully

#

however fontist did not seem to manage to cache itself unless that only happens on successful runs so I had to endure another 2 minute installation process

#

might be on github/azures side though

tacit nymph
#

That is what fontist does in the background plus caching

tame widget
#

but fontinst isnt a simple dependency since it requires ruby

tacit nymph
#

Yea that is true, which why I would only use it in CI workflows since it provides it's own and also supposedly caches itself, such that the ruby part is only done once

prime robin
#

I'm surprised that no one has implemented anything better yet, perhaps this is largely a licensing issue.

#

Or maybe its that font consumers are not used to package manager workflows, simular to how windows users are largely not used to it either.

tacit nymph
#

Honestly the basic idea is solid. It's a simple CLI tool, it uses a schema which contains the direct download links and it can cache in a system independent font path

#

Now why it has to be ruby idk

#

And it's really only maintained by a few people sometimes

prime robin
#

Yeah but clearly it has some usability problems as you described above.

tacit nymph
#

Yea sadly it is also very dependent on azure cloud services actually providing the caching action otherwise your CI will just contain 3 minutes of building a ruby CLI every time

#

Now with Rust that wouldn't actually be too different but there you can at least wget a binary from GitHub releases or use binstall

#

Maybe we do a port under typst/community lol

flat bane
#

I have only good experiences with Ruby software, like Discourse for example. Super fast!
-# /s

prime robin
#

Scales really well :)

tacit nymph
#

Our community would probably profit from the tool being remade in a more modern way, can probably reuse the existing schema anyway

#

Though they are also working on a new version of the schema but it's not ready yet

tacit nymph
#

well in any case, sometimes simple is best and doesnt need caching since wget + unzip takes seconds at most

inner kiln
#

Homebrew should be recommended too

keen gorge
keen gorge
# keen gorge I said two weeks ago: > This should not involve publishing a new version to crat...

A possible way to do so:

  1. Astrale: Go to https://crates.io/crates/wasm-minimal-protocol/settings, click Trusted Publishing → Add, and fill in the form. (See explanation and the screenshot.)
  2. Me: Set up the workflow on GitHub.
  3. Me or any future maintainer: Trigger that workflow to publish a new version on crates.io.

If that's okay, I can test it with wasi-stub before we bother Astrale. wasi-stub hasn't been published to crates.io, so I'm able to create and configure it.

keen gorge
prime robin
#

Perhaps we should add typst-community too?

#

Unless you can do this in post once you're added as an owner where we have more time to evaluate that

keen gorge
keen gorge
prime robin
#

I'll do once I'm on a PC, in about an hour or so

prime robin
#

I didn't get an email or notification for this.

keen gorge
#

I've tested with my own org and crates.io behaves as expected…

#

My request is still pending, and I can't find any button to resend it.

prime robin
#

OK I'll try soon, I'm still at work rn

keen gorge
#

Hi! Any update?

prime robin
#

Nope sorry, but I'll be on it in a few minutes because I've got some free time

#

OK it seems I don't get notification for auth requests even as an administrator

#

I've granted the oauth request

keen gorge
#

Done!

$ cargo owner --registry crates-io wasi-stub --add github:typst-community:nursery
    Updating crates.io index
       Owner team github:typst-community:nursery has been added as an owner of crate wasi-stub
prime robin
#

Good to know you can add sub teams!

keen gorge
tight star
#

I'll try to find some time soon

#

Will there be anything else?

prime robin
#

I can't think of anything else, but perhaps @keen gorge has anything in mind?

keen gorge
tight star
#

Lovely, no need, I'll find some time soon

tacit nymph
#

can we please write changelogs on our own without llm assistance

oblique star
# tacit nymph https://github.com/typst-community/setup-typst/releases/tag/v5.0.0

I don't have a problem with AI written changelogs but this is a little bit too much here

Welcome to v5.0 — a bold new chapter in our quest to make Typst installation smoother than freshly brewed coffee ☕ (and just as energizing). This release packs breaking changes, exciting new features, and some behind-the-scenes polish that’ll make your workflows shine.

prime robin
#

💀

crisp summit
#

that explains why the announcement is so hard to read

tacit nymph
#

Also sets a bad precedent under typst-community

prime robin
#

That's true, but it's a very divisive topic so I'm unsure how to best handle this, especially since I'm an administrator, not an authoritative figure.

tacit nymph
#

Well for now, a gentle reminder would probably be enough

prime robin
#

@dense vale With you being the other administrator, do you have strong feelings about how this is best handled? Should we nudge the maintainer into a different direction and perhaps draft an LLM section in the community guidelines?

#

IIRC, we also don't really have our own guidelines, we piggy pack off of another project's community guidelines and should make sure that it matches our expectations on that matter.

dense vale
tacit nymph
#

Fwiw I would argue this makes the changelog text less presentable than if it was written by hand.

crisp summit
#

In this particular case, it's full of things like this "Time to leave older Node versions in the dust!", there's extra filler sentences for introduction and outro of every line item. Could be much more to the point.

keen gorge
#

I basically agree with rmu.
I guess yusancky (the author) is quite busy. setup-typst@v5 resolves #53. I saw that he/she created the issue-53 branch a week ago, but it was only today that it was merged into main. In other words, it takes yusancky at least a week to implement a feature.
With limited time, yusancky still gave a changelog (instead of letting GitHub dump the git log) and the changelog doesn't have any broken link or misleading description.
(I do agree that the AI noise is very distracting, however.)

prime robin
#

Ok, I've contacted yusancky via email about the recent release announcement asking them to tone the overt use of LLMs down in favor of more professional phrasing.

sullen pivot
prime robin
keen gorge
dense vale
#

@oblique star @prime robin for utpm maintenance

prime robin
#

Hmm

#

Sounds good, we'll have to see who else chimes in from their friends then

oblique star
#

Yeah I'm sorry I have too many problems to focus. I have utpm in mind but can't really focus on it
I read and merge PR but that's it for now

#

Between health and school I don't have many hours left a day

#

Like every year, on summer, I'm a bit more here

#

The worst for me is I really like to work on it, but can't :((

keen gorge
prime robin
#

Love how you find a day to celebrate everytime you ping her 😂

tight star
#

I'm sure I'll get some time soon don't you even worry

oblique star
#

Okay so this weekend I have a bit of time to work on utpm
I'll clean up a bit and cut the 0.3 release

oblique star
#

having nightmares with windows build

oblique star
#

A release is coming

#

tomorrow i'll push it on cargo

#

and on other i'll see, it's horrible github and their ci

keen gorge
oblique star
#

yeah I can change that manually and fix the workflow later

#

I just saw your PR, tell me if u need the change or not

keen gorge
oblique star
#

No problem!

tight star
tight star
#

is there any way to create a typst-community crates.io user? Otherwise whats your crates.io username? @keen gorge

prime robin
#

I think so but we can do that right after without bothering you once Tia transferred

keen gorge
keen gorge
keen gorge
#

Thank you Astrale! The transfer is now completed.
(I encountered some issues when I was trying to add typst-community:nursery. Later it turned out that I had to re-authenticate crates.io via GitHub.)
Tinger, I've also invited you as an owner. You can accept it at https://crates.io/me/pending-invites.

prime robin
#

Yes I saw that and I think I accepted it, it lists me and an owner now

#

Is adding a team as simple as adding it? No accepting the invite required?

#

And does that mean all you need is access to the team to do a release?

inner kiln
#

wouldnt you guys like to also provide a library for zig instead of just an example?

keen gorge
keen gorge
#

all you need is access to the team to do a release
Now the release are published from the GitHub repo via trusted publishing.

keen gorge
inner kiln
#

Oh well

#

I was offering myself

#

I could set it up but dunno if I'm the same repo or a separate repo

keen gorge
#

I guess creating a separate repository is more convenient? At least, it's easier to keep the CHANGELOG
(I don't object to adding it to the wasm-minimal-protocol repo, though.)

#

(It's quite late in my timezone. I won't reply to further messages until the next day.)

prime robin
#

Gn

inner kiln
#

I'll let you know then

#

Better think too for dedicated repo as Zig doesn't have a centralized registry

prime robin
#

Submodule yuck

inner kiln
prime robin
#

🗿

blazing rampart
oblique star
#

Got a migraine today but tomorrow sure

#

I'll put a note for me to not forget

oblique star
inner kiln
#

yah

#

a single wittle example using it, let me know how to transfer it

dire robin
#

Would this line in the plugins' docs need updating then?

#

Similarly in the wasm-minimal-protocol repository README.

dire robin
#

I thought it's developed now, no?

inner kiln
#

ya

#

done

#

so idk ill wait approval or dunno

#

to transfer it or dunno

keen gorge
keen gorge
inner kiln
inner kiln
#

Do I just transfer it then?

keen gorge
prime robin
#

Hmm I didn't get a notification for that, my bad

#

It should be under nursery as it is currently maintained as such: passively, not actively.

#

Feel free to ping me if you changed that and I'll review and merge it promptly.

prime robin
#

Ok, merged. Thanks for notifying me, I'm an a hiatus right now, so I don't notice things right away and if I don't get notificaitons, then I may overlook them entirely.

keen gorge
prime robin
#

Lovely, I hope I find the time to take a closer look at it next week

abstract needle
prime robin
#

Cool cool, since you've taken a look, how extensible would you say this is? Can the styling of the site be reused for package and tool docs?

#

I'm sure the team already thought about this in advance, I suspect a docs.rs equivalent is planned eventually.

abstract needle
#

One thing I did notice was the addition of reflection functions for getting definition info from types and functions, this was defined for the world's Library in Rust, but then used within Typst code

prime robin
#

Let's goooo

#

I'm sure @tough crown is delighted about that

abstract needle
#

But that was only for the docs themselves

prime robin
#

Ah dang I didn't silent ping, sorry

abstract needle
#

I would also love to see native reflection. It would be so cool to just have package documentation generated by importing the package

#

We should have a global help function that renders the docs for a function if we do

#

You get confused about strong, and just type #help(strong) and it renders.

tough crown
prime robin
#

Yeah, just like tidy

#

Oh I didn't see that message

tough crown
prime robin
#

I like the idea of it, but I don't like having to provide it in my public API instead of it being builtin

flat bane
#

my uses of the minimal protocol so far have manually added wrappers (e.g. Alexandria). having that in the minimal protocol would be nice, although I think it would then stop being the "minimal" protocol. I have no problem with that, I just think that's (among the reasons) it's not already in there 🙂 the main question for me is: what can we add that is unopinionated enough that it fits nicely in that crate?

prime robin
#

Good question, like you said this sort of takes away from the "minimality" if it does more than what it does now.

#

Perhaps it should be a wrapper crate, but it seems it would be fairly small too

keen gorge
#

I don't think cborium should be included in the macro lib. At least it shouldn't be added to the default features. Some people are very concerned about the size of the resulting wasm, while others prefer to use alternative cbor implementations.

One possible solution is to make the __ToResult trait public, so that you can write something this:

impl __ToResult for Bibliography {
  fn to_result(self) -> Result<Vec<u8>> { ... }
}

sjfhsjfh made such experiment in 2025-03 (typst_wasm_protocol::PluginResult).
According to GitHub search result, several projects are using it (oxdraw, digestify, rexllent, …).

tough crown
#

I agree that for a minimal implementation, the project is perfect as it is. I have used it with Rust and was content with adding more infrastructure myself (which doesn't require much code). I admit that I found it not quite straightforward to add cbor conversion. Some cbor rust dont support wasm targets. Cborium blows up binary size quite a bit and therefore I don't think it should be part of the minimal protocol.

#

this is a good place for the community to step in and create additional projects that build upon it and provide common features that many plugin creators would like to use

#

also: one of cborium decoding or encoding (i dont remember which, probably decoding) was quite slow for large arrays of data. Since plugins are often used for extreme usecases where plain Typst does not suffice, it is also something to be aware of that the cbor round-trip does have a noticable overhead

flat bane
#

thanks for that tip! I assumed that CBOR's compactness would be an overall win, but maybe it isn't in this regard. When I Have Time™ I may investigate this.

ciborium is also used by Typst itself, so I guess it isn't horrible/can be made not horrible. But if there is another cbor implementation that results in smaller binaries, that may be valuable too

keen gorge
#

Perhaps someone here has an answer?

manic sluice
tough crown
#

maybe we can start a loose document to collect tips for plug-ins that everyone can contribute to. For instance I remember that using the format! macro increased the binary size by a lot! But in my case there was a much simpler way to achieve the same thing.

prime robin
#

This may have reduced depending on how long ago that was

#

Mara Bos did some optimization for the macro both in terms of runtime speed and binary size

tough crown
#

good to know! I will check it out some time

ornate condorBOT
prime robin
#

Hmm

#

I suppose I should contact Seb

sullen pivot
#

Did anyone try to message him directly on discord? I'm sure life just got in the way

prime robin
#

Not yet, but I think that'll probably suffice to see if he wants to keep maintaining the packages, or if they should be transfered to new maintainers/forked

prime robin
#

I think it's fair to try pinging first, I don't have him as a friend on discord so I can't DM him anyway.

#

@honest girder if you're available, could you take a look at the discussion above? There are some concerns about some of your packages maintenance status and we're wondering if you're up for transferring ownership?

sullen pivot
#

(Never mind, I misremembered)

ornate condorBOT
blazing rampart
#

Is anyone here at the RustWeek conference as well?

manic sluice
#

Oh right, Laurenz's talk is tomorrow
-# not there, btw 😅

prime robin
#

unfortunately not

inner kiln
#

Waos

#

Why wasn't this announced?

solid umbra
#

so i suppose it wouldnt be nice to just say "hey btw next week we're in the netherlands" and have ppl just wait forever for the video to release haha

toxic mauve
#

Clearly it's a conspiracy by big-Laurenz™ to keep us in the dark about exclusive Typst secretes 😢

inner kiln
#

Luckily I'll be able to watch it

#

Possibly

#

The stream starts at 3AM

#

But 10 AM until he talks

toxic mauve
#

Aren't Youtube streams immediately available as VODs / to watch earlier segments of still running streams? I guess you'd have to find the segment

inner kiln
#

Hmmmmm

#

Yeah I think so

#

But live is funnier

toxic mauve
#

the first person to find it can share a link with timecode for the rest of us 😄

inner kiln
#

People get crazy in the chats

sullen pivot
#

Only latex hecklers will be watching

inner kiln
#

I'll be asking when will Typst get shell escape

sullen pivot
inner kiln
#

One day

abstract needle
inner kiln
#

Who are you 🗣️

keen gorge
inner kiln
#

Oh 🗣️

ornate condorBOT
#

Hey there,

I'm a typst newbie. I created a small PDF guide with it. I loved everything about it - like markdown, but with more possibilities. And I get a clean pdf out of it, reliable. And I like the syntax, never got into LaTeX.

So kudos for creating it, huge respect! 👏

It would be perfect ...

... if it could be used with the latest version in npm-driven projects.

I found these issues already:

prime robin
#

@toxic mauve thanks for the quick answer, I was about to suggest typst.ts too

#

Perhaps we should just archive this or call for maintainers

#

Since it is it's own thing regardless

#

BTW I couldn't reach Sebastien yet, so I asked Pg if he can reach him, regarding the codly maintenance thing

honest girder
#

@prime robin Interesting profile picture lol. No, I do plan on updating it, I made a feature request a few months ago that's really needed for the next codly update and there's the question of time. I had lots of conferences and publications in the works at the same time which ended up eating all of my time for essentially a year. Add to that some mental health woes that had improved but have come back, I just don't have the time to work on it at the moment, but I am on holiday soon so I'm hopeful I'll find the time then. One thing would really be to have this issue implemented (I had done a prototype implementation, it's pretty straight forward, I don't mind opening a PR for it with the prototype impl): https://github.com/typst/typst/issues/6635

GitHub

Description This would add a raw.highlight function with the following (pseudo code) signature: #let raw.highlight(text: str, lang: str = "txt", syntaxes: ... = (), theme = none) -> Ar...

prime robin
# honest girder <@795342139860582400> Interesting profile picture lol. No, I do plan on updating...

Get well then! Would you mind commenting on https://github.com/orgs/typst-community/discussions/37 to let them know, or should I do it in your stead?

GitHub

Project Name codly Initial Author(s) Dherse Repository URL https://github.com/Dherse/codly Status Unmaintained Description The last commit was more than 9 months ago and there are no responses by t...