Skip to content

Commit 52dbe8f

Browse files
committed
Merge branch 'main' into feat/ipfs-videos
2 parents 0d85d8e + 6e38b0c commit 52dbe8f

File tree

29 files changed

+440
-779
lines changed

29 files changed

+440
-779
lines changed

.changeset/eight-terms-burn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@miniapps/image-render": patch
3+
---
4+
5+
fix: match image embeds based on file extension in url

.changeset/itchy-badgers-yawn.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@mod-protocol/miniapp-registry": patch
3+
"@mod-protocol/react-ui-shadcn": patch
4+
"web": patch
5+
"@mod-protocol/react-editor": patch
6+
"@mod-protocol/react": patch
7+
"@mod-protocol/core": patch
8+
---
9+
10+
feat: npm readiness

.changeset/soft-planes-pump.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@mod-protocol/react-ui-shadcn": patch
3+
"api": patch
4+
---
5+
6+
use pro microlink api to fix prod rate limits and prevent buttons from submitting forms

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ All PRs with meaningful changes should have a changeset which is a short descrip
3737

3838
## Add a new changeset
3939

40-
changeset
40+
yarn changeset
4141

4242
## Create new versions of packages
4343

44-
changeset version
44+
yarn changeset version
4545

4646
## Publish all changed packages to npm
4747

48-
changeset publish
48+
yarn changeset publish

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"start": "next start -p 3002"
99
},
1010
"dependencies": {
11-
"next": "^13.0.6",
12-
"nextra": "latest",
13-
"nextra-theme-docs": "latest",
11+
"next": "^13.5.6",
12+
"nextra": "^2.13.2",
13+
"nextra-theme-docs": "^2.13.2",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0"
1616
},

docs/public/og-image.png

198 KB
Loading

docs/theme.config.tsx

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,36 @@ const config: DocsThemeConfig = {
1212
/>
1313
),
1414
project: {
15-
link: "https://github.com/mod-protocol/mod-monorepo",
15+
link: "https://github.com/mod-protocol/mod",
1616
},
17-
docsRepositoryBase: "https://github.com/mod-protocol/mod-monorepo/docs",
17+
docsRepositoryBase: "https://github.com/mod-protocol/mod/docs",
1818
footer: {
1919
text: "Mod Protocol",
2020
},
2121
useNextSeoProps() {
2222
return {
23-
titleTemplate: "%s - Mod Protocol",
23+
titleTemplate: "%s - Mod Protocol Docs",
24+
defaultTitle: "Mod Protocol Docs",
25+
description:
26+
"A protocol and set of open source libraries for decentralized social Mini-apps",
27+
openGraph: {
28+
titleTemplate: "%s - Mod Protocol Docs",
29+
description:
30+
"A protocol and set of open source libraries for decentralized social Mini-apps",
31+
images: [
32+
{
33+
url: "https://docs.modprotocol.org/og-image.png",
34+
width: 1200,
35+
height: 630,
36+
alt: "Mod Protocol Docs",
37+
type: "image/png",
38+
},
39+
],
40+
},
41+
twitter: {
42+
handle: "@modprotocol",
43+
cardType: "summary_large_image",
44+
},
2445
};
2546
},
2647
};

examples/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@mod-protocol/core": "^0.0.1",
1313
"chatgpt": "^5.2.5",
14-
"next": "^13.4.1",
14+
"next": "^13.5.6",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0"
1717
},

examples/api/src/app/api/farcaster/channels/channels.json

