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

Add support for Stormkit #1463

Open
svedova opened this issue Sep 15, 2023 · 11 comments
Open

Add support for Stormkit #1463

svedova opened this issue Sep 15, 2023 · 11 comments
Labels
enhancement New feature or request.

Comments

@svedova
Copy link

svedova commented Sep 15, 2023

What is the feature you are proposing?

Hi 🙌🏻

Founder of Stormkit here.

We are a platform as a service for Javascript applications. We support serverless functions and static websites.

Recently, I was playing with Hono and when I run npm create hono@latest my-app I receive the following options:

  • aws-lambda
  • bun
  • cloudflare-pages
  • cloudflare-workers
  • deno
  • fastly
  • lagon
  • lambda-edge
  • netlify
  • nextjs

Would it be possible to include Stormkit here? Our cloud platform runs on AWS Lambdas.

@svedova svedova added the enhancement New feature or request. label Sep 15, 2023
@yusukebe
Copy link
Member

Hi @svedova

I'll try the Stormkit later, but what runtime can the Hono app run on? Node.js? If the answer is "Node.js", we can just use the nodejs template so we don't have to.

@svedova
Copy link
Author

svedova commented Sep 15, 2023

Hey @yusukebe 👋

Thanks for your reply 🙏

Stormkit currently runs on Node.js but we're adding support for Bun as well. I'm working on it as we speak.

We have a free-trial period but if you need a longer access to test it please let me know (either through Twitter or mail -- this information is accessible through my profile), I can give you longer access 👍

@aerophobic
Copy link

This would be a great addition 🙂

@yusukebe
Copy link
Member

Even if it supports Bun, we can just use the bun template.

If we need runtime or platform-specific entry points, we can create templates for them, but for a typical project, there is no need to provide them.

@svedova
Copy link
Author

svedova commented Sep 16, 2023

Even if it supports Bun, we can just use the bun template.

If we need runtime or platform-specific entry points, we can create templates for them, but for a typical project, there is no need to provide them.

@yusukebe just to understand this better, if a user uses bun and wants to host on Stormkit, which template do they select? bun, aws-lambda or lambda-edge?

@yusukebe
Copy link
Member

@svedova

In that case, bun.

@svedova
Copy link
Author

svedova commented Sep 16, 2023

@svedova

In that case, bun.

I'll try this and let you know how it goes 👍 Thanks for your help.

@svedova
Copy link
Author

svedova commented Sep 28, 2023

@yusukebe do you have an official starter template for hono? Something like https://github.com/stormkit-dev/sample-project.

@yusukebe
Copy link
Member

@svedova

Does that mean putting it somewhere in a repository managed by Hono? We cannot do that because it would be the same as a typical Node.js or Bun template.

@eldemcan
Copy link

@yusukebe I think what @svedova is trying to say is it possible to have option for Stormkit like you have with Vercel, Netlify and Cloudflare that allows users to generate code that aligns with Stormkit's functions API interface. I belive it will be just like another adapter.

// api/index.ts
import http from "http";

export default (req: http.IncomingMessage, res: http.ServerResponse) => {
  res.write("Function endpoint: /api");
  res.end();
};

Stormkit is using AWS Lambda. They don't have long running process like Nodejs

@yusukebe
Copy link
Member

yusukebe commented Sep 29, 2023

@eldemcan

Thanks for the explanation. I did not know about the functions. Certainly, in that case, we should make an adapter.

However, I'm really curious because not many people are using Stormkit yet. Making an adapter and a starter kit means that it takes more manpower to maintain them. You may say you will do it yourselves, but it is mainly I who will actually do it. So we have to carefully decide whether to create the adaptor and include the starter kit in the official project, and considering this, I don't think it is worth including it now.

If you want to have an adapter or a starter kit, I think the first thing you should do is to make it yourself and publish it in your own project.

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

No branches or pull requests

4 participants