primate
primate copied to clipboard
Polymorphic development platform
Primate
Polymorphic development platform. To start read guide.
Why use Primate?
Framework Independence
Primate stands apart as a framework-agnostic tool, allowing you to seamlessly integrate and start coding within any major framework, eliminating the constraints of being tied to specific options like Nuxt, Next, or others.
Frameworks We Support
- Svelte
- React
- Solid
- Vue
- Angular
- Web Components
- HTMX
- Handlebars
- Marko
Databases We Support
- SQLite
- MongoDB
- Postgresql
- MySQL
- SurrealDB
Languages We Support
- JavaScript
- TypeScript
- Golang
- Python
- Ruby
Packages
| Package | Description |
|---|---|
| primate | Primate framework |
| create-primate | GUI for creating Primate apps |
| @primate/frontend | Frontend frameworks |
| @primate/store | Data store |
| @primate/types | Runtime types |
| @primate/session | User sessions |
| @primate/i18n | Internationalization |
| @primate/binding | Other backend languages |
| website | Primate website |
Comparison with other frameworks
| Feature | Next | Nuxt | SvelteKit | Primate |
|---|---|---|---|---|
| Backend | JS, TS | JS, TS | JS, TS | JS, TS, Go, Python, Ruby |
| Frontend | React | Vue | Svelte | React, Vue, Svelte, Solid, Angular, HTMX, Handlebars, WC |
| Native runtime | Node | Node | Node | Node, Deno, Bun |
| I18N | ✓ | ✓ | ✗ | @primate/i18n |
| Head Component | ✓ | ✓ | ✗ | React, Svelte, Solid |
| Route guards | ✗ | ✗ | ✗ | ✓ |
| Recursive layouts | ✓ | ✓ | ✓ | ✓ |
| Data stores/ORM | ✗ | ✗ | ✗ | SQLite, PostgreSQL, MongoDB, SurrealDb |
| WebSockets | ✗ | ✗ | ✗ | ✓ |
| Server-sent events | ✗ | ✗ | ✗ | ✓ |
| User sessions | ✗ | ✓ | ✗ | @primate/session |
Resources
- Website: https://primatejs.com
- IRC: Join the
#primatechannel onirc.libera.chat - Reddit: r/primatejs
- Twitter (X): @primatejs
- Blog: https://primatejs.com/blog
- StackOverflow: https://stackoverflow.com/questions/tagged/primate
Example Applications
- hynt.us - a link shortener app using SurrealDB and Svelte
- starter app - demos most of the features of Primate
License
MIT
Contributing
By contributing to Primate, you agree that your contributions will be licensed under its MIT license.