Why ?

If

remult
is so good, why do we need firstly?

  • Firstly, because is not replacing it, it's just some helpers to seepdrun web apps. An app with firstly has as a peer dependency remult and sveltekit and it's not a replacement for them! So knowing remult is needed (find here the
    SvelteKit Tutorial
    ). In a few places, you will still:
import { repo } from 'remult'
ts
  • Firstly, we can iterate on a few ideas that will eventually fall into remult if they are good enough, and not only applicable to sveltekit. One good example is Modules.
// today in remult & sveltekit
export const _api = remultSveltekit({
  entities: [Task],
  controllers: [TaskController]
})

// today in firslty & sveltekit
export const _api = firstly({
  modules: [
    {
      name: "module-task",
      entities: [Task],
      controllers: [TaskController]
    }
  ]
})
ts

We belive that Module Development Driven (MDD 😎) is a good idea as we can easily reuse module in different projects. Module can also be developped by the community and grow the ecosystem around remult. Imagine: sharing entities, controllers, and even ui in ONE import.

You want a login/password auth in your app, here is the code you need in firstly today:

export const remultApi = firstly({
  modules: [
    auth({
      password: {}
    })
  ]
})
ts

YES, THAT'S IT!!! 🎉

You can find a lot of options in the

auth module
.

  • Firstly, we provide stores (one day runes) that wrap remult repo to make it easy to work with. Check out storeList, storeItem, cellBuildor... and more... (Also more to come on the doc!)