pawcoding / astro-loader-pocketbase

A content loader for Astro that uses the PocketBase API
https://www.npmjs.com/package/astro-loader-pocketbase
MIT License
16 stars 2 forks source link

Join forces #8

Closed gbouteiller closed 3 weeks ago

gbouteiller commented 1 month ago

Hello, I have recently created an Astro integration for PocketBase that also includes a simple loader. Maybe, it would be interesting to combine our libraries as it will be easier for users to have one complete solution for PocketBase and Astro. What do you think?

pawcoding commented 1 month ago

Hi there,

Thanks for reaching out! I actually came across your integration after publishing the loader. I really like the idea of having a full integration and breaking some of the limitations imposed by the Content Collections API.

I'm definitely open to the idea of collaboration, though I’ve been working on a similar integration with a slightly different approach. My idea is to split it into two separate packages: astro-loader-pocketbase and astro-integration-pocketbase, allowing users to choose the one that best fits their needs or use them together.

Here are a few key points I’m focusing on with my implementation:

I think combining efforts could be a great way to provide a complete solution for PocketBase and Astro users, and I’d love to discuss how we could make this work. Looking forward to hearing your thoughts!

pawcoding commented 3 weeks ago

A first alpha of the integration is now available.

You can checkout the repo at https://github.com/pawcoding/astro-integration-pocketbase or try it out using

npm install -D astro-integration-pocketbase
gbouteiller commented 3 weeks ago

Hi there,

Thanks for reaching out! I actually came across your integration after publishing the loader. I really like the idea of having a full integration and breaking some of the limitations imposed by the Content Collections API.

I'm definitely open to the idea of collaboration, though I’ve been working on a similar integration with a slightly different approach. My idea is to split it into two separate packages: astro-loader-pocketbase and astro-integration-pocketbase, allowing users to choose the one that best fits their needs or use them together.

Here are a few key points I’m focusing on with my implementation:

  • A toolbar that not only refreshes the content but also includes entity information. That's my current prototype: image
  • Support for server-side rendering, where PocketBase requests happen at runtime rather than during the build process (which differs from the approach of astro-loader-pocketbase). This is a feature I likely need for my own website, not wanting to rebuild for every content change
  • No build step for the library — just shipping pure TypeScript code like this package.
  • Keeping external dependencies to a minimum — ideally, the only dependencies will be astro itself and typescript.

I think combining efforts could be a great way to provide a complete solution for PocketBase and Astro users, and I’d love to discuss how we could make this work. Looking forward to hearing your thoughts!

Sorry for the late answer, I didn't have much time lately. Maybe we could talk privately on some platform?

pawcoding commented 3 weeks ago

Sure. You can reach out to me on my Discord or just via email.