Lines changed: 154 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
"channel_id": "farcaster"
3131
},
3232
{
33-
"name": "/dev",
33+
"name": "dev",
3434
"parent_url": "chain://eip155:1/erc721:0x7dd4e31f1530ac682c8ea4d8016e95773e08d8b0",
35-
"image": "https://i.seadn.io/gcs/files/b110857d29c31ab3a379ab50e2fdcf54.png?auto=format&dpr=1&w=512",
35+
"image": "https://ipfs.decentralized-content.com/ipfs/bafkreigbei45ni5zsliszzeivotgee5auj2ykkh6zrzjwvm4izviidusny",
3636
"channel_id": "farcaster-dev"
3737
},
3838
{
@@ -326,7 +326,7 @@
326326
{
327327
"name": "Nouns",
328328
"parent_url": "chain://eip155:1/erc721:0x9c8ff314c9bc7f6e59a9d9225fb22946427edc03",
329-
"image": "https://i.seadn.io/gae/vfYB4RarIqixy2-wyfP4lIdK6fsOT8uNrmKxvYCJdjdRwAMj2ZjC2zTSxL-YKky0s-4Pb6eML7ze3Ouj54HrpUlfSWx52xF_ZK2TYw?w=500&auto=format",
329+
"image": "https://warpcast.com/~/channel-images/nouns.png",
330330
"channel_id": "nouns"
331331
},
332332
{
@@ -336,9 +336,9 @@
336336
"channel_id": "orange-dao"
337337
},
338338
{
339-
"name": "Zorbs",
339+
"name": "Zora",
340340
"parent_url": "chain://eip155:1/erc721:0xca21d4228cdcc68d4e23807e5e370c07577dd152",
341-
"image": "https://i.seadn.io/gae/O2J_GV66yHfYeHIl-ASFknUqJ1qPB-W1D6xB2Xk-Po9GVE5Te9hkBSPsjCVTTHzq1QYgLppo4LcDtHiV3pxeSfB1b9_fP5pGbiRuUg?auto=format&dpr=1&w=256",
341+
"image": "https://warpcast.com/~/channel-images/zora.png",
342342
"channel_id": "zorbs"
343343
},
344344
{
@@ -426,69 +426,195 @@
426426
"channel_id": "rust"
427427
},
428428
{
429+
"name": "Nature",
429430
"parent_url": "chain://eip155:7777777/erc721:0xf6a7d848603aff875e4f35025e5c568679ccc17c",
430-
"channel_id": "nature",
431431
"image": "https://ipfs.decentralized-content.com/ipfs/bafybeia4rvvtf5wulljp6ogdbbsjtflvuw5gcfwbugikwtfom2rq5c65a4",
432-
"name": "Nature"
432+
"channel_id": "nature"
433433
},
434434
{
435+
"name": "Jobs",
435436
"parent_url": "chain://eip155:8453/erc721:0x5fcd7a54fdf08c8dbcb969bc1f021ae87affafa8",
436-
"channel_id": "jobs",
437437
"image": "https://ipfs.decentralized-content.com/ipfs/bafkreie2uut3t5enmn6vtqainrmzwwy47evihl4dmxjqofwwjvqk6snbsu",
438-
"name": "Jobs"
438+
"channel_id": "jobs"
439439
},
440440
{
441+
"name": "Apple",
441442
"parent_url": "https://www.apple.com",
442-
"channel_id": "apple",
443443
"image": "https://warpcast.com/~/channel-images/apple.png",
444-
"name": "Apple"
444+
"channel_id": "apple"
445445
},
446446
{
447+
"name": "Network States",
447448
"parent_url": "https://thenetworkstate.com",
448-
"channel_id": "network-states",
449449
"image": "https://warpcast.com/~/channel-images/network-states.png",
450-
"name": "Network States"
450+
"channel_id": "network-states"
451451
},
452452
{
453+
"name": "Base",
453454
"parent_url": "https://onchainsummer.xyz",
454-
"channel_id": "onchain-summer",
455-
"image": "https://warpcast.com/~/channel-images/onchain-summer.png",
456-
"name": "Onchain Summer"
455+
"image": "https://warpcast.com/~/channel-images/base.png",
456+
"channel_id": "onchain-summer"
457457
},
458458
{
459+
"name": "RxE",
459460
"parent_url": "chain://eip155:7777777/erc721:0x3312a43f15a9a9a1c6b7ee055e4b71041c2613e6",
460-
"channel_id": "rust-x-ethereum",
461461
"image": "https://warpcast.com/~/channel-images/rex.png",
462-
"name": "RxE"
462+
"channel_id": "rust-x-ethereum"
463463
},
464464
{
465+
"name": "farcastHER",
465466
"parent_url": "chain://eip155:8453/erc721:0x1e5115dc60cdab3c1263a945201cb509ea7a8340",
466-
"channel_id": "farcasther",
467467
"image": "https://ipfs.decentralized-content.com/ipfs/bafkreifastwejsqeht6iwljuv2d5yqaabvkayktzfidxnb3nq4w653slai",
468-
"name": "farcastHER"
468+
"channel_id": "farcasther"
469469
},
470470
{
471+
"name": "Devconnect",
471472
"parent_url": "https://devconnect.org",
472-
"channel_id": "devconnect",
473473
"image": "https://warpcast.com/~/channel-images/devconnect.jpg",
474-
"name": "Devconnect"
474+
"channel_id": "devconnect"
475475
},
476476
{
477+
"name": "Cricket",
477478
"parent_url": "https://www.cricketworldcup.com",
478-
"channel_id": "cricket",
479479
"image": "https://warpcast.com/~/channel-images/cricket.png",
480-
"name": "Cricket"
480+
"channel_id": "cricket"
481481
},
482482
{
483+
"name": "Rugby",
483484
"parent_url": "https://www.rugbyworldcup.com",
484-
"channel_id": "rugby",
485485
"image": "https://warpcast.com/~/channel-images/rugby.png",
486-
"name": "Rugby"
486+
"channel_id": "rugby"
487487
},
488488
{
489+
"name": "Bright Moments",
489490
"parent_url": "https://www.brightmoments.io",
490-
"channel_id": "bright-moments",
491491
"image": "https://warpcast.com/~/channel-images/bright-moments.jpg",
492-
"name": "Bright Moments"
492+
"channel_id": "bright-moments"
493+
},
494+
{
495+
"name": "Founders",
496+
"parent_url": "https://farcaster.group/founders",
497+
"image": "https://warpcast.com/~/channel-images/founders.png",
498+
"channel_id": "founders"
499+
},
500+
{
501+
"name": "PoolTogether",
502+
"parent_url": "https://pooltogether.com",
503+
"image": "https://warpcast.com/~/channel-images/pool-together.png",
504+
"channel_id": "pool-together"
505+
},
506+
{
507+
"name": "Viem",
508+
"parent_url": "https://viem.sh",
509+
"image": "https://warpcast.com/~/channel-images/viem.png",
510+
"channel_id": "viem"
511+
},
512+
{
513+
"name": "Data",
514+
"parent_url": "https://farcaster.group/data",
515+
"image": "https://warpcast.com/~/channel-images/data.png",
516+
"channel_id": "data"
517+
},
518+
{
519+
"name": "EthStaker",
520+
"parent_url": "https://ethstaker.cc",
521+
"image": "https://warpcast.com/~/channel-images/eth-staker.png",
522+
"channel_id": "eth-staker"
523+
},
524+
{
525+
"name": "ENS",
526+
"parent_url": "https://ens.domains",
527+
"image": "https://warpcast.com/~/channel-images/ens.png",
528+
"channel_id": "ens"
529+
},
530+
{
531+
"name": "Product",
532+
"parent_url": "https://farcaster.group/product",
533+
"image": "https://warpcast.com/~/channel-images/product.png",
534+
"channel_id": "product"
535+
},
536+
{
537+
"name": "Basepaint",
538+
"parent_url": "https://basepaint.xyz",
539+
"image": "https://warpcast.com/~/channel-images/basepaint.png",
540+
"channel_id": "basepaint"
541+
},
542+
{
543+
"name": "Onchain Gaming",
544+
"parent_url": "https://farcaster.group/onchain-gaming",
545+
"image": "https://warpcast.com/~/channel-images/onchain-gaming.png",
546+
"channel_id": "onchain-gaming"
547+
},
548+
{
549+
"name": "Gitcoin",
550+
"parent_url": "https://www.gitcoin.co",
551+
"image": "https://warpcast.com/~/channel-images/gitcoin.jpg",
552+
"channel_id": "gitcoin"
553+
},
554+
{
555+
"name": "Gnars",
556+
"parent_url": "chain://eip155:1/erc721:0x558bfff0d583416f7c4e380625c7865821b8e95c",
557+
"image": "https://i.seadn.io/gcs/files/18a26500ca1bb1ec29811ae2af6ac19e.png?auto=format&dpr=1&w=512",
558+
"channel_id": "gnars"
559+
},
560+
{
561+
"name": "Recommend",
562+
"parent_url": "https://farcaster.group/recommend",
563+
"image": "https://warpcast.com/~/channel-images/recommendations.png",
564+
"channel_id": "recommendations"
565+
},
566+
{
567+
"name": "Paragraph",
568+
"parent_url": "https://paragraph.xyz",
569+
"image": "https://warpcast.com/~/channel-images/paragraph.png",
570+
"channel_id": "paragraph"
571+
},
572+
{
573+
"name": "Milady",
574+
"parent_url": "chain://eip155:1/erc721:0x5af0d9827e0c53e4799bb226655a1de152a425a5",
575+
"image": "https://i.seadn.io/gae/a_frplnavZA9g4vN3SexO5rrtaBX_cBTaJYcgrPtwQIqPhzgzUendQxiwUdr51CGPE2QyPEa1DHnkW1wLrHAv5DgfC3BP-CWpFq6BA?auto=format&dpr=1&w=512",
576+
"channel_id": "milady"
577+
},
578+
{
579+
"name": "Gen Art",
580+
"parent_url": "chain://eip155:8453/erc721:0xe7a43b5942f15fddeb9733fdcc57c6232f1d5aa0",
581+
"image": "https://warpcast.com/~/channel-images/gen-art.png",
582+
"channel_id": "gen-art"
583+
},
584+
{
585+
"name": "Lil Nouns",
586+
"parent_url": "chain://eip155:1/erc721:0x4b10701bfd7bfedc47d50562b76b436fbb5bdb3b",
587+
"image": "https://i.seadn.io/gae/NeMen42xORQc--X_rAm6d5HCcRxkL5ZqAFi8LCSdFoRLi3AVNvEJ4Eo_-kFMnk8TVtPsnFxrMZ-DQIy-qjHgZnw4UFZYhjOWTmI_0w?auto=format&dpr=1&w=512",
588+
"channel_id": "lil-nouns"
589+
},
590+
{
591+
"name": "FarCats",
592+
"parent_url": "chain://eip155:1/erc721:0x9340204616750cb61e56437befc95172c6ff6606",
593+
"image": "https://ipfs.decentralized-content.com/ipfs/bafybeie2eyq6ezqkzxq7w5pbhlabr2ts2seynxieixy23xeijhor7rdjni",
594+
"channel_id": "farcats"
595+
},
596+
{
597+
"name": "Classical",
598+
"parent_url": "https://en.wikipedia.org/wiki/Johann_Sebastian_Bach",
599+
"image": "https://warpcast.com/~/channel-images/classical.png",
600+
"channel_id": "classical"
601+
},
602+
{
603+
"name": "Opepen",
604+
"parent_url": "chain://eip155:1/erc721:0x6339e5e072086621540d0362c4e3cea0d643e114",
605+
"image": "https://i.seadn.io/gcs/files/b1c9ed2e584b4f6e418bf1ca15311844.jpg?auto=format&dpr=1&w=512",
606+
"channel_id": "opepen"
607+
},
608+
{
609+
"name": "Checks",
610+
"parent_url": "chain://eip155:1/erc721:0x34eebee6942d8def3c125458d1a86e0a897fd6f9",
611+
"image": "https://i.seadn.io/gcs/files/864dce41a43d14e0c083ad9434cb8261.png?auto=format&dpr=1&w=512",
612+
"channel_id": "checks"
613+
},
614+
{
615+
"name": "Curta",
616+
"parent_url": "https://www.curta.wtf",
617+
"image": "https://warpcast.com/~/channel-images/curta.jpg",
618+
"channel_id": "curta"
493619
}
494620
]

examples/api/src/app/api/open-graph/lib/url-handlers/fallback.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,20 @@ const ethSearchParams = ethDataSelectors.map(
4141
async function fallbackUrlHandler(url: string): Promise<UrlMetadata> {
4242
const response = await fetch(
4343
// To self host, use https://github.com/microlinkhq/metascraper
44-
`https://api.microlink.io/?url=${encodeURIComponent(
44+
`https://pro.microlink.io/?url=${encodeURIComponent(
4545
url
46-
)}&${ethSearchParams.join("&")}`
46+
)}&${ethSearchParams.join("&")}`,
47+
{
48+
headers: {
49+
"x-api-key": process.env.MICROLINK_API_KEY,
50+
},
51+
}
4752
);
48-
const { data } = await response.json();
53+
const { data, status, message, code, more } = await response.json();
54+
55+
if (!response.ok) {
56+
throw new Error(message);
57+
}
4958

5059
const urlMetadata: UrlMetadata = {
5160
image: data.image

0 commit comments

Comments
 (0)