Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] allow to start server using Node.js SDK #791

Open
punkpeye opened this issue Dec 4, 2024 · 4 comments
Open

[Feature] allow to start server using Node.js SDK #791

punkpeye opened this issue Dec 4, 2024 · 4 comments
Labels
enhancement New feature or request triage

Comments

@punkpeye
Copy link

punkpeye commented Dec 4, 2024

What Would You Like to See with the Gateway?

I would like to be able to start the server using Node.js SDK.

This would require exposing the script that's currently used as a bin entry point.

Context for your Request

No response

Your Twitter/LinkedIn

No response

@punkpeye punkpeye added the enhancement New feature or request label Dec 4, 2024
@github-actions github-actions bot added the triage label Dec 4, 2024
@narengogi
Copy link
Collaborator

hey @punkpeye you can do npx @portkey-ai/gateway

@punkpeye
Copy link
Author

I mean using node.js SDK.

like,

import {Gateway} from '@portkey-ai/gateway';

Gateway.start(...)

@roh26it
Copy link
Collaborator

roh26it commented Dec 19, 2024

Hi @punkpeye We've seen most use cases of the gateway being run in parallel to your app, but this is definitely interesting.

Can you share why you'd want to do this?

Also, happy to review a PR if you can help with this!

@punkpeye
Copy link
Author

I like to run my services as simple as possible. so far I've been able to cram every HTTP service into a single monolith, so that's the intention here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

3 participants