Packages
The Sodacore framework is written as a bunch of packages, which splits the code up so you only have to install what you need.
As of right now there are a range of packages dealing with i18n, HTTP, WebSockets, Prisma, Discord and more.
Available Packages
Package | Description |
---|---|
@sodacore/registry | This package provides a centralized registry for all Sodacore services and components. |
@sodacore/di | This package provides a dependency injection system across the system using a global container (the registry). |
@sodacore/core | This package provides the main application logic and entry point alongside all of the core features. |
@sodacore/http | This package provides a HTTP server implementation using decorators for routing with some sensible defaults. |
@sodacore/ws | This package provides a WebSocket server implementation that attaches to the HTTP server. |
@sodacore/discord | This package provides a programmable Discord bot, and built-in OAuth2 features for SSO with Discord. |
@sodacore/prisma | This package provides a simple Prisma client wrapper for database access that can be injected. |
@sodacore/i18n | This package provides support for translations and automatic transformers for the HTTP client using the user's accepted locale. |
@sodacore/cli | This package provides a sodacore command line interface for managing and interacting with Sodacore applications. |
@sodacore/create | This package provides a create command for generating new Sodacore applications and components. |