Ark resolver in Node JS or Python

38 views
Skip to first unread message

Todd Fine

unread,
Mar 8, 2022, 7:45:01 AM3/8/22
to arks-...@googlegroups.com
Greetings,

I was trying to create a quick ark resolver and metadata returner in NodeJS or Python, with common routing software like Express, Fastify, and Flask, but I found that the colon at the end of the segment ("ark:/") followed by a slash in the ark standard created a lot of problems that I couldn't easily resolve.

Since such frameworks are so popular, I was wondering if anyone had implemented a solution in either of them that I could look at.

Best wishes,
Todd

Donny Winston

unread,
Mar 8, 2022, 7:59:02 AM3/8/22
to arks-...@googlegroups.com
Hi Todd,

I used Python (via the FastAPI framework) to implement an ark resolver and decided to 301 Redirect to the requested path without the slash after the colon. Implementation details: <https://github.com/polyneme/ns/blob/d8a8fbadf478fe62590b927afbd3c093d5c497f5/xyz_polyneme_ns/main.py#L845>.

This seemed reasonable to me as I interpreted the “colon slash” form to be deprecated (but still required to be supported by implementations) in the draft ark spec.

Best,
Donny
--
You received this message because you are subscribed to the Google Groups ARKs group. To post to this group, send email to arks-...@googlegroups.com. To unsubscribe from this group, send email to arks-forum+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/arks-forum?hl=en
---
You received this message because you are subscribed to the Google Groups "ARKs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arks-forum+...@googlegroups.com.

--
Donny Winston, PhD (he/him/his) | Polyneme LLC

If I've emailed you, I'd love to speak with you.
Schedule a meeting (15min+): https://meet.polyneme.xyz

Reply all
Reply to author
Forward
0 new messages