create-typesense-app
v0.1.1
Published
Scaffold a working Typesense search-as-you-type app in one command — server, schema, sample data, and a browser-safe search-only API key.
Downloads
335
Readme
create-typesense-app
Typo-tolerant Typesense search, running locally, in one command.

Compatibility note: Requires Node.js 22+. Docker is optional. Without it, point at a Typesense you already run or a Typesense Cloud cluster.
Scaffolding your first search app
With NPM:
npm create typesense-app@latestOr with npx:
npx create-typesense-app@latestThen follow the prompts!
To skip them, pass a directory and --yes:
# npm 7+, extra double-dash is needed:
npm create typesense-app@latest my-search-app -- --yescd my-search-app
npm run devType hary potr. It finds Harry Potter.
Options
-t, --template <id> nextjs (only one is bundled)
--dataset <name> books (default) | empty
--port <number> host port for the local server (default 8108)
-y, --yes take the defaults, no prompts
-h, --help show this
-v, --version print the versionWhat you get
- Next.js +
react-instantsearch, wired to a search box, hits and one facet - Typesense in Docker, CORS already configured
- ~10,000 books indexed
scripts/schema.tsandscripts/seed.ts, short and commented- A search-only API key in the browser, scoped to
documents:searchon one collection. The admin key stays server-side and never gets the public prefix.
Scripts
| Script | Does |
|---|---|
| npm run seed | rebuilds the collection, and restores the search key if it went missing |
| npm run typesense:up | starts the server |
| npm run typesense:down | stops it, keeping your data |
Templates
A template is a manifest plus a file overlay. See templates/README.md.
Independent community project. Not affiliated with Typesense, Inc.
