Giter VIP home page Giter VIP logo

ixahmedxi / orbitkit Goto Github PK

View Code? Open in Web Editor NEW
562.0 6.0 24.0 2.53 MB

๐Ÿš€ Orbitkit is a monorepo starterkit aiming to be the foundation you build your next startup or big idea upon.

Home Page: https://orbitkit.dev

License: MIT License

JavaScript 2.05% CSS 0.33% TypeScript 73.79% MDX 22.14% Astro 1.68%
astro boilerplate drizzle-orm eslint javascript lucia-auth mintlify monorepo neondb nextjs

orbitkit's Introduction

Cover image

Note

Important

OrbitKit is built on top of a very opinionated tech stack, which might not work for every use case/business idea. I offer monorepo architecture consulting or even building something completely custom for you, if you are interested be sure to DM me on X/Twitter.

Features

  • Monorepo: OrbitKit is a monorepo, giving you the ability to scale your project with ease.
  • TypeScript: type-safety is a core principle of OrbitKit.
  • Astrojs: for a clean slate to build your marketing website on top.
  • Next.js: Web application is included, giving you a solid foundation for your product.
  • Mintlify: for a clean, fast, and easy to use platform to document your project.
  • Turborepo: caching builds so you never have to run the same command twice.
  • Drizzle ORM: providing a fully type-safe way to interact with your database.
  • Neon DB: serverless database, with autoscaling, branching, and bottomless storage.
  • Uploadthing: for an easy, type-safe way of handling file uploads.
  • Unkey: for a fast way of rate-limiting the web app.
  • Lucia auth: for authentication, giving you full flexibility and control over your user system.
  • Tailwind CSS: for styling, with Radix UI Colors for automatic light/dark mode handling.
  • Shadcn UI: full implementation in a dedicated package.
  • Storybook: to develop, test and visualize your components in isolation.
  • Github Actions: for CI/CD, with automatic DB branching & code checks.
  • next-themes: for easy light/dark mode handling in the web app.
  • Changesets: for managing versioning and changelogs.
  • tsup: for fast, easy to configure bundling of packages.
  • ts-reset: for the apps, improving the types for common JavaScript APIs.
  • ESLint, Prettier, Markdownlint, Cspell, Husky, Lint-staged and Commitlint for code quality.
  • ESM Only: because CJS should be left in the past.

And much more!

Documentation

To get started with OrbitKit, head over to the documentation website where you can find installation instructions and how to work with the codebase.

License

MIT License

Copyright (c) 2024 Ahmed Elsakaan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

orbitkit's People

Contributors

github-actions[bot] avatar imcorfitz avatar ixahmedxi avatar mahmoudgalalz avatar mikhailwahib avatar xmohamd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

orbitkit's Issues

Unable to start the project on Windows

Describe the bug
I'm getting an error: 'NODE_OPTIONS' is not recognized as an internal or external command while trying to start running the project on Windows by the command pnpm turbo dev

I think that is because of NODE_OPTIONS is not supported by Windows, instead Windows uses set NODE_OPTIONS ...

Screenshots
Screenshot 2024-04-07 020339

Migrate to v9 of ESLint and flat config

With the release of ESLint v9, we will need to move packages/config/eslint to flat config style configuration and also remove all .eslintrc.cjs files and replace them with the modern counterparts.

The only hurdle I see to this being successful is eslint-config-next but honestly I am tempted to remove it because a lot of the useful rules aren't even working anymore, and that way the react config can be both react in general specific so we don't have a next.js and a react specific eslint configs.

https://github.com/antfu/eslint-config should be a big inspiration for this migration, not the formatting with ESLint part because we use prettier for that but the code organisation and config of that package is absolute awesome and we should learn from this and implement our new version with this as the inspiration.

Resend + React Email integration

As a requirement for more authentication method (for example email + verification codes authentication) orbitkit needs to have some way of sending emails, Resend and it's library, react email, seems like the best option here.

We probably should have a packages/emails that will configure resend and export the resend instance to be used in apps as well as the email templates using react email. The package should be internal as that it will be used in the web application and we can utilise transpileModules in next.config.js to avoid the build step.

Steps to work:

  1. copy packages/core into new directory packages/emails
  2. do your thing with adding resend and react email
  3. add @orbitkit/emails to list of transpileModules in next.config.js file in apps/web
  4. profit

Stripe integration

We should create a packages/stripe package that integrates stripe functionality and let's the web application consume that to set up payment processing capabilities for the web application

create a packages/types folder for all d.ts files

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Move tsup configuration to use experimentalDts or use rollup

Currently, the build time for the ui package is very slow because of DTS generation of many entry points, this is a known issue with tsup and the way around it is to just increase the memory that it can use which is not great.

The options we have to tackle this are:

  • move to the new experimentalDts feature, note that I have tried this and it ended up giving me a lot of TS errors.
  • create our own custom packages/config/rollup where we define all bundling needs in the monorepo there.

Improve README.md documentation.

The README needs some work still for it to be more self explanatory and to the point, with it as wel we need a CONTRIBUTING.md file, SECURITY.md file as well and all of the markdown files docs you expect to have in an open source project.

Add knip integration

Knip is an awesome tool that let's you know about unused deps/exports in the codebase, unused exports shouldn't be a worry of ours when it comes to the ui package but otherwise it does apply.

Create all Github actions workflows needed

OrbitKit needs to also deliver github actions as part of the starterkit to help people have a solid foundation where their work is tested and checked, I have a few ideas for the kind of actions we need but here's what my mind thinks:

  • Obviously the normal lint, typecheck, build, checks (turborepo)
  • We need to do it so that a Neon DB branch is created for every new Pull Request, which gets consumed by the actions of that pull request and when the pull request is closed or merged, we need to run an action that will destroy that branch.
  • We also need the github action to integrate with chromatic/storybook and mintlify
  • I am not sure if we will need to handle vercel deployment from the github actions, because I was thinking it would actually maybe be a good idea for every pull request to have two db branches on neon, one is used for the github actions to run the e2e tests on top...etc and another one is created from the neon vercel integration for the preview deployment that way you don't get e2e test specific data into your preview deployment, further increasing accuracy between both preview and production deployment.
  • We can put in templates for slack/discord messaging through the github actions maybe.

Would love to hear more thoughts about this as that I'm not the most knowledgable person when it comes to github actions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.