← Back to the organization home page
StarLockStarLock
CAPTCHA SDK and service
CAPTCHA components, challenge APIs and backend verification for websites and web apps.
StarLock unifies sessions, challenges and tokens across eight implemented types: digits, characters, arithmetic, straight puzzles, curved puzzles, ring rotation, ordered text clicks and semantic image grids. Load the hosted script directly or use the same SDK through Vue 3 or React 18/19.
Implemented challenge types
- Traditional image challenges support digits, alphanumeric text and arithmetic, with answers checked on the server.
- Straight and curved puzzles control the motion path and Bézier easing while changing the shape's angle.
- Puzzle pieces, stars, squares and rectangles can have several cutouts; only one matches both position and angle. Challenges constrain travel, boundaries and spacing.
- Ring challenges use a slider to rotate the inner ring into alignment with the fixed outer ring, with mild blur and feathering at the boundary.
- Compact dialogs support a close button, backdrop clicks, Esc and keyboard adjustments, restoring focus to the trigger when closed.
Integrate with your application
- Your application backend uses a site secret to create a verification session bound to the action and context, then passes a short-lived ticket to the browser.
- The browser loads the hosted
api.js, callsStarLock.render(), or displays the challenge through a Vue / React component. - Send the verification token with the application request to your backend, which calls
/v1/siteverifyto verify and consume the single-use token before performing the action.
FastAPI handles challenges and answer checks, Redis holds short-lived state, and SQLite stores local site configuration. Origins are authorized per site; site secrets stay on your backend.
Synchronous Python and Go SDKs use their standard libraries for session creation, parameters for all eight types and single-use token checks. Go supports context, timeouts and concurrent reuse; Python installs from source or a wheel.
Local setup requires Python, Node.js and Redis. Try all eight types, refresh and keyboard controls in the online demo. The demo checks answers in the browser; application integrations use server-side verification. Source documentation covers setup, configuration and testing.
Development status
Version 0.8.0 is a local development version with core frontend and backend flows, the hosted SDK and eight challenge types implemented. Ordered text clicks and static semantic grids use the shared protocol; initial semantic categories include cars, boats and fruit. Multi-round image replacement, behavior scoring and invisible risk checks are planned.
The npm package, production CDN and public verification API have not been released. Production deployment, capacity testing, real touch devices and full cross-browser acceptance remain pending.
Consult the project README, integration guide and verification records for scope and configuration. README · Integration guide · Verification records
StarLock FAQ
What is StarLock?
StarLock is StarDreamTech's open-source human verification project, providing CAPTCHA frontend components, a hosted JavaScript SDK and a FastAPI backend under the MIT license.
Which challenge types are supported?
Implemented types include characters, digits, arithmetic, straight puzzles, Bézier curved puzzles, ring rotation, ordered text clicks and static semantic grids. Multi-round replacement, invisible verification and behavior scoring remain planned.
How do I integrate it with plain HTML, Vue or React?
Plain HTML loads the hosted api.js; Vue 3 and React 18.2+/19 use the corresponding wrappers. Your backend creates a session, the frontend completes the challenge and receives a token, then your backend calls /v1/siteverify. See the integration guide for full steps and examples.
Are a public API or npm package available?
Source is available for local use. The public verification API, production CDN and npm package have not been released. Deployment instructions, integration code and verification scope are documented in the repository.
StarLock is an open-source CAPTCHA SDK and verification service by StarDreamTech. It supports eight challenge types, vanilla JavaScript, Vue 3, and React 18.2+/19. Verification tokens are checked by the application backend. Source code is available under the MIT license. Public hosted APIs and npm packages are not yet released.