[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73471":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},73471,"instant","instantdb\u002Finstant","instantdb","Instant is the best backend for AI-coded apps.  You get auth, permissions, storage, presence, and streams — everything you need to ship apps your users will love.","https:\u002F\u002Finstantdb.com",null,"TypeScript",10313,355,37,12,0,5,10,60,15,42.65,"Apache License 2.0",false,"main",[],"2026-06-12 02:03:13","\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Finstantdb.com\u002F\">\n    \u003Cpicture>\n      \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Finstantdb.com\u002Freadmes\u002Flogo_with_text_dark_mode.svg\">\n      \u003Cimg alt=\"Shows the Instant logo\" src=\"https:\u002F\u002Finstantdb.com\u002Freadmes\u002Flogo_with_text_light_mode.svg\">\n    \u003C\u002Fpicture>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca \n    href=\"https:\u002F\u002Fdiscord.com\u002Finvite\u002FVU53p7uQcE\" >\n    \u003Cimg height=20 src=\"https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1031957483243188235\" \u002F>\n  \u003C\u002Fa>\n  \u003Ca href=\"#\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Finstantdb\u002Finstant\" alt=\"stars\">\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n   \u003Ca href=\"https:\u002F\u002Finstantdb.com\u002Fdocs\">Get Started\u003C\u002Fa> · \n   \u003Ca href=\"https:\u002F\u002Finstantdb.com\u002Fexamples\">Examples\u003C\u002Fa> · \n   \u003Ca href=\"https:\u002F\u002Finstantdb.com\u002Ftutorial\">Try the Demo\u003C\u002Fa> · \n   \u003Ca href=\"https:\u002F\u002Finstantdb.com\u002Fdocs\">Docs\u003C\u002Fa> · \n   \u003Ca href=\"https:\u002F\u002Fdiscord.com\u002Finvite\u002FVU53p7uQcE\">Discord\u003C\u002Fa>\n\u003Cp>\n\nInstant is the best backend for AI-coded apps. You get auth, permissions, storage, presence, and streams — everything you need to ship apps your users will love.\n\nYou write [relational queries](https:\u002F\u002Fwww.instantdb.com\u002Fdocs\u002Finstaql) in the shape of the data you want and Instant handles all the data fetching, permission checking, and offline caching. When you [change data](https:\u002F\u002Fwww.instantdb.com\u002Fdocs\u002Finstaml), optimistic updates and rollbacks are handled for you as well. Plus, every query is multiplayer by default.\n\nWe also support [ephemeral](https:\u002F\u002Fwww.instantdb.com\u002Fdocs\u002Fpresence-and-topics) updates, like cursors, or who's online. Currently we have SDKs for [Javascript](https:\u002F\u002Fwww.instantdb.com\u002Fdocs\u002Fstart-vanilla), [React](https:\u002F\u002Fwww.instantdb.com\u002Fdocs\u002F), and [React Native](https:\u002F\u002Fwww.instantdb.com\u002Fdocs\u002Fstart-rn).\n\nHow does it look? Here's a barebones chat app in about 12 lines:\n\n```javascript\n\u002F\u002F ༼ つ ◕_◕ ༽つ Real-time Chat\n\u002F\u002F ----------------------------------\n\u002F\u002F * Updates instantly\n\u002F\u002F * Multiplayer\n\u002F\u002F * Works offline\n\nimport { init, id } from \"@instantdb\u002Freact\";\n\nconst db = init({ \n  appId: process.env.NEXT_PUBLIC_APP_ID,\n});\n\nfunction Chat() {\n  \u002F\u002F 1. Read\n  const { isLoading, error, data } = db.useQuery({\n    messages: {},\n  });\n\n  \u002F\u002F 2. Write\n  const addMessage = (message) => {\n    db.transact(db.tx.messages[id()].update(message));\n  };\n\n  \u002F\u002F 3. Render!\n  return \u003CUI data={data} onAdd={addMessage} \u002F>;\n}\n```\n\nWant to see for yourself? \u003Ca href=\"https:\u002F\u002Finstantdb.com\u002Ftutorial\">try a demo in your browser.\u003C\u002Fa>\n\n## Motivation\n\nWriting modern apps is full of schleps. Most of the time you start with the server: stand up databases, caches, ORMs, and endpoints. Then you write client-side code: stores, selectors, mutators. Finally you paint a screen. If you add multiplayer you need to think about stateful servers, and if you support offline mode, you need to think about IndexedDB and transaction queues.\n\nTo make things worse, whenever you add a new feature, you go through the same song and dance over and over again: add models, write endpoints, stores, selectors, and finally the UI.\n\nCould it be better?\n\nIn 2021, **we realized that most of the schleps we face as UI engineers are actually database problems in disguise.** (We got into greater detail [in this essay](https:\u002F\u002Finstantdb.com\u002Fessays\u002Fnext_firebase))\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#\">\n    \u003Cimg alt=\"Shows how Instant compresses schleps\" src=\"https:\u002F\u002Finstantdb.com\u002Freadmes\u002Fcompression.svg\">\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\nIf you had a database on the client, you wouldn't need to think about stores, selectors, endpoints, or local caches: just write queries. If these queries were multiplayer by default, you wouldn't have to worry about stateful servers. And if your database supported rollback, you'd get optimistic updates for free.\n\nSo we built Instant. Instant gives you a database you can use in the client, so you can focus on what’s important: building a great UX for your users, and doing it quickly.\n\n## Architectural Overview\n\nHere's how Instant works at a high level:\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#\">\n    \u003Cimg alt=\"Shows how Instant compresses schleps\" src=\"https:\u002F\u002Finstantdb.com\u002Freadmes\u002Farchitecture.svg\">\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\nUnder the hood, we store all user data as triples in one big Postgres database. A multi-tenant setup lets us offer a free tier that never pauses.\n\nA sync server written in Clojure talks to Postgres. We wrote a query engine that understands datalog and [InstaQL](https:\u002F\u002Fwww.instantdb.com\u002Fdocs\u002Finstaql), a relational language that looks a lot like GraphQL:\n\n```javascript\n\u002F\u002F give me all users, their posts and comments\n{\n  users: {\n    posts: {\n      comments: {\n      }\n    }\n  }\n}\n```\n\nTaking inspiration from [Asana’s WorldStore](https:\u002F\u002Fasana.com\u002Finside-asana\u002Fworldstore-distributed-caching-reactivity-part-1) and [Figma’s LiveGraph](https:\u002F\u002Fwww.figma.com\u002Fblog\u002Fhow-figmas-multiplayer-technology-works\u002F#syncing-object-properties), we tail postgres’ WAL to detect novelty and invalidate relevant queries.\n\nFor the frontend, we wrote a client-side triple store. The SDK handles persisting a cache of recent queries to IndexedDB on web, and AsyncStorage in React Native.\n\nAll data goes through a permission system powered by Google's [CEL library](https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fcel-java).\n\n## Getting Started\n\nThe easiest way to get started with Instant is by signing up on [instantdb.com](https:\u002F\u002Finstantdb.com). [You can create a functional app in 5 minutes or less](https:\u002F\u002Finstantdb.com\u002Fdocs).\n\nIf you have any questions, you can jump in on our [discord](https:\u002F\u002Fdiscord.com\u002Finvite\u002FVU53p7uQcE).\n\n## Contributing\n\nYou can start by joining our [discord](https:\u002F\u002Fdiscord.com\u002Finvite\u002FVU53p7uQcE) and introducing yourself. Even if you don't contribute code, we always love feedback.\n\nIf you want to make changes, start by reading the [`client`](.\u002Fclient\u002F) and [`server`](.\u002Fserver\u002F) READMEs. There you'll find instructions to start Instant locally.\n","Instant 是一个专为AI编码应用设计的后端解决方案，提供了认证、权限管理、存储、在线状态检测以及数据流等核心功能。项目采用TypeScript编写，支持通过关系查询（如InstaQL）直接获取所需格式的数据，并自动处理数据抓取、权限检查及离线缓存；同时，在数据变更时提供乐观更新与回滚机制。此外，Instant默认支持多用户实时协作场景，适用于构建需要即时响应和高互动性的Web或移动应用程序，例如聊天应用、多人协作工具等。官方提供了JavaScript、React以及React Native的SDK以方便开发者快速上手。",2,"2026-06-11 03:45:41","high_star"]