mediar-ai / screenpipe

rewind.ai x cursor.com = your AI assistant that has all the context. 24/7 screen & voice recording for the age of super intelligence. get your data ready or be left behind
https://screenpi.pe
MIT License
10.15k stars 602 forks source link

[bounty] switch pipes engine from deno to bun #582

Closed louis030195 closed 3 weeks ago

louis030195 commented 1 month ago

definition of done:

why? nextjs does not work well in deno, too many issues, not many upsides (for example https://github.com/vercel/ai-chatbot was crashing in deno when asking AI questions, e.g. SSE not supported or something)

/bounty 100

linear[bot] commented 1 month ago

MED-237 [bounty] switch pipes engine from deno to bun

algora-pbc[bot] commented 1 month ago

💎 $100 bounty • Screenpi.pe

Steps to solve:

  1. Start working: Comment /attempt #582 with your implementation plan
  2. Submit work: Create a pull request including /claim #582 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to mediar-ai/screenpipe!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🟢 @kumarvivek1752 Oct 26, 2024, 10:11:47 AM #589
🟢 @Abiji-2020 Oct 26, 2024, 2:25:06 PM WIP
kumarvivek1752 commented 1 month ago

/attempt #582

Abiji-2020 commented 1 month ago

https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-core/src/pipes.rs

In this we have to implement the bun right from deno

Abiji-2020 commented 1 month ago

/attempt #582

Algora profile Completed bounties Tech Active attempts Options
@Abiji-2020 2 bounties from 2 projects
C++, Java,
TypeScript & more
Cancel attempt
kumarvivek1752 commented 3 weeks ago

@louis030195 I added configuration for Bun, and I'm testing the plugin with Bun.

demo bunfig.toml:

[dependencies]
screenpipe = { url = "https://raw.githubusercontent.com/mediar-ai/screenpipe/main/screenpipe-js/main.ts" }

[imports]
fs = "node:fs"
screenpipe = "https://raw.githubusercontent.com/mediar-ai/screenpipe/main/screenpipe-js/main.ts"

pipe.ts:

import {
  queryScreenpipe,
  loadPipeConfig,
  ContentItem,
  extractJsonFromLlmResponse,
} from "screenpipe";

console.log("Loading pipe config:", loadPipeConfig());
console.log("Plugin is running");

when I try to use screenpipe package

➜ screenpipe git:(main) bun run --allow-read --allow-write --allow-env --allow-net --allow-run --allow-sys .\examples\typescript\pipe-meeting-summary-by-email\pipe.ts
error: Cannot find package "screenpipe" from "C:\Users\kumar\devlopment\screenpipe\examples\typescript\pipe-meeting-summary-by-email\pipe.ts"

Bun v1.1.29 (Windows x64)
➜ screenpipe git:(main) ✗

am I missing something?

louis030195 commented 3 weeks ago

i solved this issue yesterday, sorry was too slow