···6677made with svelte, tailwind.
8899-## Selfhosting with cloudflare workers
99+## Selfhosting
10101111-- fork this repo
1212-- create a cloudflare worker application and connect it to your fork
1313-- change the vars in `wrangler.jsonc`
1111+See [docs/Selfhosting](./docs/Selfhosting.md).
14121515-```json
1616- "vars": {
1717- "PUBLIC_HANDLE": "your-bluesky-handle",
1818- "PUBLIC_IS_SELFHOSTED": "true",
1919- "PUBLIC_DOMAIN": "https://your-cloudflare-worker-or-custom-domain.com"
2020- }
2121-```
1313+## Making Custom cards
22142323-DONE :) your blento should be live after a minute or two at `your-cloudflare-worker-or-custom-domain.com` and you can edit it by signing in with your bluesky account at `your-cloudflare-worker-or-custom-domain.com/edit`1515+See [docs/CustomCards](./docs/CustomCards.md)
+21
docs/CustomCards.md
···11+# Custom Cards
22+33+WORK IN PROGRESS, EARLY STATE, MIGHT CHANGE.
44+55+see `src/lib/cards` for how cards are made.
66+77+Current card definition:
88+99+```ts
1010+export type CardDefinition = {
1111+ type: string;
1212+ contentComponent: Component<ContentComponentProps>; // this is what your card shows
1313+1414+ editingContentComponent?: Component<ContentComponentProps>; // if this is not given, defaults to showing contentComponent in edit mode too
1515+ creationModalComponent?: Component<CreationModalComponentProps>; // if this is not given will just add a card
1616+1717+ createNew?: (item: Item) => void; // this is run before the card is added, set some settings here
1818+1919+ sidebarComponent?: Component<SidebarComponentProps>; // this is the button that will be shown in the sidebar to add your card
2020+};
2121+```
+15
docs/Selfhosting.md
···11+# Selfhosting with cloudflare workers
22+33+- fork this repo
44+- create a cloudflare worker application and connect it to your fork
55+- change the vars in `wrangler.jsonc` (including https:// in the PUBLIC_DOMAIN var!)
66+77+```json
88+ "vars": {
99+ "PUBLIC_HANDLE": "your-bluesky-handle",
1010+ "PUBLIC_IS_SELFHOSTED": "true",
1111+ "PUBLIC_DOMAIN": "https://your-cloudflare-worker-or-custom-domain.com"
1212+ }
1313+```
1414+1515+DONE :) your blento should be live after a minute or two at `your-cloudflare-worker-or-custom-domain.com` and you can edit it by signing in with your bluesky account at `your-cloudflare-worker-or-custom-domain.com/edit`