sanasiniai
AI Connector · SDK

Build apps and dashboards for your Shopee and TikTok Shop without building the API part.

The SanasiniAI SDK runs in your own app and on your own server. It gives you orders, products, stock, fees and ads, keeps a copy in your database, and makes changes safely.

Onboard your coding agent

Not writing the code yourself? Copy this message into Claude Code, Cursor or another coding AI. The package carries a guide for coding AIs and a starter app.

Set up the SanasiniAI SDK (@sanasiniai/sdk) for my Shopee and TikTok Shop stores. Run npx @sanasiniai/sdk new my-app, go into my-app, follow the guide for coding AIs in AGENTS.md and run npm install. Ask me to sign in with npm run login, then run npm start.
your app · app.ts
// npx sanasini login once, in a browser
import { SanasiniAI } from '@sanasiniai/sdk'
const sana = new SanasiniAI()
sana.on('order.updated', async ({ row, changed }) => {
if (changed.includes('status')) await notifyWarehouse(row)
})
// a copy in your own database, kept right
await sana.sync.start({ days: 90 })
// the same key is never applied twice
await sana.actions.run({
action: 'update_stock', store, sku: 'GG20',
payload: { stock: 12 },
}, { key: 'restock:PO-118:GG20' })
What happens on your side Example
your Postgres · sanasini.orders
shopee2412A8K1QREADY_TO_SHIP
tiktok578104421938264712AWAITING_COLLECTION
shopee2412A9F3MSHIPPED
order.updated · status changed
notifyWarehouse(row) ran
restock:PO-118:GG20
applied

TypeScript, Node 22.13 or newer. Postgres or SQLite. Included in every AI Connector plan and in the trial. Read the docs

What you stop building

Use SanasiniAI as your Shopee and TikTok Shop API infrastructure.

You build your app, not the API part.

Without us, you build and maintain
With the SDK
Without us, you build and maintain
Partner apps and approvals for each platform
With the SDK
Covered by our apps
Without us, you build and maintain
Shop sign ins, request signing and token refresh
With the SDK
Connect stores in SanasiniAI. You handle no platform tokens
Without us, you build and maintain
Shopee's and TikTok's different fields, errors and rules
With the SDK
One client, the same style for both
Without us, you build and maintain
Order, product, finance and ads sync jobs, with backfills
With the SDK
Already synced and stored by the AI Connector
Without us, you build and maintain
Platform rate limits, retries and missing data
With the SDK
Handled, and gaps are refilled
Without us, you build and maintain
Price, stock, promotion and ads changes, with checks
With the SDK
One flow: plan, apply, see how it ended
Without us, you build and maintain
Every platform API change
With the SDK
We update the AI Connector, usually with no change on your side

It runs on your side

Your code, your server, your database.

Your server
Your app
The SDK@sanasiniai/sdk
Your databasePostgres or SQLite
reads and changes
change events
reads and changes
change events
sanasiniaiAI Connector

The same one your team uses in Claude or ChatGPT.

reads and changes
change events
reads and changes
change events
Shopee and TikTok Shop

The stores you connected.

Shopee
TikTok Shop
We never receive your database address.
Buyer names, phones and addresses are not copied unless you ask for them.

What you can build

Example: order lines arrive in your table, a query counts sales per product, and a bar chart of best sellers updates when a new order arrives.

report.sql
SELECT sku_code, SUM(qty) AS sold
FROM sanasini.order_items
GROUP BY sku_code
ORDER BY sold DESC

Your own database. Query it as often as you like.

Reports and dashboards

Query your own tables as often as you like.

Let your coding AI do the integration

The package carries a guide for coding AIs and a starter app. One command makes an app that already copies your data and shows it.

terminal
$ npx @sanasiniai/sdk new my-app
$ cd my-app
$ npm install
$ npm run login
$ npm start

What is supported

Data and changes
Shopee
TikTok Shop
Orders, lines, products, stock, returns
Shopee
Synced, with events
TikTok Shop
Synced, with events
Fees after the money is released
Shopee
Synced
TikTok Shop
Synced
Fees before the money is released
Shopee
Synced
TikTok Shop
Not synced
Ads
Shopee
Read results and settings
TikTok Shop
Read results
Reviews
Shopee
Read and reply
TikTok Shop
Not available
Shop visitors and conversion
Shopee
The platform does not offer it
TikTok Shop
Read
Price, stock, listing, order changes
Shopee
Plan and apply
TikTok Shop
Plan and apply
Promotions
Shopee
Discount, flash sale, voucher, bundle, add-on
TikTok Shop
Activities
Ads changes
Shopee
Budget, target, pause, keywords, GMV Max
TikTok Shop
GMV Max and campaign status
It is not a copy of every platform endpoint. npx sanasini resources and npx sanasini actions show the full list.
Near real time, not instant. Platforms send some changes late or not at all. Checks every 30 minutes find order changes that were missed.
120 calls a minute per login. The SDK stays below it by itself.
Shopee asks each shop to renew its authorization once a year. The AI Connector tells you which store to reconnect.

Included in your AI Connector plan

The SDK and its support come with every plan and with the trial. Your plan decides how many stores you connect.

If you want us to build or run your integration, that is separate work with its own quote.

Start the trial Talk to us

Questions

Do we need our own Shopee or TikTok developer account?

No. Your stores are connected through our approved apps.

Where is our data?

The AI Connector stores what it syncs from the platforms, as it does today. The SDK's copy is in your own database, and it stays yours.

What if we stop?

Your copy stays in your database. New data and changes stop.

Does it change how our team uses Claude or ChatGPT?

No. It is the same workspace and the same stores, side by side.

Which languages?

TypeScript and JavaScript now. Python is planned.