forked from didirus/AstralRinth
92ec46147bc8793169b41bae7cfe15b3596cb1ca
Omorphia
The Modrinth component library, in Svelte
Read the documentation at omorphia.modrinth.com.
Requires Node v16.5+.
Developing
The library lives in the package/ folder, and the documentation lives in the docs/ folder.
pnpm install # Install dependencies
pnpm dev # Run dev server
Adding new components
Replace
ComponentNamewith your component name in the steps below
-
Create a
ComponentName.sveltefile insrc/components -
Add an export for your component in ./src/index.ts
export { default as ComponentName } from './components/ComponentName.svelte' -
Create a
ComponentName.mdfile for documentation indocs/routes/components -
Add an example of your component in your
ComponentName.mdfile, like so:```svelte example raised <script lang="ts"> import { ComponentName } from 'omorphia' </script> <ComponentName /> ```
Packaging
pnpm package
Building
To build the documentation site, run:
pnpm build
Description
A modern launcher based on Modrinth. No built-in/external advertising or telemetry. Fully compatible with the original Modrinth without broken mechanics.
Languages
Rust
45.9%
Vue
37.2%
TypeScript
11.3%
HTML
2.6%
JavaScript
1.5%
Other
1.4%