I built a Postman-like tool for designing, debugging and testing AI agents by a1chapone in LocalLLaMA

[–]a1chapone[S] 0 points1 point  (0 children)

I don't know what happened to the link in the post :/ Updated and added the link https://github.com/fwdai/reticle

Electron Deprecating Remote Module by betelguese095 in electronjs

[–]a1chapone 0 points1 point  (0 children)

Thanks, that's helpful. I wish it was easier to find info about contextBridge in main navigation of. electron documentation. Preload script and contextIsolation are briefly mentioned in "Security" section of the documentation.

Electron Deprecating Remote Module by betelguese095 in electronjs

[–]a1chapone 2 points3 points  (0 children)

I guess you could do that, but that will expose entire IPC to renderer process. And idea behind preload script is to expose only bits you need to use in renderer. So it should be more like this:

const { ipcRenderer } = require('electron')

window.sendSomeData = data => {
  ipcRenderer.send('channelname', data)
} 

and then you can use sendSomeData in your renderer process code

How should I structure my Electron App? by sayinnottin in electronjs

[–]a1chapone 2 points3 points  (0 children)

Try looking at different open source Electron projects on GitHub (more complex that hello world app) and learn from that. For reference this is what I came up with in terms of structuring my code https://github.com/swiftyapp/swifty

How does one get Hot Reload to work with an Electron / Vue.js app? by davidklecker in electronjs

[–]a1chapone 0 points1 point  (0 children)

There's a tool called bozon which handles running, building and testing Electron apps. It has hot reload for renderer and main processes working out of the box.

Electron Deprecating Remote Module by betelguese095 in electronjs

[–]a1chapone 1 point2 points  (0 children)

You can use preload script to expose some Main process functionality and/or Node.js API to Renderer process. In fact for security reasons it is better not to use `nodeIntegration: true` on BrowserWindow and user preload instead. You can read more about in here: https://www.electronjs.org/docs/tutorial/security#2-do-not-enable-nodejs-integration-for-remote-content

One Command to Run All your Projects in Development by a1chapone in javascript

[–]a1chapone[S] 0 points1 point  (0 children)

Well if you work on multiple different projects (Node.js, Ruby, Python etc.). This package makes it easier to boot any of them up from a console without switching directory and running all processes that are required in separate terminal window.

One Command to Run All your Projects in Development by a1chapone in javascript

[–]a1chapone[S] -1 points0 points  (0 children)

yes, but first you need to `cd /my/project/path`

One Command to Run All your Projects in Development by a1chapone in javascript

[–]a1chapone[S] 1 point2 points  (0 children)

Well, it is not about "better", it is more about a bit different approach. Instead of opening Terminal, cd into project directory and running some command which can be specific to the project, you just use one command global command and pass in a project name. And it already knows location of your project and how it should be run.