datasette / datasette-enrichments-quickjs

Enrich data with a custom JavaScript function
Apache License 2.0
1 stars 0 forks source link

Initial plugin design #1

Closed simonw closed 5 months ago

simonw commented 5 months ago

It's going to use https://pypi.org/project/quickjs/ to evaluate JavaScript, with a time limit.

simonw commented 5 months ago

I got a prototype working! UI looks like this:

CleanShot 2024-02-09 at 09 20 03@2x

So it detects invalid JavaScript. If the function IS valid it runs and works.

simonw commented 5 months ago

Currently running this in the main thread with a time limit. Would be good to have this run in a thread instead.

simonw commented 5 months ago

I can ship an alpha of this if I write some documentation and tests.

simonw commented 5 months ago

Shipped: https://pypi.org/project/datasette-enrichments-quickjs/