Skip to content

js web sdk examples#162

Merged
HarshaNalluru merged 4 commits intomainfrom
harshan/js-web-sdk
Apr 20, 2026
Merged

js web sdk examples#162
HarshaNalluru merged 4 commits intomainfrom
harshan/js-web-sdk

Conversation

@HarshaNalluru
Copy link
Copy Markdown
Contributor

This pull request introduces a new set of example projects for the Moss Browser SDK (@moss-dev/moss-web) that demonstrate in-browser semantic search using WASM. The examples cover core SDK operations, semantic querying, metadata filtering, and provide a ready-to-run development environment with Vite and TypeScript. The changes include setup instructions, sample HTML/TypeScript files for each example, and project configuration files.

Key additions and changes:

New Example Applications:

  • Added comprehensive_sample.html and comprehensive_sample.ts for an end-to-end demonstration of all SDK operations, including creating, querying, updating, and deleting indexes and documents.
  • Added load_and_query_sample.html and load_and_query_sample.ts to show how to load an existing index and run semantic searches entirely in-browser.
  • Added metadata_filtering_sample.html and metadata_filtering_sample.ts to demonstrate metadata-rich queries using $eq, $and, $or, $in, and $near filters.
  • Created a main index.html as a hub to navigate between the different examples.

@HarshaNalluru HarshaNalluru marked this pull request as ready for review April 20, 2026 21:40
Copilot AI review requested due to automatic review settings April 20, 2026 21:40
devin-ai-integration[bot]

This comment was marked as resolved.

This comment was marked as resolved.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
moss_nextjs Ready Ready Preview, Comment Apr 20, 2026 10:06pm

Request Review

devin-ai-integration[bot]

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

Comment thread examples/javascript-web/vite.config.ts
@HarshaNalluru HarshaNalluru merged commit c0060f3 into main Apr 20, 2026
20 checks passed
ashvathsureshkumar added a commit that referenced this pull request Apr 21, 2026
Re-ran `npm install` in apps/next-js and `pnpm install --lockfile-only`
in packages/vitepress-plugin-moss after rebasing onto main. Main
picked up dependabot bumps (#159) and the new examples/javascript-web/
directory (#162) while this branch was open; this commit makes both
lockfiles consistent with the current package.json deps.
Atulsingh1155 pushed a commit to Atulsingh1155/moss that referenced this pull request Apr 30, 2026
This pull request introduces a new set of example projects for the Moss
Browser SDK (`@moss-dev/moss-web`) that demonstrate in-browser semantic
search using WASM. The examples cover core SDK operations, semantic
querying, metadata filtering, and provide a ready-to-run development
environment with Vite and TypeScript. The changes include setup
instructions, sample HTML/TypeScript files for each example, and project
configuration files.

Key additions and changes:

**New Example Applications:**

* Added `comprehensive_sample.html` and `comprehensive_sample.ts` for an
end-to-end demonstration of all SDK operations, including creating,
querying, updating, and deleting indexes and documents.
* Added `load_and_query_sample.html` and `load_and_query_sample.ts` to
show how to load an existing index and run semantic searches entirely
in-browser.
* Added `metadata_filtering_sample.html` and
`metadata_filtering_sample.ts` to demonstrate metadata-rich queries
using `$eq`, `$and`, `$or`, `$in`, and `$near` filters.
* Created a main `index.html` as a hub to navigate between the different
examples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants