primate
primate copied to clipboard
Polymorphic development platform
Isn't really useful and can create weird bugs, e.g. `{ routes: "components" }`
* [ ] react, MDX (https://github.com/mdx-js/mdx) * [ ] svelte, mdsvex (https://github.com/pngwn/mdsvex) * [ ] vue ? Own module (`@primate/frontend/mdx`) or part of the modules themselves `react({ markdown: true })`?
Support for * Tailwind (mostly integrating into the build system, e.g.): ```js export default { content: ["./components/**/*.svelte"], theme: { extend: {}, }, plugins: [], } ``` And then programmatically running...
* redis / valkey * https://aws.amazon.com/dynamodb/ * [https://developers.cloudflare.com/kv](https://developers.cloudflare.com/kv/get-started/#interact-with-your-kv-namespace-via-a-worker)
In a store file, say `stores/Mailchimp.js`: ```js import mail from "@primate/mail"; import env from "rcompat/env"; export default mail({ provider: "mailchimp", secret: env.MAILCHIMP_API_KEY, options: { server: env.MAILCHIMP_SERVER_PREFIX, }, }); ``` Then...
``` import PouchDB from 'pouchdb'; import pouchdbAdapterLeveldb from 'pouchdb-adapter-leveldb'; PouchDB.plugin(pouchdbAdapterLeveldb); // Create a database instance and specify the storage path const db = new PouchDB('my_database', {adapter: 'leveldb', prefix: './data/'}); //...
Changing a react component's style requires a full app restart to show in the browser
If `routes` only contains non-JS files, app depth, which is essential for layout depth calculation, isn't calculated correctly. for the sake of this fix, `@rcompat/fs/router` might need to be extended...
* [ ] Go * [ ] Python * [ ] Ruby * [ ] Grain